For the last few hours I have not been able to find out how I can perform a certain function with AHK.
I have a crosshair script with a GUI Window and I do want to hide that Window when Right Mouse Button is pressed, and to show that Window again when the Right Mouse Button is released. I have tried it out with this:
Code: Select all
~RButton::
While, GetKeyState("RButton", "P")
{
Gui, crosshair:Hide
}
Return
~RButton up::
Gui, crosshair:Show
return
The crosshair script I did found here: https://www.autohotkey.com/boards/viewtopic.php?p=296138#p296138
Can someone help me to resolve this problem?