Author: Lexikos Last Modified: 20091009
Allows the user to select a rectangular region of the screen by clicking and dragging the mouse. The selected region is indicated by a red outline in real-time. Outputs the top-left (aX1, aY1) and bottom-right (aX2, aY2) co-ordinates of the rectangle.
LetUserSelectRect(ByRef X1, ByRef Y1, ByRef X2, ByRef Y2)
For the functions's parameters and return value, please see it's source code or the document.
It is not stdlib conform, because labels in function are in use. The function lacks an external documentation, so I *Tuncay* wrote a simple one.
See also and look for similiar function: SelectArea() by Learning one
o http://www.autohotkey.com/forum/viewtopic.php?t=62195
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=49784
The functions is an open source item under the Public Domain license.
For details, please see lexikos-license.txt
; #Include LetUserSelectRect.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% CoordMode, Mouse ; Required: change coord mode to screen vs relative. LetUserSelectRect(x1, y1, x2, y2) MsgBox %x1%,%y1% %x2%,%y2% ExitApp