Jump to content

ControlClick ignoring coordinates


Recommended Posts

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 by Awwe
Link to comment
Share on other sites

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 by Awwe
Link to comment
Share on other sites

I'm not so good in Autoit3.

but i think you forgot func.

thus:

func afkol()

else

$on "0"

end func

The function afklol() is defined above that, the afklol() is just calling the afklol funciton.

Link to comment
Share on other sites

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.

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...