Windows: Open image with LC EXE
Paul Dupuis
paul at researchware.com
Wed Mar 6 12:40:18 EST 2019
On 3/6/2019 12:22 PM, Klaus major-k via use-livecode wrote:
> Hi all,
>
>> Am 06.03.2019 um 18:16 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>>
>> Hi Paul,
>>
>>> Am 06.03.2019 um 18:13 schrieb Paul Dupuis via use-livecode <use-livecode at lists.runrev.com>:
>>>
>>> If you select an LC standalone as the app t open an image with, the name and path to the image will be sent to the EXE as a command line parameter. See the dictionary/documentation on handling command line parameters in a standalone
>> thanks, yes, I guessed, but WHAT message is sent to our EXE?
>> Means WHERE can I handle the $1 or $2 CLI parameter?
> ah, I think I found it, it is the "relaunch" message, right?
>
>
>
I am not sure if your APP is already open what message is sent (never
tested that). If your APP is not open, windows starts it with the file
as the parameter, so you can pick it up in pretty much any message sent
on startup from "startup" through "preOpenStack" to "openStack" or even
"openCard"
More information about the use-livecode
mailing list