(AGK version: 108.14)
Submitted: 2013-07-01 14:27:40
Setvirtualresolution(640,480)
ResetTimer()

AddVirtualButton(1,320,240,80)
AddVirtualButton(2,100,240,80)
SetVirtualButtonText(2,"Press")

Repeat
    If GetVirtualButtonPressed(2)
        SetVirtualButtonText(2,"")
        SetVirtualButtonSize(1,50)
        SetVirtualButtonText(1,"Press")
    EndIf
    If GetVirtualButtonPressed(1)
        SetVirtualButtonText(1,"")
        SetVirtualButtonSize(1,80)
        SetVirtualButtonText(2,"Press")
    EndIf
    Sync()
Until Timer()>20
End
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.