View Single Post
Stacks
Old 08-08-2009, 09:30 PM #23 (permalink)  
Stacks's Avatar
4-of-a-Kind

Join Date: Jan 2008
Location: Im opedipus bitch, the original balla.
Posts: 2,605
Stacks will become famous soon enoughStacks will become famous soon enough
I have a question here...

I'm trying to create a script so that when I use xbutton2 on my mouse, the HEM instant hand history will open.



Using the SendInput function I have it working:

XButton2::
SendInput {Click 368, 126}
return

However, the problem is I see the mouse movement. I was wondering how I can get it to work seamlessly, so looked on the AHK website and found the ControlClick function.

The ControlClick function (XButton2::ControlClick x368 y126,A) works perfectly for everything; except, the manner in which I'm trying to use it. Because it needs to click on the HUD, it doesn't seem to work. It seems as if it is sending a virtual mouse click behind the HUD, instead of clicking the part where they HUD is.

Does anymore know how to remedy this situation so I can get this working?

Thanks for any help.
Reply With Quote