# LetUserSelectRect()

作者: Lexikos 最近更新时间: 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)

关于函数的参数和返回值, 请参阅其源码或 此文档.

#### 备注

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

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=49784

#### 许可

此函数(集)是基于 Public Domain 许可的开源项目. 想了解许可详情, 请参见 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