hi,
how to check whether the -- PB compiled -- .exe was started
'directly' (like, double-click or Start/Run) or via shell (cmd.exe/c:\app.exe)?
thanks!
console app -- started via..? (Windows Only)
Code: Select all
OpenConsole()
GetConsoleScreenBufferInfo_(GetStdHandle_(#STD_OUTPUT_HANDLE),@xy.CONSOLE_SCREEN_BUFFER_INFO)
If(xy\dwCursorPosition\Y=0)
MessageRequester("Appl.","Please, start from command-line!"):End
EndIf
PrintN("Hello.")
End
- Michael Vogel
- Addict
- Posts: 2810
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: console app -- started via..? (Windows Only)
There was also a tip somewhere in the forum to do the check for standard applications, wasn't it?
I can't find it anymore...
...but I believe, that there was an output, if the application has been started by a double click or via command line
Michael
I can't find it anymore...


Michael