|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAutoTest.AutoIt3
public class AutoIt3
Nested Class Summary | |
---|---|
static class |
AutoIt3.ByReferenceBoolean
|
static class |
AutoIt3.ByReferenceDouble
|
static class |
AutoIt3.ByReferenceInteger
|
static class |
AutoIt3.ByReferenceLong
|
static class |
AutoIt3.ByReferenceString
|
Constructor Summary | |
---|---|
AutoIt3()
|
Method Summary | |
---|---|
void |
BlockInput(int nToggle)
Documentation for: BlockInput Will prevent any user input via the mouse or keyboard. |
void |
CDTray(java.lang.String szDrive,
java.lang.String szAction)
Documentation for: CDTray Controls CD tray of a local system. |
void |
ClipGet(AutoIt3.ByReferenceString szClip,
int nBufSize)
Documentation for: ClipGet Allows you to get text from the clipboard. |
void |
ClipPut(java.lang.String szClip)
Documentation for: ClipPut Allows you to get text from the clipboard. |
int |
ControlClick(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
java.lang.String szButton,
int nNumClicks)
Documentation for: ControlClick Sends a mouse click command to a given control. |
void |
ControlCommand(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
java.lang.String szCommand,
java.lang.String szExtra,
AutoIt3.ByReferenceString szResult,
int nBufSize)
Documentation for: ControlCommand Sends a command to a control. |
int |
ControlDisable(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlDisable Disables or "grays-out" a control. |
int |
ControlEnable(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlEnable |
int |
ControlFocus(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlFocus Sets input focus to a given control on a window. |
void |
ControlGetFocus(java.lang.String szTitle,
java.lang.String szText,
AutoIt3.ByReferenceString szControlWithFocus,
int nBufSize)
Documentation for: ControlGetFocus Returns the ControlRef# of the control that has keyboard focus within a specified window. |
void |
ControlGetHandle(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: ControlGetHandle Retrieves the internal handle of a control. |
int |
ControlGetPosHeight(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlGetPosHeight Returns the height of a window. |
int |
ControlGetPosWidth(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlGetPosWidth Returns the width of a window. |
int |
ControlGetPosX(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlGetPosX Returns the X position of a window. |
int |
ControlGetPosY(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlGetPosY Returns the Y position of a window. |
void |
ControlGetText(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
AutoIt3.ByReferenceString szControlText,
int nBufSize)
Documentation for: ControlGetText Retrieves text from a control. |
int |
ControlHide(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlHide Hides a control |
void |
ControlListView(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
java.lang.String szCommand,
java.lang.String szExtra1,
java.lang.String szExtra2,
AutoIt3.ByReferenceString szResult,
long nBufSize)
Documentation for: ControlListView Sends a command to a ListView32 control. |
int |
ControlMove(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
int nX,
int nY,
int nWidth,
int nHeight)
Documentation for: ControlMove Moves a control within a window. |
int |
ControlSend(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
java.lang.String szSendText,
int nMode)
Documentation for: ControlSend Sends a string of characters to a control. |
int |
ControlSetText(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl,
java.lang.String szControlText)
Documentation for: ControlSetText Sets text of a control. |
int |
ControlShow(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szControl)
Documentation for: ControlShow Shows a control that was hidden. |
void |
DriveMapAdd(java.lang.String szDevice,
java.lang.String szShare,
int nFlags,
java.lang.String szUser,
java.lang.String szPwd,
AutoIt3.ByReferenceString szResult,
int nBufSize)
Documentation for: DriveMapAdd Maps a network drive. |
int |
DriveMapDel(java.lang.String szDevice)
Documentation for: DriveMapDel Disconnects a network drive. |
void |
DriveMapGet(java.lang.String szDevice,
AutoIt3.ByReferenceString szMapping,
int nBufSize)
Documentation for: DriveMapGet Retreives the details of a mapped drive. |
int |
IniDelete(java.lang.String szFilename,
java.lang.String szSection,
java.lang.String szKey)
Documentation for: IniDelete Deletes a value from a standard format .ini file. |
void |
IniRead(java.lang.String szFileName,
java.lang.String szSection,
java.lang.String szKey,
java.lang.String szDefault,
AutoIt3.ByReferenceString szValue,
int nBufSize)
Documentation for: IniRead Reads a value from a standard format .ini file. |
void |
Init()
Documentation for: Init Resets AutoIt to defaults (window delays, key delays, etc.). |
int |
IniWrite(java.lang.String szFileName,
java.lang.String szSection,
java.lang.String szKey,
java.lang.String szValue)
Documentation for: IniWrite Writes a value to a standard format .ini file. |
int |
IsAdmin()
Documentation for: IsAdmin Checks if the current user has administrator privileges. |
int |
MouseClick(java.lang.String szButton,
int nX,
int nY,
int nClicks,
int nSpeed)
Documentation for: MouseClick Perform a mouse click operation. |
int |
MouseClickDrag(java.lang.String szButton,
int nX1,
int nY1,
int nX2,
int nY2,
int nSpeed)
Documentation for: MouseClickDrag Perform a mouse click and drag operation. |
void |
MouseDown(java.lang.String szButton)
Documentation for: MouseDown Perform a mouse down event at the current mouse position. |
int |
MouseGetCursor()
Documentation for: MouseGetCursor Returns a cursor ID Number: 0 = UNKNOWN (this includes pointing and grabbing hand icons) 1 = APPSTARTING 2 = ARROW 3 = CROSS 4 = HELP 5 = IBEAM 6 = ICON 7 = NO 8 = SIZE 9 = SIZEALL 10 = SIZENESW 11 = SIZENS 12 = SIZENWSE 13 = SIZEWE 14 = UPARROW 15 = WAIT |
int |
MouseGetPosX()
Documentation for: MouseGetPosX Gets the X coordinate of the mouse pointer. |
int |
MouseGetPosY()
Documentation for: MouseGetPosY Gets the Y coordinate of the mouse pointer. |
int |
MouseMove(int nX,
int nY,
int nSpeed)
Documentation for: MouseMove Moves the mouse pointer to the specified coordinates. |
void |
MouseUp(java.lang.String szButton)
Documentation for: MouseUp Perform a mouse up event at the current mouse position. |
void |
MouseWheel(java.lang.String szDirection,
int nClicks)
Documentation for: MouseWheel Moves the mouse wheel up or down. |
int |
Opt(java.lang.String szOption,
int nValue)
Documentation for: Opt This option will set Function options in AutoIT. |
int |
PixelChecksum(int nLeft,
int nTop,
int nRight,
int nBottom,
int nStep)
Documentation for: PixelChecksum Generates a checksum for a region of pixels. |
int |
PixelGetColor(int nX,
int nY)
Documentation for: PixelGetColor Returns a pixel color according to x,y pixel coordinates. |
void |
PixelSearch(int nLeft,
int nTop,
int nRight,
int nBottom,
int nCol,
int nVar,
int nStep,
AutoIt3.ByReferenceString szResult,
int nBufSize)
Documentation for: PixelSearch Searches a rectangle of pixels for the pixel color provided. |
int |
ProcessClose(java.lang.String szProcess)
Documentation for: ProcessClose Terminates a named process. |
int |
ProcessExists(java.lang.String szProcess)
Documentation for: ProcessExists Checks to see if a specified process exists. |
int |
ProcessSetPriority(java.lang.String szProcess,
int nPriority)
Documentation for: ProcessSetPriority Changes the priority of a process |
int |
ProcessWait(java.lang.String szProcess,
int nTimeout)
Documentation for: ProcessWait Pauses script execution until a given process exists. |
int |
ProcessWaitClose(java.lang.String szProcess,
int nTimeout)
Documentation for: ProcessWaitClose Pauses script execution until a given process does not exist. |
int |
RegDeleteKey(java.lang.String szKeyName)
Documentation for: RegDeleteKey Deletes a key or value from the registry. |
int |
RegDeleteVal(java.lang.String szKeyName,
java.lang.String szValuename)
Documentation for: RegDeleteVal Deletes a key or value from the registry. |
void |
RegEnumKey(java.lang.String szKeyName,
int nInstance,
AutoIt3.ByReferenceString szResult,
int nBufSize)
Documentation for: RegEnumKey Reads the name of a subkey according to it's instance. |
void |
RegEnumVal(java.lang.String szKeyName,
int nInstance,
AutoIt3.ByReferenceString szResult,
int nBufSize)
Documentation for: RegEnumVal Reads the name of a value according to it's instance. |
void |
RegRead(java.lang.String szKeyName,
java.lang.String szValuename,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: RegRead Reads a value from the registry. |
int |
RegWrite(java.lang.String szKeyName,
java.lang.String szValueName,
java.lang.String szType,
java.lang.String szValue)
Documentation for: RegWrite Creates a key or value in the registry. |
int |
Run(java.lang.String szRun,
java.lang.String szDir,
int nShowFlags)
Documentation for: Run Runs an external program. |
int |
RunAsSet(java.lang.String szUser,
java.lang.String szDomain,
java.lang.String szPassword,
int nOptions)
Documentation for: RunAsSet Initialise a set of user credentials to use during Run and RunWait operations. |
int |
RunWait(java.lang.String szRun,
java.lang.String szDir,
int nShowFlags)
Documentation for: RunWait Runs an external program and pauses script execution until the program finishes. |
void |
Send(java.lang.String szSentText,
int nMode)
Documentation for: Send Set an error message. |
int |
Shutdown(int nFlag)
Documentation for: Shutdown This function can perform various types of shutdown on all Windows operating systems. |
void |
Sleep(int nMilliseconds)
Documentation for: Sleep This function simply pauses for an amount of time. |
void |
StatusbarGetText(java.lang.String szTitle,
java.lang.String szText,
int nPart,
AutoIt3.ByReferenceString szStatusText,
int nBufSize)
Documentation for: StatusbarGetText Retrieves the text from a standard status bar control. |
void |
ToolTip(java.lang.String szTip,
int nX,
int nY)
Documentation for: ToolTip Creates a tooltip anywhere on the screen. |
void |
WinActivate(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinActivate This function will activate a specified window. |
int |
WinActive(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinActive Checks if a given window is currently active. |
int |
WinClose(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinClose This function will close a specified window |
int |
WinExists(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinExists Checks if a given window current exists (in any state). |
int |
WinGetCaretPosX()
Documentation for: WinGetCaretPosX Returns a 2-element array containing the following information: array[0] = X coordinate |
int |
WinGetCaretPosY()
Documentation for: WinGetCaretPosY Returns a 2-element array containing the following information: array[1] = Y coordinate |
void |
WinGetClassList(java.lang.String szTitle,
java.lang.String szText,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: WinGetClassList Retrieves the classes from a window. |
int |
WinGetClientSizeHeight(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetClientSizeHeight Retrieves the size of a given window's client area. |
int |
WinGetClientSizeWidth(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetClientSizeWidth Retrieves the size of a given window's client area. |
void |
WinGetHandle(java.lang.String szTitle,
java.lang.String szText,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: WinGetHandle A string pointer to receive the window title. |
int |
WinGetPosHeight(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetPosHeight Retrieves the height of a given window. |
int |
WinGetPosWidth(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetPosWidth Retrieves the width of a given window. |
int |
WinGetPosX(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetPosX Retrieves the position and size of a given window. |
int |
WinGetPosY(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetPosY Retrieves the position and size of a given window. |
void |
WinGetProcess(java.lang.String szTitle,
java.lang.String szText,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: WinGetProcess Retrieves the Process ID (PID) associated with a window |
int |
WinGetState(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinGetState Returns a value indicating the state of the window. |
void |
WinGetText(java.lang.String szTitle,
java.lang.String szText,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: WinGetText Retrieves the text from a window. |
void |
WinGetTitle(java.lang.String szTitle,
java.lang.String szText,
AutoIt3.ByReferenceString szRetText,
int nBufSize)
Documentation for: WinGetTitle Retrieves the title from a window. |
int |
WinKill(java.lang.String szTitle,
java.lang.String szText)
Documentation for: WinKill This function will forceably close a specified window. |
int |
WinMenuSelectItem(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szItem1,
java.lang.String szItem2,
java.lang.String szItem3,
java.lang.String szItem4,
java.lang.String szItem5,
java.lang.String szItem6,
java.lang.String szItem7,
java.lang.String szItem8)
Documentation for: WinMenuSelectItem Invokes a menu item of a window. |
void |
WinMinimizeAll()
Documentation for: WinMinimizeAll This function will minimize all windows. |
void |
WinMinimizeAllUndo()
Documentation for: WinMinimizeAllUndo This function will undo a previous WinMinimizeAll call. |
int |
WinMove(java.lang.String szTitle,
java.lang.String szText,
int nX,
int nY,
int nWidth,
int nHeight)
Documentation for: WinMove Use this function to move/resize a specified window. |
int |
WinSetOnTop(java.lang.String szTitle,
java.lang.String szText,
int nFlag)
Documentation for: WinSetOnTop Change a window's "Always On Top" attribute. |
int |
WinSetState(java.lang.String szTitle,
java.lang.String szText,
int nFlag)
Documentation for: WinSetState Shows, hides, minimizes, maximizes, or restores a window. |
int |
WinSetTitle(java.lang.String szTitle,
java.lang.String szText,
java.lang.String szNewTitle)
Documentation for: WinSetTitle Changes the title of a specified window. |
int |
WinSetTrans(java.lang.String szTitle,
java.lang.String szText,
int nTrans)
Documentation for: WinSetTrans Sets the transparency of a window. |
int |
WinWait(java.lang.String szTitle,
java.lang.String szText,
int nTimeout)
Documentation for: WinWait This function will pause until the specified window exists (or the function times out). |
int |
WinWaitActive(java.lang.String szTitle,
java.lang.String szText,
int nTimeout)
Documentation for: WinWaitActive This function will pause until the specified window is active (or the function times out). |
int |
WinWaitClose(java.lang.String szTitle,
java.lang.String szText,
int nTimeout)
Documentation for: WinWaitClose This function will pause until the specified window doesn't exist (or the function times out). |
int |
WinWaitNotActive(java.lang.String szTitle,
java.lang.String szText,
int nTimeout)
Documentation for: WinWaitNotActive This function will pause until the specified window is not active (or the function times out). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoIt3()
Method Detail |
---|
public void Init()
public void BlockInput(int nToggle)
nToggle
- This should be set to 1 to block input, and 0 to enable input.public void CDTray(java.lang.String szDrive, java.lang.String szAction)
szDrive
- Accept drive letter (example D:)szAction
- Accepts "open" or "close"public void ClipGet(AutoIt3.ByReferenceString szClip, int nBufSize)
szClip
- A pointer to a string buffer that will receive the text from the clipboard.nBufSize
- public void ClipPut(java.lang.String szClip)
szClip
- A pointer to a string buffer that contains the text you want to send.public int ControlClick(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, java.lang.String szButton, int nNumClicks)
szTitle
- This is the title of window to accessszText
- This is the text of the window to accessszControl
- The control to interact withszButton
- This is optional, the button to click: left, right, or middle. Default is leftnNumClicks
- This is optional, the number of times to click the button. Default is 1public void ControlCommand(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, java.lang.String szCommand, java.lang.String szExtra, AutoIt3.ByReferenceString szResult, int nBufSize)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.szCommand
- The command to send to the control.szExtra
- Additional parameter required by some commands; use "" if parameter is not required.szResult
- nBufSize
- public void ControlListView(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, java.lang.String szCommand, java.lang.String szExtra1, java.lang.String szExtra2, AutoIt3.ByReferenceString szResult, long nBufSize)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.szCommand
- The command to send to the control. http://www.autoitscript.com/autoit3/docs/functions/ControlListView.htmszExtra1
- [optional] Additional parameter required by some commands.szExtra2
- [optional] Additional parameter required by some commands.szResult
- nBufSize
- public int ControlDisable(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.public int ControlEnable(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.public int ControlFocus(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- Title of window to check.szText
- Text from window to check.szControl
- The control to interact with.public void ControlGetFocus(java.lang.String szTitle, java.lang.String szText, AutoIt3.ByReferenceString szControlWithFocus, int nBufSize)
szTitle
- Title of window to check.szText
- [optional] Text from window to check.szControlWithFocus
- The control with the focusnBufSize
- Bufferpublic void ControlGetHandle(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, AutoIt3.ByReferenceString szRetText, int nBufSize)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.szRetText
- The return text from the functionnBufSize
- Bufferpublic int ControlGetPosX(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- szText
- szControl
- public int ControlGetPosY(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- szText
- szControl
- public int ControlGetPosHeight(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- szText
- szControl
- public int ControlGetPosWidth(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- szText
- szControl
- public void ControlGetText(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, AutoIt3.ByReferenceString szControlText, int nBufSize)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.szControlText
- The text returning from the controlnBufSize
- Bufferpublic int ControlHide(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.public int ControlMove(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, int nX, int nY, int nWidth, int nHeight)
szTitle
- The title of the window to move.szText
- The text of the window to move.szControl
- The control to interact with.nX
- X coordinate to move to.nY
- Y coordinate to move to.nWidth
- Optional - New width of the window.nHeight
- Optional - New height of the window.public int ControlSend(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, java.lang.String szSendText, int nMode)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.szSendText
- String of characters to send to the control.nMode
- Optional - Changes how "keys" is processed:
flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow.
flag = 1, keys are sent raw.public int ControlSetText(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl, java.lang.String szControlText)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.szControlText
- The new text to be set into the control.public int ControlShow(java.lang.String szTitle, java.lang.String szText, java.lang.String szControl)
szTitle
- The title of the window to access.szText
- The text of the window to access.szControl
- The control to interact with.public void DriveMapAdd(java.lang.String szDevice, java.lang.String szShare, int nFlags, java.lang.String szUser, java.lang.String szPwd, AutoIt3.ByReferenceString szResult, int nBufSize)
szDevice
- The device to map, for example "O:" or "LPT1:". If you pass a blank string for this parameter a connection is made but not mapped to a specific drive. If you specify "*" an unused drive letter will be automatically selected.szShare
- The remote share to connect to in the form "\\server\share".nFlags
- [optional]
A combination of the following:
0 = default
1 = Persistant mapping
8 = Show authentication dialog if requiredszUser
- [optional] The username to use to connect. In the form "username" or "domain\\username".szPwd
- [optional] The password to use to connect.szResult
- The text of the window to access.nBufSize
- Bufferpublic int DriveMapDel(java.lang.String szDevice)
szDevice
- The device to disconnect, e.g. "O:" or "LPT1:".public void DriveMapGet(java.lang.String szDevice, AutoIt3.ByReferenceString szMapping, int nBufSize)
szDevice
- The device (drive or printer) letter to query. Eg. "O:" or "LPT1:"szMapping
- nBufSize
- Bufferpublic int IniDelete(java.lang.String szFilename, java.lang.String szSection, java.lang.String szKey)
szFilename
- szSection
- szKey
- public void IniRead(java.lang.String szFileName, java.lang.String szSection, java.lang.String szKey, java.lang.String szDefault, AutoIt3.ByReferenceString szValue, int nBufSize)
szFileName
- The filename of the .ini file.szSection
- The section name in the .ini file.szKey
- The key name in the in the .ini file.szDefault
- The default value to return if the requested key is not found.szValue
- The returned value from the ini file.nBufSize
- public int IniWrite(java.lang.String szFileName, java.lang.String szSection, java.lang.String szKey, java.lang.String szValue)
szFileName
- The filename of the .ini file.szSection
- The section name in the .ini file.szKey
- The key name in the in the .ini file.szValue
- The value to write/change.public int IsAdmin()
public int MouseClick(java.lang.String szButton, int nX, int nY, int nClicks, int nSpeed)
szButton
- The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".nX
- The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used.nY
- The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used.nClicks
- The number of times to click the mouse. Default is 1.nSpeed
- the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.public int MouseClickDrag(java.lang.String szButton, int nX1, int nY1, int nX2, int nY2, int nSpeed)
szButton
- The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".nX1
- The x/y coords to start the drag operation from.nY1
- The x/y coords to start the drag operation from.nX2
- The x/y coords to stop the drag operation from.nY2
- The x/y coords to stop the drag operation from.nSpeed
- [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.public void MouseDown(java.lang.String szButton)
szButton
- The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".public int MouseGetCursor()
public int MouseGetPosX()
public int MouseGetPosY()
public int MouseMove(int nX, int nY, int nSpeed)
nY
- Y coordinate.nSpeed
- Speed of movementpublic void MouseUp(java.lang.String szButton)
szButton
- The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".public void MouseWheel(java.lang.String szDirection, int nClicks)
szDirection
- "up" or "down"nClicks
- [optional] The number of times to move the wheel. Default is 1.public int Opt(java.lang.String szOption, int nValue)
szOption
- nValue
- public int PixelChecksum(int nLeft, int nTop, int nRight, int nBottom, int nStep)
nLeft
- left coordinate of rectangle.nTop
- top coordinate of rectangle.nRight
- right coordinate of rectangle.nBottom
- bottom coordinate of rectangle.nStep
- [optional] Instead of checksumming each pixel use a value larger than 1 to skip pixels (for speed). E.g. A value of 2 will only check every other pixel. Default is 1.public int PixelGetColor(int nX, int nY)
nX
- x coordinate of pixel.nY
- y coordinate of pixel.public void PixelSearch(int nLeft, int nTop, int nRight, int nBottom, int nCol, int nVar, int nStep, AutoIt3.ByReferenceString szResult, int nBufSize)
nLeft
- left coordinate of rectangle.nTop
- top coordinate of rectangle.nRight
- right coordinate of rectangle.nBottom
- bottom coordinate of rectangle.nCol
- Colour value of pixel to find (in decimal or hex).nVar
- [optional] A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour. Default is 0 (exact match).nStep
- [optional] Instead of searching each pixel use a value larger than 1 to skip pixels (for speed). E.g. A value of 2 will only check every other pixel. Default is 1.szResult
- The output of the function (color)nBufSize
- Bufferpublic int ProcessClose(java.lang.String szProcess)
szProcess
- The name of the processpublic int ProcessExists(java.lang.String szProcess)
szProcess
- Name of the processpublic int ProcessSetPriority(java.lang.String szProcess, int nPriority)
szProcess
- The name or PID of the process to check.nPriority
- A flag which determines what priority to set
0 - Idle/Low
1 - Below Normal (Not supported on Windows 95/98/ME)
2 - Normal
3 - Above Normal (Not supported on Windows 95/98/ME)
4 - High
5 - Realtime (Use with caution, may make the system unstable)public int ProcessWait(java.lang.String szProcess, int nTimeout)
szProcess
- The name of the process to check.nTimeout
- [optional] Specifies how long to wait (default is to wait indefinitely).public int ProcessWaitClose(java.lang.String szProcess, int nTimeout)
szProcess
- The name of the process to close.nTimeout
- [optional] Specifies how long to wait (default is to wait indefinitely).public int RegDeleteKey(java.lang.String szKeyName)
szKeyName
- The registry key to delete.public int RegDeleteVal(java.lang.String szKeyName, java.lang.String szValuename)
szKeyName
- The registry key to delete.szValuename
- The valuename to delete.public void RegEnumKey(java.lang.String szKeyName, int nInstance, AutoIt3.ByReferenceString szResult, int nBufSize)
szKeyName
- The registry key to read.nInstance
- The 1-based key instance to retrieveszResult
- The result of the functionnBufSize
- Bufferpublic void RegEnumVal(java.lang.String szKeyName, int nInstance, AutoIt3.ByReferenceString szResult, int nBufSize)
szKeyName
- The registry key to read.nInstance
- The 1-based key instance to retrieveszResult
- The result of the functionnBufSize
- Bufferpublic void RegRead(java.lang.String szKeyName, java.lang.String szValuename, AutoIt3.ByReferenceString szRetText, int nBufSize)
szKeyName
- The registry key to read.szValuename
- The value to read.szRetText
- The return text of the functionnBufSize
- Bufferpublic int RegWrite(java.lang.String szKeyName, java.lang.String szValueName, java.lang.String szType, java.lang.String szValue)
szKeyName
- The registry key to write to. If no other parameters are specified this key will simply be created.szValueName
- [optional] The valuename to write to.szType
- [optional] Type of key to write: "REG_SZ", "REG_MULTI_SZ", "REG_EXPAND_SZ", "REG_DWORD", or "REG_BINARY".szValue
- [optional] The value to write.public int Run(java.lang.String szRun, java.lang.String szDir, int nShowFlags)
szRun
- The full name of the executable (EXE, BAT, COM, or PIF) to run.szDir
- [optional] The working directory.nShowFlags
- [optional] The "show" flag of the executed program:public int RunAsSet(java.lang.String szUser, java.lang.String szDomain, java.lang.String szPassword, int nOptions)
szUser
- [optional] The user name to use.szDomain
- [optional] The domain name to use.szPassword
- [optional] The password to use.nOptions
- [optional] 0 = do not load the user profile, 1 = (default) load the user profile, 2 = use for net credentials onlypublic int RunWait(java.lang.String szRun, java.lang.String szDir, int nShowFlags)
szRun
- The name of the executable (EXE, BAT, COM, PIF) to run.szDir
- [optional] The working directory.nShowFlags
- [optional] The "show" flag of the executed program:public void Send(java.lang.String szSentText, int nMode)
szSentText
- A string pointer to the set of keystrokes to send.nMode
- The option in which the text should be sent (optional). 0 (default) contains special characters. 1 text is sent raw.public int Shutdown(int nFlag)
nFlag
- A combination of the flags given in the remarks section.public void Sleep(int nMilliseconds)
nMilliseconds
- The amount of time to sleep in milliseconds. (Note: 1000 milliseconds = 1 second)public void StatusbarGetText(java.lang.String szTitle, java.lang.String szText, int nPart, AutoIt3.ByReferenceString szStatusText, int nBufSize)
szTitle
- The title of the window to check.szText
- [optional] The text of the window to check.nPart
- [optional] The "part" number of the status bar to read - the default is 1. 1 is the first possible part and usually the one that contains the useful messages like "Ready" "Loading...", etc.szStatusText
- Return text from the functionnBufSize
- Bufferpublic void ToolTip(java.lang.String szTip, int nX, int nY)
szTip
- The text of the tooltip. (An empty string clears a displaying tooltip)nX
- [optional] The x,y position of the tooltip.nY
- [optional] The x,y position of the tooltip.public void WinActivate(java.lang.String szTitle, java.lang.String szText)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.public int WinActive(java.lang.String szTitle, java.lang.String szText)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.public int WinClose(java.lang.String szTitle, java.lang.String szText)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.public int WinExists(java.lang.String szTitle, java.lang.String szText)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.public int WinGetCaretPosX()
public int WinGetCaretPosY()
public void WinGetClassList(java.lang.String szTitle, java.lang.String szText, AutoIt3.ByReferenceString szRetText, int nBufSize)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.szRetText
- Return text from the functionnBufSize
- Bufferpublic int WinGetClientSizeHeight(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.public int WinGetClientSizeWidth(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the window to read.szText
- The text of the window to read.public void WinGetHandle(java.lang.String szTitle, java.lang.String szText, AutoIt3.ByReferenceString szRetText, int nBufSize)
szTitle
- A string pointer to receive the window title.szText
- The text of the window to readszRetText
- nBufSize
- Bufferpublic int WinGetPosX(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.public int WinGetPosY(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.public int WinGetPosHeight(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.public int WinGetPosWidth(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.public void WinGetProcess(java.lang.String szTitle, java.lang.String szText, AutoIt3.ByReferenceString szRetText, int nBufSize)
szTitle
- The title of the window to read.szText
- [optional] The text of the window to read.szRetText
- The return text of the function.nBufSize
- Bufferpublic int WinGetState(java.lang.String szTitle, java.lang.String szText)
szTitle
- The title of the windowszText
- The text of the window.public void WinGetText(java.lang.String szTitle, java.lang.String szText, AutoIt3.ByReferenceString szRetText, int nBufSize)
szTitle
- Title of the window.szText
- Text of the window.szRetText
- Return text of the functionnBufSize
- Buffer.public void WinGetTitle(java.lang.String szTitle, java.lang.String szText, AutoIt3.ByReferenceString szRetText, int nBufSize)
szTitle
- Title of the window.szText
- Text of the window.szRetText
- Return text of the functionnBufSize
- Buffer.public int WinKill(java.lang.String szTitle, java.lang.String szText)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.public int WinMenuSelectItem(java.lang.String szTitle, java.lang.String szText, java.lang.String szItem1, java.lang.String szItem2, java.lang.String szItem3, java.lang.String szItem4, java.lang.String szItem5, java.lang.String szItem6, java.lang.String szItem7, java.lang.String szItem8)
szTitle
- The title of the window to read.szText
- The text of the window to read.szItem1
- Text of Menu ItemszItem2
- [optional] Text of SubMenu itemszItem3
- [optional] Text of SubMenu itemszItem4
- [optional] Text of SubMenu itemszItem5
- [optional] Text of SubMenu itemszItem6
- [optional] Text of SubMenu itemszItem7
- [optional] Text of SubMenu itemszItem8
- [optional] Text of SubMenu itempublic void WinMinimizeAll()
public void WinMinimizeAllUndo()
public int WinMove(java.lang.String szTitle, java.lang.String szText, int nX, int nY, int nWidth, int nHeight)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.nX
- X coordinate.nY
- Y coordinate.nWidth
- New width of the window (use -1 to leave the size alone)nHeight
- New height of the window (use -1 to leave the size alone)public int WinSetOnTop(java.lang.String szTitle, java.lang.String szText, int nFlag)
szTitle
- The title of the window to affect.szText
- The text of the window to affect.nFlag
- Determines whether the window should have the "TOPMOST" flag set.
1=set on top flag, 0 = remove on top flagpublic int WinSetState(java.lang.String szTitle, java.lang.String szText, int nFlag)
szTitle
- The title of the window to affect.szText
- The text of the window to affect.nFlag
- The "show" flag of the executed program:public int WinSetTitle(java.lang.String szTitle, java.lang.String szText, java.lang.String szNewTitle)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.szNewTitle
- A string pointer to the text of the new window title.public int WinSetTrans(java.lang.String szTitle, java.lang.String szText, int nTrans)
szTitle
- The title of the window to change.szText
- The text of the window to change.nTrans
- A number in the range 0 - 255. The larger the number, the more transparent the window will become.public int WinWait(java.lang.String szTitle, java.lang.String szText, int nTimeout)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.nTimeout
- Specifies the number of seconds to wait for. Use the value 0 to wait indefinitely.public int WinWaitActive(java.lang.String szTitle, java.lang.String szText, int nTimeout)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.nTimeout
- Specifies the number of seconds to wait for. Use the value 0 to wait indefinitely.public int WinWaitClose(java.lang.String szTitle, java.lang.String szText, int nTimeout)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.nTimeout
- Specifies the number of seconds to wait for. Use the value 0 to wait indefinitely.public int WinWaitNotActive(java.lang.String szTitle, java.lang.String szText, int nTimeout)
szTitle
- A string pointer to the title of the window to match.szText
- A string pointer to the text of the window to match.nTimeout
- Specifies the number of seconds to wait for. Use the value 0 to wait indefinitely.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |