AIT_MouseDragDrop
Description
Drags and drops the section from a specified start position to a specified end position.
Format
bool AIT_MouseDragDrop (
integer nXStartPos, // Start X coordinate
integer nYStartPos, // Start Y coordinate
integer nXEndPos, // End X coordinate
integer nYEndPos, // End Y coordinate
integer nButton, // Mouse button
integer nKeyState // Key status
);
Parameters
nXStartPos (input)
Specify the X coordinate of a position at which to start dragging.
nYStartPos (input)
Specify the Y coordinate of a position at which to start dragging.
nXEndPos (input)
Specify the X coordinate of a position at which to drop the section.
nYEndPos (input)
Specify the Y coordinate of a position at which to drop the section.
nButton (input)
Specify a mouse button to be used for dragging and dropping. You have to set one of the following values.
Value | Description |
---|---|
LBUTTON | Left mouse button |
MBUTTON | Center mouse button |
RBUTTON | Right mouse button |
nKeyState (input)
Specify key status, which must be one of the following values.
Value | Description |
---|---|
SHIFT_ON | The Shift key is on. |
ALT_ON | The Alt key is on. |
CTRL_ON | The Ctrl key is on. |
SHIFT_OFF | The Shift key is off. |
ALT_OFF | The Alt key is off. |
CTRL_OFF | The Ctrl key is off. |
Return values
The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:
Extended error number | Error code |
---|---|
8 | ERROR_NOT_ENOUGH_MEMORY |
14 | ERROR_OUTOFMEMORY |
87 | ERROR_INVALID_PARAMETER |
112 | ERROR_DISK_FULL |