I am using a graphics software that has child windows, each with
ClassNN: AfxFrameOrView#### (where #### are changing numbers for each window). I want to MouseMove, 40, 40, relative to the current child window (starting from the bottom right, not from the default top left). However when I try, it always go to that position for the whole software window and not the child window.
I tried something like the following, but I am missing how to point to any ClassNN that starts with "
AfxFrameOrView", and how to point to the position in that window from the
bottom right position:
Code: Select all
Numpad0::
controlgetfocus, thiscontrol
if(thiscontrol = "AfxFrameOrView")
ControlFocus, "AfxFrameOrView"
MouseMove, -40, -40, Relative
Return
Here is an image of the program: