Awwe Posted July 16, 2007 Posted July 16, 2007 (edited) Whenever I use controlclick in the game World of warcraft, controlclick completley ignores coordinates. When the window is active, controlclick clicks where the mouse is, and not at the coordinates i specified. However, if the window is minimized, it doesn't click at all ! How can I solve this ? here's the code: AutoItSetOption("WinTitleMatchMode", 4) hotkeyset("{pause}", "hotkey") $on = "0" ProcessWait("WoW.exe") $handle = WinGetHandle("classname=GxWindowClassD3d") while 1 WEnd func afklol() While $on = "1" sleep(10000) ControlClick($handle,"","","right",1,564,235) WEnd EndFunc func hotkey() If $on = "0" then $on = "1" afklol() Else $on = "0" EndIf EndFunc Edited July 16, 2007 by Awwe
Blue_Drache Posted July 16, 2007 Posted July 16, 2007 You can solve this by not running a WoW bot. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Blue_Drache Posted July 16, 2007 Posted July 16, 2007 As are WoW bots. Play the game like it was supposed to be played. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Awwe Posted July 16, 2007 Author Posted July 16, 2007 (edited) Blue_Drache said: As are WoW bots. Play the game like it was supposed to be played.Your posts are not helping in any way, would you please just go away, I don't need you to tell me what not to do. Edited July 16, 2007 by Awwe
peter123 Posted July 17, 2007 Posted July 17, 2007 I'm not so good in Autoit3. but i think you forgot func. thus: func afkol() else $on "0" end func
Outshynd Posted July 17, 2007 Posted July 17, 2007 I heard a rumor, back in my hacking days, that WoW checks the current mouse position before actually registering the click. I'm not sure if that's true or not but, if so, ControlClick won't work.
Awwe Posted July 17, 2007 Author Posted July 17, 2007 peter123 said: I'm not so good in Autoit3.but i think you forgot func.thus: func afkol()else$on "0"end funcThe function afklol() is defined above that, the afklol() is just calling the afklol funciton.
evilertoaster Posted July 17, 2007 Posted July 17, 2007 ControlClick works like it should so the issue is with the specific software in question. Lucky for you there is a thread in example scripts that happens to deal with such software - http://www.autoitscript.com/forum/index.php?showtopic=37998. Im sure whatever your trying to do has already been tried by some folks there...
Awwe Posted July 17, 2007 Author Posted July 17, 2007 evilertoaster said: ControlClick works like it should so the issue is with the specific software in question. Lucky for you there is a thread in example scripts that happens to deal with such software - http://www.autoitscript.com/forum/index.php?showtopic=37998. Im sure whatever your trying to do has already been tried by some folks there...Yes, I am aware of that forum, however all the bots and programs there are made with the condition that WoW is the active window. Thanks for the tips everyone, I'm still trying to figure this out . I've posted this at behead.de, but the site is gone now. hm.
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