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.

ValueDescription
LBUTTONLeft mouse button
MBUTTONCenter mouse button
RBUTTONRight mouse button

nKeyState (input)

Specify key status, which must be one of the following values.

ValueDescription
SHIFT_ONThe Shift key is on.
ALT_ONThe Alt key is on.
CTRL_ONThe Ctrl key is on.
SHIFT_OFFThe Shift key is off.
ALT_OFFThe Alt key is off.
CTRL_OFFThe 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 numberError code
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
87ERROR_INVALID_PARAMETER
112ERROR_DISK_FULL