(AGK version: 108.13)
Submitted: 2013-06-17 15:23:41
Test()
end

function Test()

    button=1

    AddVirtualButton(button,50,50,20)
    SetVirtualButtonText(button,"google")

    do

        if GetVirtualButtonPressed(button)=1
            OpenBrowser( "http://www.google.com" )
            exit
        endif

        sync()
    loop

    DeleteVirtualButton(button)

endfunction
Submitted: 2018-01-09 14:17:39
Test()
end

function Test()

    button=1

    AddVirtualButton(button,50,50,20)
    SetVirtualButtonText(button,"google")

    do

        if GetVirtualButtonPressed(button)=1
            OpenBrowser( "http://www.google.com" )
            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.