Jump to content

Controlcoordinats dont work!?


Recommended Posts

I have a Problem!

I´dlike to script something, what log in in a Browser game, every time when i start pc

Ok,. i had to place the program, or an .ink of it, in the autostart,.

But it doues not work!

I like it to work via ControlID

But every time I Run the Script it Klicks "nutzerbedingung" (This are the agb´s)

So I tryed to form per opt("Mousecoordmode",2)

to click the client,...

with 0the whole screen,...

with 1 the window,..

I tryed to find the coordinates per hand,.. but it is impossible.

Always he clicks at the Agb´s

But there are some more Problems. Just read the coments below. I deeply hope you can help me

AutoItSetOption("Sendkeydelay",0.001)
AutoItSetOption("WinTextMatchMode",2)
;AutoItSetOption("Winwaitdelay",10) Delay to short, does not work4 now
AutoItSetOption("TrayOnEventMode",1)
;AutoItSetOption("onExitFunc",Exi());Does not work either, but it is not my mainproblem
;AutoItSetOption("RunErrorsFatal",0); In the German Helpfile this exists, but it does nore work, neither it exsits in the english helpfile 
dim $Hwnd[10][4], $Login, $PW, $PID;$PID =ProcessID
$Hwnd[0][0]="Windows Internet Explorer"
$Hwnd[0][1]="Befehlsleiste"
$Hwnd[0][3]="[CLASS:Internet Explorer_Server; INSTANCE:1]"
$Hwnd[1][0]="AutoVervollständigen von Kennwörtern"
$Hwnd[1][1]="Möchten Sie, dass dieses Kennwort gespeichert wird?"
$Hwnd[1][3]="[CLASS:Button; INSTANCE:3]"
$Login="Zach"
$Pw="XXXXXXXXXXXXXXXXXX"
;If you need the Password, ask me;
;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$PID=Run(@ProgramFilesDir&"\Internet Explorer\iexplore.Exe"&" http://www.fatal-vortex.de/user_login.fv"); @sw_hide Does not work,. only 4 documents?
WinWait($Hwnd[0][0])
;$Hwnd[0][1]=WinGetText($Hwnd[0][0])
$Hwnd[0][2]=WinGetHandle($Hwnd[0][0]);,$Hwnd[0][1])
;WinSetState($Hwnd[0][2],$Hwnd[0][3],@SW_HIDE)
$Hwnd[0][0]=WinSetTitle($Hwnd[0][2],$Hwnd[0][1],"FatalVortex")
ControlFocus($Hwnd[0][2],$Hwnd[0][1],$Hwnd[0][3])
;MouseClick("left",478,224) ;(this mouseclick works![in client mode])
ControlClick($Hwnd[0][2],$Hwnd[0][1],$Hwnd[0][3],"left",1,328,154); [b][color=red]THIS SEAMES TO BE THE PROBLEM LINE[\color][\b]
ControlSend($Hwnd[0][2],$Hwnd[0][1],$Hwnd[0][3],$Login&"{tab}")
ControlSend($Hwnd[0][2],$Hwnd[0][1],$Hwnd[0][3],$Pw&"{enter}")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...