(AGK version: 108.13)
Submitted: 2013-06-17 13:29:22
Test()
end

function Test()

    button=1

    AddVirtualButton(button,20,20,20)
    //GetVirtualButtonExists
    //GetVirtualButtonPressed
    //GetVirtualButtonReleased
    //GetVirtualButtonState
    //SetButtonScreenPosition
    //SetVirtualButtonActive
    SetVirtualButtonAlpha(button,192)
    SetVirtualButtonColor(button,255,255,0)
    //SetVirtualButtonImageDown
    //SetVirtualButtonImageUp
    //SetVirtualButtonPosition
    //SetVirtualButtonSize
    SetVirtualButtonText(button,"Click Me")
    SetVirtualButtonVisible(button,1)

    do

        if GetVirtualButtonPressed(button)=1
            exit
        endif

        sync()
    loop

    DeleteVirtualButton(button)

endfunction
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.