Jump to content

Recommended Posts

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

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.

Posted

  peter123 said:

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.

Posted

  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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...