Setvirtualresolution(640,480)
ResetTimer()
AddVirtualButton(1,Random(40,600),Random(40,440),80)
Repeat
If GetVirtualButtonPressed(1)
Print("Button Pressed")
Sync()
Sleep(100)
EndIf
Sync()
Until Timer()>12
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
Setvirtualresolution(640,480) ResetTimer() AddVirtualButton(1,Random(40,600),Random(40,440),80) Repeat If GetVirtualButtonPressed(1) Print("Button Pressed") Sync() Sleep(100) EndIf Sync() Until Timer()>12 End