Y yenerich New member Jul 31, 2012 #1 Its Possible to run hide the program? Thanks in advance Last edited: Feb 23, 2014
gdgsupport Support Staff member Jul 31, 2012 #2 Not directly, but there is a workaround: you can use a tray icon instead and have the main window minimized to the tray at startup. Thus, it wouldn’t appear.
Not directly, but there is a workaround: you can use a tray icon instead and have the main window minimized to the tray at startup. Thus, it wouldn’t appear.
Y yenerich New member Aug 1, 2012 #3 Thanks, good idea! I found this: Code: function GetActiveWindow(): LongWord; external "[email protected] stdcall"; function ShowWindow(hWnd : LongWord; nCmdShow : LongWord): LongWord; external "[email protected] stdcall"; Const SW_MINIMIZE = 6; procedure Minimize; var hWnd : Longint; begin hWnd := GetActiveWindow(); ShowWindow(hWnd, SW_MINIMIZE); end; Trying to use SW_HIDE = 0 but the software does not accept GetActiveWindow(); Last edited: Feb 23, 2014
Thanks, good idea! I found this: Code: function GetActiveWindow(): LongWord; external "[email protected] stdcall"; function ShowWindow(hWnd : LongWord; nCmdShow : LongWord): LongWord; external "[email protected] stdcall"; Const SW_MINIMIZE = 6; procedure Minimize; var hWnd : Longint; begin hWnd := GetActiveWindow(); ShowWindow(hWnd, SW_MINIMIZE); end; Trying to use SW_HIDE = 0 but the software does not accept GetActiveWindow();
gdgsupport Support Staff member Aug 2, 2012 #4 The way to call external Windows API functions has changed in HTMLExe 4, see http://www.htmlexe.com/help/samplescriptDLLfunc.htm Last edited: Feb 23, 2014
The way to call external Windows API functions has changed in HTMLExe 4, see http://www.htmlexe.com/help/samplescriptDLLfunc.htm