Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Execute File (OpenBrowser() exploit?)

Author
Message
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Jun 2022 00:00 Edited at: 22nd Jun 2022 23:12
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):

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 )
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Jun 2022 00:41
Verey interesting. Nice find
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 22nd Jun 2022 23:16 Edited at: 22nd Jun 2022 23:19
first post code updated to include:

which, when broadcast to my phone, did what was expected. on WIN, the OS suggested a phone app (which i didnt bother to set up yet).

thanks for the idea, blink! many new doors are opened with this hidden behavior of OpenBrowser(), which i've confirmed:
Quote: "On Windows it certainly can open any file as it's using an API command call ShellExecute. Expect it's handled the same way on other platforms too."
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 18th Aug 2022 23:19
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 19th Aug 2022 04:01
Could somewhat integrate sql I imagine and a bunch of other usefull things

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 13th Nov 2022 18:57 Edited at: 13th Nov 2022 18:58
Internally "OpenBrowser" calls "ShellExecute" with the "open" flag so its the OS that performs the action on the given input string, as I remember its a pretty straight forward wrapper with not a great deal of logic and including the possible actions of ShellExecute in the help is far beyond the scope of AppGameKit .. easier just to say "if you want open a URL, use this!"
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 13th Nov 2022 19:53
For a list of URL schemas
I'm sure you'll have to test which schemas work on which browsers

Login to post a reply

Server time is: 2024-03-28 19:43:52
Your offset time is: 2024-03-28 19:43:52