Break Macro on Right Click Topic is solved

Ask gaming related questions
Zyrusse
Posts: 2
Joined: 25 Jul 2020, 03:55
GitHub: Zyrusse

Break Macro on Right Click

25 Jul 2020, 04:01

Simple script:

Code: Select all

#SingleInstance
$~*space::
send, {d down}
sleep, 625
Send, {a down}
send, {d up}
sleep, 650
Send, {a up}
return
What I want is when I right click, it stops the script and goes back to the beginning.
Last edited by BoBo on 25 Jul 2020, 07:58, edited 1 time in total.
Reason: Moved to Gaming section.
Rohwedder
Posts: 3391
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Break Macro on Right Click

25 Jul 2020, 06:37

Hallo,
try:

Code: Select all

#SingleInstance
$~*space::
send, {d down}
sleep, 625
Send, {a down}
send, {d up}
sleep, 650
Send, {a up}
return
RButton::
Send, {a up}{d up}
Reload
Zyrusse
Posts: 2
Joined: 25 Jul 2020, 03:55
GitHub: Zyrusse

Re: Break Macro on Right Click

25 Jul 2020, 08:27

What if I added mouse movements to the script? It would just break the key presses but not the mouse movements.
Rohwedder
Posts: 3391
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Break Macro on Right Click  Topic is solved

25 Jul 2020, 09:34

Reload restarts the script, but does not do an undo.
Anything you want to undo (if it can be undone at all) you have to program into the script.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 13 guests