Jump to content

Please fill out this form to help the staff make better informed decisions regarding the server.

PanFlippingCake

Spaming keys with Autohotkey~

Recommended Posts

Where to Download Ahk:

https://www.autohotkey.com/

Basic Simple Scripts to spam skills:

 

1. Pressed Macro~

As stated above this marco will work as u press the key. Ex. I want to autospam double stafe which atm is at my key e. All u have to do is hold e and it will spam the key and click for u till u let go of the selected key.

 

~E::
loop
{
GetKeyState, state, E,P
if state = U

break

Sleep, 17
send, {e}
sleep, 17
send, {Click, down}
sleep, 17
send, {Click, up}

}
return

 

2. Pressed Macro( without click)~

Useful for items or skills that do not require a mouse click.

 

~E::
loop
{
GetKeyState, state, E,P
if state = U

break

Sleep, 17
send, {e}

}
return

 

3. TOGGLED MACRO

All u do is press your selected key and the macro will run for u. Press the selected key to turn off the macro

 

#MaxThreadsperHotkey 2
~E::

Previouskey:= !PreviousKey

loop
{

if PreviousKey
{
Sleep, 17
send, {e}
sleep, 17
send, {Click, down}
sleep, 17
send, {Click, up}
}
else

break

}
return

 

4. TOGGLED MARCO (w/o the key press)

 

#MaxThreadsperHotkey 2
~E::

Previouskey:= !PreviousKey

loop
{

if PreviousKey
{
Sleep, 17
send, {e}
}
else

break

}
return

 

5. Switching gears

1. switching gears via bm keys.

2. If u want to change were your gear will be in the bm keys just change F4-F8 in the script to what ever keys u want.

3. If u want to change activation button (default atm is end key) just change the end  word in beginning of script to whatever key u want.

 

~End::
loop, 5
{

Sleep, 17
send, {F4}
Sleep, 17
send, {F5}
Sleep, 17
send, {F6}
Sleep, 17
send, {F7}
Sleep, 17
send, {F8}

}
return

 

5. TOGGLED SPAM STORM GUST (VIA IN GAME REQUEST)

 

#MaxThreadsperHotkey 2
~E::

Previouskey:= !PreviousKey

loop
{

if PreviousKey
{

sleep, 17
send, {e}
sleep, 17
send, {Click, down}
sleep, 17
send, {Click, up}
Sleep, 17
send, {Alt down}
sleep, 17
send, {2 down}
sleep, 17
send, {2 up}
sleep, 17
send, {Alt up}
sleep, 400
}
else

break

}
return

 

Built Executable that can run multiple Macros: ( May not work on Asian PC )

Download:

http://s000.tinyupload.com/index.php?file_id=01421254504170257757

https://filebin.net/21oay158whbfwn8u

(Will add more marcos as time goes on, will also listen to requests)~

Edited by PanFlippingCake
  • Like 1

Share this post


Link to post
Share on other sites

Can you also include macro for item chain switching please ^^

i can but item switching has alot to do with your ping/ connection so making it 100% accurate will be impossible

Share this post


Link to post
Share on other sites

Good Day! Sorry newbie here. I wanted to ask how or where can I pre select or choose the skills to which I can spam Ex. My SG is on F1 I followed your script and tried however not successful with many attempts. Any advice with this matter is greatly appreciated

Share this post


Link to post
Share on other sites
7 minutes ago, SirLuis said:

Good Day! Sorry newbie here. I wanted to ask how or where can I pre select or choose the skills to which I can spam Ex. My SG is on F1 I followed your script and tried however not successful with many attempts. Any advice with this matter is greatly appreciated

Can you share your script here?

Share this post


Link to post
Share on other sites

Hello, I was just copying what he had input in there sir, copied and paste it and named it like SG. However it done not work it walks when I click "e" however not a skill. Sorry I dont know how to make scripts. Thank you very much for the reply.

Share this post


Link to post
Share on other sites

Try this:

 

#MaxThreadsperHotkey 2
~F1::

Previouskey:= !PreviousKey

loop
{

if PreviousKey
{

sleep, 17
send, {F!}
sleep, 17
MouseClick, Left
sleep, 17
}
else

break

}
return

  • Upvote 1

Share this post


Link to post
Share on other sites

WOW! awesome! How I wish I could learn how to do it I want to add F2 for lord of vermillion Sir. And also I dont know how to make it stop when I hover away from the RO screen it disturbs my desktop too. LOL. Thank you very much for the reply and the time to make the script. Appreciated it

Share this post


Link to post
Share on other sites
8 minutes ago, SirLuis said:

WOW! awesome! How I wish I could learn how to do it I want to add F2 for lord of vermillion Sir. And also I dont know how to make it stop when I hover away from the RO screen it disturbs my desktop too. LOL. Thank you very much for the reply and the time to make the script. Appreciated it

It's actually easier than it looks, so what you can do to add other skills is just to copy and paste the script above on the same text file, and just replace every F1 you see on the script, with F2. 

You can do the same for any key you want to add to the macro, for example  alphabetic characters, numbers, function keys, etc.

Share this post


Link to post
Share on other sites

Press F1 again to disable.

Share this post


Link to post
Share on other sites

ive actually been working on something for this to make it more "noob" friendly though i do not know when ill be done with it lol.

Its alot of key's i gotta program ..............zzzzzzzzzzz..............................

9scFl2E.png

  • Like 2

Share this post


Link to post
Share on other sites

Try this instead.

Type /nc in-game so you won't do melee attacks.

Press F1 once then spam your skills, press F1 again to stop.

You can remove the Beep if you want, I just put it there to adjust my delay.

Press the End key to exit the macro.

 

~End::ExitApp
;#MaxThreadsperHotkey 2

~F1::
{    (Run:=!Run)
    If (Run)
    {
    SetTimer, Go1, ON
    }
    Else,
    {
    SetTimer, Go1, OFF
    }
} Return

Go1:
{    
    Send, {F1}
    Sleep, 17
    Send, {LButton Down}
    Sleep, 17
    Send, {LButton Up}
    Sleep, 17    
    SoundBeep, 500, 20
        
} Return

Share this post


Link to post
Share on other sites
21 hours ago, PanFlippingCake said:

ive actually been working on something for this to make it more "noob" friendly though i do not know when ill be done with it lol.

Its alot of key's i gotta program ..............zzzzzzzzzzz..............................

9scFl2E.png

90% done

 

  • Like 1

Share this post


Link to post
Share on other sites
On 6/7/2020 at 1:31 PM, PanFlippingCake said:

ive actually been working on something for this to make it more "noob" friendly though i do not know when ill be done with it lol.

Its alot of key's i gotta program ..............zzzzzzzzzzz..............................

9scFl2E.png

Wow! ❤️

Will you be sharing it us tho? 🙂

Share this post


Link to post
Share on other sites

bump~ the exe is up just w8 for the video to process~

updated link since google drive being a bitch

Edited by PanFlippingCake
  • Like 1

Share this post


Link to post
Share on other sites

It's working! Thank you! 🙂 This can be the server's official macro hehe

Btw.. What's the use of W/O Key? And can the delay be adjusted? or nah because .exe?

Share this post


Link to post
Share on other sites
4 minutes ago, Kek said:

It's working! Thank you! 🙂 This can be the server's official macro hehe

Btw.. What's the use of W/O Key? And can the delay be adjusted? or nah because .exe?

w/o key is for skills that dont need a mouse click, for example ma or rolling cutter

I can adjust the delay cause i have the script but this is a exe so it cant be adjusted.

  • Like 1

Share this post


Link to post
Share on other sites

Hi, I am a newbie and I have a few questions.

1. Will that new .exe file help in switching gears faster? The one using codes is not working. Please suggest

2. Could you give me a code to make 1 key cast 3 skills in a rotation? (For Example, Press '1' = Cast A , Press '1' again = Cast B, Press '1' 3rd Time = Cast C. Pressing '1' again for the 4th time should Cast A and so on.) 

Thank you so much in Advance

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×