


Kod: Tümünü seç
procedure hideTaskbar;
var wndHandle : THandle;
wndClass : array[0..50] of Char;
begin
StrPCopy(@wndClass[0], 'Shell_TrayWnd');
wndHandle := FindWindow(@wndClass[0], nil);
ShowWindow(wndHandle, SW_HIDE); // This hides the taskbar
end;
function MouseHook(code: Integer; wp: wParam; lp: lParam): LRESULT; stdcall;
begin
result:=1;
end;
function LLKeyHookFunc(HookCode: Integer; KeyCode: wParam; kStrokeInfo: lParam): LResult; stdcall;
begin
result:=1;
end;
procedure KeybdHook;
const
WH_KEYBOARD_LL = 13;
begin
KH := SetWindowsHookEx(WH_KEYBOARD_LL, @LLKeyHookFunc, hInstance, 0);
end;//
Kod: Tümünü seç
procedure showTaskbar;
var wndHandle : THandle;
wndClass : array[0..50] of Char;
begin
StrPCopy(@wndClass[0], 'Shell_TrayWnd');
wndHandle := FindWindow(@wndClass[0], nil);
ShowWindow(wndHandle, SW_RESTORE); // This restores the taskbar
end;
function MouseHook(code: Integer; wp: wParam; lp: lParam): LRESULT; stdcall;
begin
result:=0;
end;
function LLKeyHookFunc(HookCode: Integer; KeyCode: wParam; kStrokeInfo: lParam): LResult; stdcall;
begin
result:=0;
end;
procedure KeybdHook;
const
WH_KEYBOARD_LL = 13;
begin
KH := SetWindowsHookEx(WH_KEYBOARD_LL, @LLKeyHookFunc, hInstance, 0);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.ShowMainForm:= False;
ShowWindow(Application.handle, SW_HIDE);
ShowCursor(true);
MH := SetWindowsHookEx(WH_MOUSE_LL, @MouseHook, hInstance, 0);
KeybdHook;
showtaskbar;
end;