Run Hide?

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.

6a63fb1ca991ad08.png
 
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:
Back
Top