Hi, I'm not really sure how to ask for help here, but I'm not sure how to go about making a macro that's activated on click, rather than after a time frame,
For instance, I press X, and after I press X, after I click once, I want 6 to be pressed, then after I click again, 5 is pressed, then I click again, and 6 is pressed, and repeat that every time I click until I press X again, then it'd stop.
Not sure if that's a proper explanation at all, I've never scripted before and if anyone could make it/point me in the right direction I'd be willing to paypal you like 10$
All help is appreciated, thanks.
Get help with using AutoHotkey and its commands and hotkeys
2 posts • Page 1 of 1
In this example I'm inverting the value of the variables
Code: Select all
x::( arm := !arm ) ; << x arms/disarms `click` action #if ( arm ) ; << makes the below mouse hotkey contextual ~lbutton::send % ( ( i := !i ) ? 6 : 5 ) ; << ~ is optional #if ; << ends above contextual condition
ieach time they are referenced.