Sign in to follow this  
Followers 0
Awwe

ControlClick ignoring coordinates

10 posts in this topic

#1 ·  Posted (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 by Awwe

Share this post


Link to post
Share on other sites



You can solve this by not running a WoW bot.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

That was unnecessary.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

Share this post


Link to post
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...

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0