1
votes

Looking to do something like this:

if leftmousebutton not depressed
    some other action

Does anybody know how I would go about coding that?

3

3 Answers

1
votes

try this

GetKeyState, state, LButton 

if state = U
    some other action
1
votes
if !GetKeyState("LButton", "P")
    msgbox the left mouse button is not depressed.

GetKeyState() documentation

-1
votes

I don't know anything about autohotkey, but in the event the left mouse button is pressed down, set leftMouseButtonPressed = true, and when it is released, set leftMouseButtonPressed = false, and then in the if statement, just check if leftMouseButtonPressed.