exploit or currently undocumented behavior of
OpenBrowser() used to launch file/associated program.
stumbled upon in response to related discord inquiry (and found some old
Execute File for AGK request threads that had no resolution):
SetErrorMode(2)
// set window properties
SetWindowTitle( "ExecuteFile" )
SetWindowSize( 1280,720, 0 )
SetWindowAllowResize( 1 )
// set display properties
SetVirtualResolution( 640,360)
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 )
SetScissor( 0,0,0,0 )
UseNewDefaultFonts( 1 )
AddVirtualButton(1,100,100,64)
SetVirtualButtonText(1, "CHOOSE")
AddVirtualButton(2,200,100,64)
SetVirtualButtonText(2,"CALL")
do
If GetRawKeyState(27) then End
If GetVirtualButtonPressed(1) then ChooseFile()
If GetVirtualButtonPressed(2) then Call()
Print( ScreenFPS() )
Sync()
loop
Function Call()
OpenBrowser("tel:123-456-7890")
EndFunction
function ChooseFile()
ret$=ChooseRawFile("*",1)
if ret$ <> ""
OpenBrowser(ret$)
EndIf
endfunction
tested in AppGameKit Classic 2022.04.01 on WIN10 with various file types (html, exe, gif, agk/agc, txt, et al).
may work with parameters for exe's that accept them?
please respond with other configuration successes or failures, or ideas on how we can expand usefulness.
otherwise, i can't say that i've seen this usage of the command on the forums
Note, ChooseRawFile() may be limited by OS per
the help file (write your own

)