Page 1 of 1
console app -- started via..? (Windows Only)
Posted: Sun Aug 30, 2009 6:07 pm
by hss
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!
Posted: Tue Sep 01, 2009 7:37 am
by hss
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
Posted: Tue Sep 01, 2009 8:10 am
by Rings
moved 2 Tips&Tricks...
Re: console app -- started via..? (Windows Only)
Posted: Tue Nov 24, 2009 7:37 am
by Michael Vogel
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