Autor Beitrag
JaketheSnake
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 10:19 
Moin
Ich wollt ma fragen ob man die Mouse mit koordinaten ansteuern kann
z.B. : Mouse : moveto (235/86)

_________________
Good, better , best
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Mo 31.10.05 10:24 
SetCursorPos(X-Pos, Y-Pos);

hättest du aba auch per forums-suche gefunden

_________________
GEIZ IST GEIL! - Ihr Sozialamt
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 10:25 
vielen dank

_________________
Good, better , best
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 10:55 
Ich hab überall gesucht aber leider nichts anständiges gefunden.
Wie macht man das ,dass die Maus an der gewüschten koordinate clickt ?

_________________
Good, better , best
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 31.10.05 11:00 
mouse_event oder SendInput
(Beide werden in der Windows XP SP2 SDK Dokumentation genau beschrieben, auch online steht eine Erklärung sicherlich im MSDN von MS)

//EDIT: genau, hier:
msdn.microsoft.com/l...ions/mouse_event.asp
(Und da steht auch ein Link zu SendInput...)


Zuletzt bearbeitet von jaenicke am Mo 31.10.05 11:01, insgesamt 1-mal bearbeitet
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Mo 31.10.05 11:00 
Müsste das nicht irgendwie so gehen, dass du dir das Handle vom Fenster beim Mauszeiger holst (WindowFromPoint oder so), und dann ne Message an's Fenster schickst???
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 31.10.05 11:02 
user profile iconChryzler hat folgendes geschrieben:
Müsste das nicht irgendwie so gehen, dass du dir das Handle vom Fenster beim Mauszeiger holst (WindowFromPoint oder so), und dann ne Message an's Fenster schickst???

Schon, is aber viel komplizierter...
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 11:19 
sorry jaenicke bin leider noch ein anfänger .

Deine msdn seite versteh ich net :crying: .

_________________
Good, better , best
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 31.10.05 11:26 
WAS verstehst du denn nicht? Frag doch einfach danach :wink: ! Oder kannst du kein Englisch?

Jedenfalls brauchste nur bei Google zu suchen, 10 Sekunden, und ich hatte ein Beispiel... :evil:
www.mrunix.de/forums...wthread.php?p=142677
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 11:30 
wo bring ich da jetzt MOUSEEVENTF_LEFTDOWN unter ?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button1Click(Sender: TObject);
begin
      SetCursorPos(34, 56);

end;


Moderiert von user profile iconraziel: Delphi-Tags repariert.

_________________
Good, better , best
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 11:35 
Danke hab ganz vergessen bei google zu suchen :oops:

_________________
Good, better , best
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 31.10.05 11:35 
Das ist ein Parameter für mouse_event!!! Zuerst setzt du mit SetCursorPos die Mausposition, wie du es auch getan hast. Dann rufst du mouse_event auf (wie in dem Beispiel, auf das ich verlinkt habe...).
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 11:40 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject);
begin
      SetCursorPos(788, 559);

// Linke Maustaste simulieren
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);

end;


kannst du mir grad nochma erklären was es mit den nullen auf sich hat ?

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.

_________________
Good, better , best
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 11:44 
hat sich erledigt

_________________
Good, better , best
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Mo 31.10.05 11:46 
@JakeTheSnake: Könntest du bitte Delphi-Tags im Code verwenden, danke.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 31.10.05 11:49 
bei den Delphi-Tags musst du
[delphi]
[/delphi]
benutzen und nicht zweimal [delphi] wie du es oben getan hast...
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Mo 31.10.05 11:56 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject); 
begin 
SetCursorPos(788, 559); 

// Linke Maustaste simulieren 
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); 
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); 

end;

_________________
Good, better , best