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

//Create and display a Backdrop, make an image.
For x=0 to 80 Step 8
    DrawLine(0,0,x,80,Random(0,255),Random(0,255),Random(0,255))
    Update(0)
    Render()
Next x
GetImage(1,0,0,80,80)

AddVirtualButton(1,320,240,80)
SetVirtualButtonImageUp(1,1)

Repeat
    If GetVirtualButtonState(1)=1
        Print("Button Down")
    EndIf
    If GetVirtualButtonState(1)=0
        Print("Button Up")
    EndIf
    Sync()
Until Timer()>15
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.