Jump to content
Sign in to follow this  
Awwe

ControlClick ignoring coordinates

Recommended Posts

Awwe

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
Blue_Drache

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
Awwe

That was unnecessary.

Share this post


Link to post
Share on other sites
Blue_Drache

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
Awwe

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
peter123

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
Outshynd

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
Awwe

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
evilertoaster

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
Awwe

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  

×