Control click nur coordinaten + fenstername

10/19/2013 22:17 inspi123#1
Hallo!
Schon wieder ein threa von mir .___.
Also gibt es irgendwie eine möglichkeit control clicks nur mit koordinaten & Fensternamen auszuführen? Wenn nicht gibt es irgendeine andre möglichkeit ein verstecktes (hidden) ie fenster anzusteuern?
10/19/2013 23:19 alpines#2
Ja, wenn es dein eigenes IE Objekt ist mit den üblichen IE Befehlen, wenn es ein anderes IE ist, dann nutz den 2. Parameter "attach".
Code:
$oIE = _IECreate("URI der aktuellen Seite des hidden IE", 1)
Und für ControlClick sind die letzten zwei Parameter entscheidend:
Code:
ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y]]]] )
Bevor du postest gib bitte den Befehl in SciTE ein und drück F1 um die Hilfe anzuzeigen, dort wird eigentlich alles erklärt.

All die Fragen sind überflüssig wenn du mal ab und zu in die Hilfe schauen würdest.
10/20/2013 08:38 inspi123#3
naja es is ja nicht mein eigenes ie objekt.
und mein problem ist ich bekomme da keinen text angezeigt wenn ich mit dem window info curser drüber fahre weils eine grafik ist, die als link verwendet wird.
Deshalb hab ich auch geschrieben nur koordinaten & fenstername, mehr steh mir nicht zur verfügung..
10/20/2013 11:43 berkay2578#4
Use AutoIt Window Info and set coord mode to client from the options :p
--
Drag Finder Tool to the position you want to click.
Go to the Mouse tab.

This is what you should use in the code;

Code:
$title = "Title Text from the Window Info [Basic Window Info]"
$mouseEvent = "left" ;"right" is the right-click etc
$clickCount = 1 ;how many times should it click
;~ let's say your position property is 540,360
$coordX = 540 ; "First coordinate on the position property of the mouse tab"
$coordY = 360 ; "Second coordinate on the position property of the mouse tab"

ControlClick($title, "", "", $mouseEvent, $clickCount, $coordX, $coordY)

;you won't need to use the text parameter unless you're dealing with multiple windows
and here is an example; (made for the 800x600 window size)
Code:
ControlClick("Soldat", "", "", "left", 1, 10, 540)
10/20/2013 15:04 inspi123#5
thank you soooo much =D