Its Possible to run hide the program?
Thanks in advance
Its Possible to run hide the program?
Thanks in advance
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.
Thanks, good idea!
I found this:
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();
The way to call external Windows API functions has changed in HTMLExe 4, see http://www.htmlexe.com/help/samplescriptDLLfunc.htm