Could someone help me understand how to capture Rbutton in Loop? The idea is when I click GUI button its activate loop and waiting for some time for example 15 sec until RButton will be clicked, if loop detects that RBUtton been doubleclicked, should show me msg box
w::SetTimer Test, 5000 Test: Loop { ; waiting when RButton will be clicked Keywait,RButton A := GetKeyState("Rbutton","P") if (!%A%) { MsgBox, this part should continue and wait for RButton do nothing and continue to wait } else if (%A%) { MsgBox, you clicked double RButton Send, this is text break } } Msgbox end of script SetTimer Test, Off Return