Wondering if someone could help with this. I am looking for a way to send an interrupt to the macro with the same key that starts it, so that it starts again even if it had not finished its function. Here is the macro:
Code: Select all
XButton2::
{
Send, {~}
click, right
Send, {q}
Mousemove, 604, 450
click down right
}
I'd like to be to cancel the actions at any point in the process and re-submit it with the same XButton2 key on the mouse. This Macro is used for a video game, and the ~ key acts as a 'move' in the game. Should the 'move' miss its target, I'd like to be able to re-do the XButton2 immediately to try again from the beginning, as opposed to waiting for the Macro to complete. Also, I believe I will need to add an additional sleep or click up right at the end to only make the mouse home last 1.5 seconds.
Edit - This is not a loop either. The macro itself should only last 2 seconds or so at most and then be complete and ready to use again in the next few minutes (or potentially right away if the move misses and the RButton2 needs to be pressed again). I only use this Macro a few times over the course of an hour.
Please let me know if additional information is needed, thank you!