nefas Posted January 22, 2009 Posted January 22, 2009 Hi, at first, sorry for my english i'm from germany So, i'ff tray to write an login script for wow, but not one of these that use an sleep. i use the pixelsearch function to check the screen. if the loginscreen is ready so i'll send the user and the pass. in windowed every thinks works fine, but in fullscreen... every time i get the pixel color "0" any idea? system is Vista autoit vs. 3.3.0.0 Func _Login() $WoWUser = _GUICtrlComboBox_GetEditText($ComboAccount) $WoWPassword = GUICtrlRead($txtPass) WinWaitActive("World of Warcraft") $xy = WinGetPos("World of Warcraft") $hWnd = WinGetHandle("World of Warcraft") Sleep(100) while 1 $Coordinaten = PixelSearch( $xy[0], $xy[1], $xy[2], $xy[3], 0xffc700,1,1,$hWnd) if Not @error Then ;Sleep(10000) ControlSend($hWnd, "", "",$WoWUser ) Sleep(100) ControlSend($hWnd, "", "", "{TAB}") Sleep(100) ControlSend($hWnd, "", "", $WoWPassword) Sleep(100) ControlSend($hWnd, "", "", "{ENTER}") Sleep(100) ExitLoop EndIf WEnd EndFunc thx for your help
Ashww Posted January 22, 2009 Posted January 22, 2009 (edited) Hi, at first, sorry for my english i'm from germany So, i'ff tray to write an login script for wow, but not one of these that use an sleep. i use the pixelsearch function to check the screen. if the loginscreen is ready so i'll send the user and the pass. in windowed every thinks works fine, but in fullscreen... every time i get the pixel color "0" any idea? system is Vista autoit vs. 3.3.0.0 Func _Login() $WoWUser = _GUICtrlComboBox_GetEditText($ComboAccount) $WoWPassword = GUICtrlRead($txtPass) WinWaitActive("World of Warcraft") $xy = WinGetPos("World of Warcraft") $hWnd = WinGetHandle("World of Warcraft") Sleep(100) while 1 $Coordinaten = PixelSearch( $xy[0], $xy[1], $xy[2], $xy[3], 0xffc700,1,1,$hWnd) if Not @error Then ;Sleep(10000) ControlSend($hWnd, "", "",$WoWUser ) Sleep(100) ControlSend($hWnd, "", "", "{TAB}") Sleep(100) ControlSend($hWnd, "", "", $WoWPassword) Sleep(100) ControlSend($hWnd, "", "", "{ENTER}") Sleep(100) ExitLoop EndIf WEnd EndFunc thx for your help World of warcraft was designed so that it would be very difficult to bot! ill take a look Edit: Here is what i have come up with! $username = "User" $Password = "pass" Sleep(5000) ControlClick("World of Warcraft","","GxWindowClassD3d0") Send($username & "{tab}" & $Password & "{enter}");tab switches the boxes, enter logs you in;) Since World of Warcraft when started up allready has the unsername box selected this does work. Tested Simple Replace the username and password section with your username and password Edited January 22, 2009 by Ashww - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nefas Posted January 22, 2009 Author Posted January 22, 2009 World of warcraft was designed so that it would be very difficult to bot! ill take a look Edit: Here is what i have come up with! $username = "User" $Password = "pass" Sleep(5000) ControlClick("World of Warcraft","","GxWindowClassD3d0") Send($username & "{tab}" & $Password & "{enter}");tab switches the boxes, enter logs you in;) Since World of Warcraft when started up allready has the unsername box selected this does work. Tested Simple Replace the username and password section with your username and password thx, but this is exactly what i don't want to use, the sleep function. mmmm when i use the window mode every thinks worls fine, just in fullscreen its dosen't work. because pixelsearch or pixelgetcolor gets allways "0"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now