Autor Beitrag
greyhound
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: So 02.11.03 13:44 
Hallo Leute,

mit mouse_event kann man ja alle Aktionen der Maus imitieren.
ausblenden Delphi-Quelltext
1:
mouse_event(MOUSEEVENTF_WHEEL,0,0,120,0);					

funktioniert so weit ganz gut, nur wird damit nur eine Richtung abgedeckt.

wenn ich aber
ausblenden Delphi-Quelltext
1:
mouse_event(MOUSEEVENTF_WHEEL,0,0,-120,0);					

also mit negativem Wert angebe, wie auch im Netz beschrieben, erhalte ich den Fehler "Konstantenausdruck verletzt untere Grenze".

Was ist hier die Lösung, wenn ich die Bewegung des Scrollrads nach unten imitieren möchte?

Danke im Voraus,

greyhound

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Sa 08.11.03 21:29 
Hallo,

ich habe so was zwar noch nie probiert, aber...

ausblenden Quelltext
1:
mouse_event(MOUSEEVENTF_WHEEL,0,0,Cardinal(ShortInt(-120)),0);					


Wenn das nicht tut: sende doch einfach WM_MOUSEWHEEL mittels PostMessage(HWND_BROADCAST, ...) an alle Anwendungen...

_________________
Life is a bad adventure, but the graphic is really good!