EDIT:
program New;
//ALLOW API CALLS! SCRIPT -> ALLOW API CALLS
const //Constants for ShowWindow
SW_HIDE = 0;
SW_SHOWNORMAL = 1;
SW_NORMAL = 1;
SW_SHOWMINIMIZED = 2;
SW_SHOWMAXIMIZED = 3;
SW_MAXIMIZE = 3;
SW_SHOWNOACTIVATE = 4;
SW_SHOW = 5;
SW_MINIMIZE = 6;
SW_SHOWMINNOACTIVE = 7;
SW_SHOWNA = 8;
SW_RESTORE = 9;
SW_SHOWDEFAULT = 10;
SW_FORCEMINIMIZE = 11;
SW_MAX = 11;
function FindWindowW(lpClassName, lpWindowName: String): HWND; external 'FindWindowW@user32.dll';
function ShowWindow(hwnd: HWND; nCmdShow: Integer): Boolean; external 'ShowWindow@user32.dll';
begin
end.
I included my own FindWindow function so you wouldn't have to use SCAR's watered down one. To just find something by title, use "FindWindowW('', 'Some Title')" to return the HWND. And to use ShowWindow, use something like this: "ShowWindow(SomeHWND, SW_HIDE)" and that would hide it…
Oh, if you wanted the start bar, use: "FindWindowW('Shell_TrayWnd', '')". If you want the desktop, I believe its HWND is always zero.