Ja, die Regelmäßigen Serverabstürtze bringen mich auch etwas aus dem Konzept.
Oje, die Portalseite is grad kaputt
Ich weiß, ich war grad zu faul, den WM_MOUSEMOVE zu zerlegen
So besser?
Delphi-Quellcode:
WM_MOUSEMOVE:
begin
// Exit Screensaver on mouse move with a Workaround for the "Non-Kugel Mäuse Bug" :)
if (ScreenMode = scrmStart) and (Counter >= 10) then begin
If StartUpCursorPos.x+StartUpCursorPos.y=0 then begin
StartUpCursorPos.x:=LOWORD(lParam);
StartUpCursorPos.y:=HIWORD(lParam);
end else begin
CurrentPos.x:=LOWORD(lParam);
CurrentPos.y:=HIWORD(lParam);
If (CurrentPos.x-StartupCursorPos.x<-10) or
(CurrentPos.x-StartupCursorPos.x> 10) or
(CurrentPos.y-StartupCursorPos.y<-10) or
(CurrentPos.y-StartupCursorPos.y> 10) then
PostMessage(hWnd, WM_CLOSE, 0, 0);
end;
end;
end;