Forum: Win32/Win64 API (native code)
by Neutral General,
8. Dez 2010
Hallo,
Also Mouse.CursorPos kapselt ja SetCursorPos. Also dürfte das egal sein. Hab jetzt auch mal mouse_event meine berechnete Position übergeben... funktioniert allerdings trotzdem nicht.
Mouse.CursorPos := Point(x,y);
if <Bedingung> then
begin
mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
end
Forum: Win32/Win64 API (native code)
by Neutral General,
8. Dez 2010
Hallo,
Ich mach momentan grob folgendes:
Mouse.CursorPos := Point(x,y); // a)
if <Bedingung> then
begin
mouse_event(MOUSEEVENTF_LEFTDOWN, Mouse.CursorPos.x, Mouse.CursorPos.Y, 0, 0); // b