PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can you tell if a program was launched by a Hotkey?

Is it possible to tell if a program was launched by a Hotkey/Shell Key/whatever it's called rather than from the Start Menu or from File Explorer, and make it act differently?
You can make the hotkey link pass a command line variable that the main windows function picks up and then check for this variable to see how the program was launched.