While the main goal of this is achieved it breaks when I have other buttons such as Shift held down. Im wondering if anyone would be able to help me figure out a way to make the GetKeyState to work with my LButton while I am holding another button such as Shift. Im not sure if there is something I can add to it or a different function but any help would be appreciated.
Code: Select all
0::
AToggle := !AToggle
return
#If AToggle
$~LButton::
while GetKeyState("LButton", "P") {
Click
Sleep 100
}
return
#If