If the cursor is within the predefine box, it will send abc and if it happens to wonder outside the defined area
it will send xyz.
In other words, it will behave differently depend where the cursor is located. In this case, it's ok to send abc as long as you're within this box but if cursor move out of the box send xyz. Is this something doable in ahk?
Code:
VarSetCapacity(RectangleStructure, 16, 0)
NumPut(200, RectangleStructure, 0) ; X coordinate of the Upper-Left corner on screen.
NumPut(200, RectangleStructure, 4) ; Y Coordinate of the Upper-Left corner on screen.
Numput(400, RectangleStructure, 8) ; X coordinate of the Lower-Right corner on screen.
NumPut(400, RectangleStructure, 12) ; Y Coordinate of the Lower-Right corner on screen.
Return
F2::
DllCall("ClipCursor", "Uint", &RectangleStructure)
return
F3::
DllCall("ClipCursor", "Uint", "NULL")
return




