Hi. as per the title, I am looking for variations on how to create a toggle that does not stop working with mouse clicks, and one that does. So far I works the opposite as mouse and keyboard seem to affect them differently. This code was found on the forums here as I have no idea what im doing. This is for a game so I have no idea if it would work differently outside of it.
Problem 1,
my current code is
Code: Select all
F1::
KeyDown := !KeyDown
If KeyDown
SendInput {E down}
Else
SendInput {E up}
Return
currently in game the code does not stop E from working if i hit my left mouse button.
I would like it to stop working after i hit left click or right click on my mouse.
Problem 2,
my current code for this is basically the same as above.
Code: Select all
F2::
KeyDown := !KeyDown
If KeyDown
SendInput {Click left down}
Else
SendInput {Click left up}
Return
the current code does stop working after i use the mouse.
I would like it to continue after clicks. Constant left clicking, even after entering keyboard and mouse clicks, until i want to stop it with a "F2". currently it just stops working after mouse clicks.
Please and thank you!