Jump to content
Corsair Community

Repeating certain parts of a macro?


A Furry 129

Recommended Posts

I wanted to make a macro that requires a certain part of the macro to repeat indefinitely until either the user let's go or toggle it again.

What I have so far is W, D, S, A, and after A I need it to repeat D, A, D, A, D indefinitely after that but not the W, D, S, A.

Is that possible?

Link to comment
Share on other sites

maybe you can do this more or less with a toggled macro or even a second action but i dont think it will work the way you would want.

 

but autohotkey is better at that type of thing, very untested pseudo below seems like a good start:

 

#MaxThreads 2

Global toggle = false

 

SomeHotkey::

 

toggle=!toggle

 

SendInput W

SendInput D

SendInput S

SendInput A

 

loop {

if !toggle {

SendInput D

SendInput A

}

else {

return

}

}

return

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...