I have a GUI which is named MyGUI.
It contains hundreds of controls. One of the controls is named MYCONTROL. When I use the advanced Window Spy, and I hover the cursor ontop of this control, the "Text" is surely identified as MYCONTROL. The ClassNN shows as Static217, but this will change as I add more code to MyGUI in the future.
Next, I want to controlclick on it while working in a different application, such as Notepad. So here is my simple code:
Code: Select all
b::
ControlClick, MYCONTROL, MYGUI
Return
How should I do this simple task?
Thanks for any help!