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.