OpenKeyWord  Build Tag: jenkins-DoxyGen_EN-107, Build ID: 2015-03-08_20-51-06
 All Classes Namespaces Functions Variables Properties Pages
OKW.GUI.AUI.AutoItX_NONO Class Reference

Classes

struct  PointXY
 
struct  Position2D
 

Public Member Functions

Position2D WinGetPos (string fpsTitle, string vsText)
 

Static Public Member Functions

static void BlockInput (int flag)
 Disable/enable the mouse and keyboard. More...
 
static int ControlClick (string fpsTitle, string vsText, string vsControl, string vsButton, int viNumClicks, int viX, int viY)
 Sends a mouse click command to a given control. More...
 
static int ControlClick (string fpsTitle, string vsControl)
 Sends a mouse click command to a given control. More...
 
static int ControlDisable (string fpsTitle, string vsText, string vsControl)
 Enables a "grayed-out" control. More...
 
static int ControlEnable (string fpsTitle, string vsText, string vsControl)
 Disables a "grayed-out" control. More...
 
static int ControlFocus (string fpsTitle, string vsText, string vsControl)
 Sets input focus to a given control on a window. More...
 
static int ControlFocus (string fpsTitle, string vsControl)
 Sets input focus to a given control on a window. More...
 
static string ControlGetHandle (string fpsTitle, string vsText, string vsControl)
 Retrieves the internal handle of a control. More...
 
static Position2D ControlGetPos (string fpsTitle, string vsText, string vsControl)
 Retrieves the position and size of a control relative to it's window. More...
 
static string ControlGetText (string fpsTitle, string vsText, string vsControl)
 Retrieves the text from a window. More...
 
static int ControlHide (string fpsTitle, string vsText, string vsControl)
 Hides a control. More...
 
static int ControlMove (string fpsTitle, string vsText, string vsControl, int vsX, int vsY)
 Moves a control within a window. More...
 
static int ControlMove (string fpsTitle, string vsText, string vsControl, int vsX, int vsY, int vsHeight, int vsWidth)
 Moves a control within a window. More...
 
static int ControlSend (string fpsTitle, string vsText, string vsControl, string vsSendText, int vsMode)
 Sends a string of characters to a control. More...
 
static int ControlShow (string fpsTitle, string vsText, string vsControl)
 Shows a control that was hidden. More...
 
static int MouseClick (string vsButton, int viX, int viY)
 Perform a mouse click operation. More...
 
static int MouseClick (string vsButton)
 Perform a mouse click operation. More...
 
static int MouseClick (string vsButton, int viX, int viY, int viClicks, int viSpeed)
 Perform a mouse click operation. More...
 
static int MouseClickDrag (string vsButton, int viX1, int viY1, int viX2, int viY2, int viSpeed)
 Perform a mouse click and drag operation. More...
 
static void MouseDown (string vsButton)
 Perform a mouse down event at the current mouse position. More...
 
static PointXY MouseGetPos ()
 Retrieves the current position of the mouse cursor. More...
 
static void MouseMove (int viX, int viY)
 Moves the mouse pointer. More...
 
static void MouseMove (int viX, int viY, int viSpeed)
 Moves the mouse pointer. More...
 
static void MouseUp (string vsButton)
 Perform a mouse up event at the current mouse position. More...
 
static int PixelChecksum (int left, int top, int right, int bottom, int step)
 Generates a checksum for a region of pixels. More...
 
static int PixelChecksum (int left, int top, int right, int bottom)
 Generates a checksum for a region of pixels. More...
 
static int PixelGetColor (int viX, int viY)
 Returns a pixel color according to x,y pixel coordinates. More...
 
static int PixelGetColor (int viX, int viY, IntPtr handle)
 
static int[] PixelSearch (int left, int top, int right, int bottom, int color, int shade, int step)
 Searches a rectangle of pixels for the pixel color provided.(NOT IMPLIMENTED) More...
 
static void ProcessClose (string process)
 Terminates a named process. More...
 
static bool ProcessExists (string process)
 Checks to see if a specified process exists. More...
 
static void ProcessWait (string process, int timeout)
 Pauses script execution until a given process exists. More...
 
static void ProcessWaitClose (string process, int timeout)
 Pauses script execution until a given process does not exist. More...
 
static void Run (string process)
 Runs an external program. More...
 
static void Run (string process, string dir)
 Runs an external program. More...
 
static void Run (string process, string dir, int showflag)
 Runs an external program. More...
 
static void Send (string text)
 Sends simulated keystrokes to the active window. More...
 
static void Send (string text, int viSpeed)
 Sends simulated keystrokes to the active window. More...
 
static void Send (string text, int viSpeed, int downLen)
 Sends simulated keystrokes to the active window. More...
 
static void Send (int viMode, string vsText)
 Sends simulated keystrokes to the active window. More...
 
static void Send (string vsText, string fpsTitle, string vsControl)
 Sends simulated keystrokes to the specified control. More...
 
static void SendRand (string vsText, int speedMin, int speedMax)
 
static void SetOptions ()
 Set recommended default AutoIt functions/parameters.
 
static void SetOptions (string sOption, int iValue)
 Changes the operation of various AutoIt functions/parameters. More...
 
static void SetOptions (bool vbWindowTitleExactMatch, int viSendKeyDelay)
 Set recommended default AutoIt functions/parameters.
 
static void Sleep (int iMilliseconds)
 Pause script execution. More...
 
static void ToolTip (string sTip, int viX, int viY)
 Creates a tooltip anywhere on the screen. More...
 
static void ToolTip (string sMessage)
 Creates a padded tooltip in the top-left part of the screen. More...
 
static void WinActivate (string fpsTitle)
 Activate a window. More...
 
static void WinActivate (string fpsTitle, int waitactivetimeout)
 Activates(gives focus to) a window.(incorporates WinWaitActive) More...
 
static void WinActivate (string fpsTitle, string vsText)
 Activates(gives focus to) a window. More...
 
static int WinExists (string fpsTitle)
 Checks to see if a specified window exists. More...
 
static int WinExists (string fpsTitle, string vsText)
 Checks to see if a specified window exists. More...
 
static string WinGetHandle (string fpsTitle)
 Retrieves the internal handle of a window. More...
 
static string WinGetText (string fpsTitle, string vsText)
 Retrieves the text from a window. More...
 
static string WinGetText (string fpsTitle)
 Retrieves the text from a window. More...
 
static void WinMove (string fpsTitle, int viX, int viY)
 Moves and/or resizes a window. More...
 
static void WinMove (string fpsTitle, int viX, int viY, int viWidth, int viHeight)
 Moves and/or resizes a window. More...
 
static int WinWait (string fpsTitle)
 Pauses execution of the script until the requested window exists. More...
 
static int WinWaitActive (string fpsTitle, string vsText, int iTimeout)
 Pauses execution of the script until the requested window is active. More...
 
static int WinWaitActive (string fpsTitle, int iTimeout)
 Pauses execution of the script until the requested window is active. More...
 
static int WinWaitActive (string fpsTitle)
 Pauses execution of the script until the requested window is active. More...
 
static void WinWaitActiveWindow (string fpsTitle)
 Pauses execution of the script until the requested window exists, activates it and then waits again until it is active. More...
 

Public Attributes

const int AU3_INTDEFAULT = -2147483647
 
const int ERROR = 1
 
const int SW_HIDE = 2
 
const int SW_MAXIMIZE = 3
 
const int SW_MINIMIZE = 4
 
const int SW_RESTORE = 5
 
const int SW_SHOW = 6
 
const int SW_SHOWDEFAULT = 7
 
const int SW_SHOWMAXIMIZED = 8
 
const int SW_SHOWMINIMIZED = 9
 
const int SW_SHOWMINNOACTIVE = 10
 
const int SW_SHOWNA = 11
 
const int SW_SHOWNOACTIVATE = 12
 
const int SW_SHOWNORMAL = 13
 
const int VERSION = 109
 

Private Member Functions

static int AU3_AutoItSetOption ([MarshalAs(UnmanagedType.LPStr)] string Option, int Value)
 
static void AU3_BlockInput (int Flag)
 
static int AU3_CDTray ([MarshalAs(UnmanagedType.LPStr)] string Drive, [MarshalAs(UnmanagedType.LPStr)] string Action)
 
static void AU3_ClipGet (byte[] Clip, int BufSize)
 
static void AU3_ClipPut ([MarshalAs(UnmanagedType.LPStr)] string Clip)
 
static int AU3_ControlClick ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, [MarshalAs(UnmanagedType.LPStr)] string Button, int NumClicks, int X, int Y)
 
static void AU3_ControlCommand ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, [MarshalAs(UnmanagedType.LPStr)] string Command, [MarshalAs(UnmanagedType.LPStr)] string Extra, [MarshalAs(UnmanagedType.LPStr)] byte[] Result, int BufSize)
 
static int AU3_ControlDisable ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static int AU3_ControlEnable ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static int AU3_ControlFocus ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static void AU3_ControlGetFocus ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, byte[] ControlWithFocus, int BufSize)
 
static void AU3_ControlGetHandle ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, byte[] RetText, int BufSize)
 
static int AU3_ControlGetPosHeight ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static int AU3_ControlGetPosWidth ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static int AU3_ControlGetPosX ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static int AU3_ControlGetPosY ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static void AU3_ControlGetText ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, byte[] ControlText, int BufSize)
 
static int AU3_ControlHide ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static void AU3_ControlListView ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, [MarshalAs(UnmanagedType.LPStr)] string Command, [MarshalAs(UnmanagedType.LPStr)] string Extral1, [MarshalAs(UnmanagedType.LPStr)] string Extra2, byte[] Result, int BufSize)
 
static int AU3_ControlMove ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, int X, int Y, int Width, int Height)
 
static int AU3_ControlSend ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, [MarshalAs(UnmanagedType.LPStr)] string SendText, int Mode)
 
static int AU3_ControlSetText ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, [MarshalAs(UnmanagedType.LPStr)] string fpsControlText)
 
static int AU3_ControlShow ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl)
 
static void AU3_ControlTreeView ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string fpsControl, [MarshalAs(UnmanagedType.LPStr)] string Command, [MarshalAs(UnmanagedType.LPStr)] string Extra1, [MarshalAs(UnmanagedType.LPStr)] string Extra2, byte[] Result, int BufSize)
 
static void AU3_DriveMapAdd ([MarshalAs(UnmanagedType.LPStr)] string Device, [MarshalAs(UnmanagedType.LPStr)] string Share, int Flags, [MarshalAs(UnmanagedType.LPStr)] string User, [MarshalAs(UnmanagedType.LPStr)] string Pwd, byte[] Result, int BufSize)
 
static int AU3_DriveMapDel ([MarshalAs(UnmanagedType.LPStr)] string Device)
 
static void AU3_DriveMapDel ([MarshalAs(UnmanagedType.LPStr)] string Device, byte[] Mapping, int BufSize)
 
static int AU3_error ()
 
static int AU3_IniDelete ([MarshalAs(UnmanagedType.LPStr)] string Filename, [MarshalAs(UnmanagedType.LPStr)] string Section, [MarshalAs(UnmanagedType.LPStr)] string Key)
 
static int AU3_IniRead ([MarshalAs(UnmanagedType.LPStr)] string Filename, [MarshalAs(UnmanagedType.LPStr)] string Section, [MarshalAs(UnmanagedType.LPStr)] string Key, [MarshalAs(UnmanagedType.LPStr)] string Default, byte[] Value, int BufSize)
 
static void AU3_Init ()
 
static int AU3_IniWrite ([MarshalAs(UnmanagedType.LPStr)] string Filename, [MarshalAs(UnmanagedType.LPStr)] string Section, [MarshalAs(UnmanagedType.LPStr)] string Key, [MarshalAs(UnmanagedType.LPStr)] string Value)
 
static int AU3_IsAdmin ()
 
static int AU3_MouseClick ([MarshalAs(UnmanagedType.LPStr)] string Button, int x, int y, int clicks, int speed)
 
static int AU3_MouseClickDrag ([MarshalAs(UnmanagedType.LPStr)] string Button, int X1, int Y1, int X2, int Y2, int Speed)
 
static void AU3_MouseDown ([MarshalAs(UnmanagedType.LPStr)] string Button)
 
static int AU3_MouseGetCursor ()
 
static int AU3_MouseGetPosX ()
 
static int AU3_MouseGetPosY ()
 
static int AU3_MouseMove (int X, int Y, int Speed)
 
static void AU3_MouseUp ([MarshalAs(UnmanagedType.LPStr)] string Button)
 
static void AU3_MouseWheel ([MarshalAs(UnmanagedType.LPStr)] string Direction, int Clicks)
 
static int AU3_Opt ([MarshalAs(UnmanagedType.LPStr)] string Option, int Value)
 
static int AU3_PixelChecksum (int Left, int Top, int Right, int Bottom, int Step)
 
static int AU3_PixelGetColor (int X, int Y)
 
static void AU3_PixelSearch (int Left, int Top, int Right, int Bottom, int Col, int Var, int Step, int[] PointResult)
 
static int AU3_ProcessClose ([MarshalAs(UnmanagedType.LPStr)] string Process)
 
static int AU3_ProcessExists ([MarshalAs(UnmanagedType.LPStr)] string Process)
 
static int AU3_ProcessSetPriority ([MarshalAs(UnmanagedType.LPStr)] string Process, int Priority)
 
static int AU3_ProcessWait ([MarshalAs(UnmanagedType.LPStr)] string Process, int Timeout)
 
static int AU3_ProcessWaitClose ([MarshalAs(UnmanagedType.LPStr)] string Process, int Timeout)
 
static int AU3_RegDeleteKey ([MarshalAs(UnmanagedType.LPStr)] string fpsKeyname)
 
static int AU3_RegDeleteVal ([MarshalAs(UnmanagedType.LPStr)] string fpsKeyname, [MarshalAs(UnmanagedType.LPStr)] string ValueName)
 
static void AU3_RegEnumKey ([MarshalAs(UnmanagedType.LPStr)] string fpsKeyname, int Instance, byte[] Result, int BusSize)
 
static void AU3_RegEnumVal ([MarshalAs(UnmanagedType.LPStr)] string fpsKeyname, int Instance, byte[] Result, int BufSize)
 
static void AU3_RegRead ([MarshalAs(UnmanagedType.LPStr)] string fpsKeyname, [MarshalAs(UnmanagedType.LPStr)] string Valuename, byte[] RetText, int BufSize)
 
static int AU3_RegWrite ([MarshalAs(UnmanagedType.LPStr)] string fpsKeyname, [MarshalAs(UnmanagedType.LPStr)] string Valuename, [MarshalAs(UnmanagedType.LPStr)] string Type, [MarshalAs(UnmanagedType.LPStr)] string Value)
 
static int AU3_Run ([MarshalAs(UnmanagedType.LPStr)] string Run, [MarshalAs(UnmanagedType.LPStr)] string Dir, int ShowFlags)
 
static int AU3_RunAsSet ([MarshalAs(UnmanagedType.LPStr)] string User, [MarshalAs(UnmanagedType.LPStr)] string Domain, [MarshalAs(UnmanagedType.LPStr)] string Password, int Options)
 
static int AU3_RunWait ([MarshalAs(UnmanagedType.LPStr)]string Run, [MarshalAs(UnmanagedType.LPStr)]string Dir, int ShowFlags)
 
static void AU3_Send ([MarshalAs(UnmanagedType.LPStr)] string SendText, int Mode)
 
static int AU3_Shutdown (int Flags)
 
static void AU3_Sleep (int Milliseconds)
 
static void AU3_StatusbarGetText ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Part, byte[] StatusText, int BufSize)
 
static void AU3_ToolTip ([MarshalAs(UnmanagedType.LPStr)]string Tip, int X, int Y)
 
static void AU3_WinActivate ([MarshalAs(UnmanagedType.LPStr)]string fpsTitle, [MarshalAs(UnmanagedType.LPStr)]string fpsText)
 
static int AU3_WinActive ([MarshalAs(UnmanagedType.LPStr)]string fpsTitle, [MarshalAs(UnmanagedType.LPStr)]string fpsText)
 
static int AU3_WinClose ([MarshalAs(UnmanagedType.LPStr)]string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static int AU3_WinExists ([MarshalAs(UnmanagedType.LPStr)]string fpsTitle, [MarshalAs(UnmanagedType.LPStr)]string fpsText)
 
static int AU3_WinGetCaretPosX ()
 
static int AU3_WinGetCaretPosY ()
 
static void AU3_WinGetClassList ([MarshalAs(UnmanagedType.LPStr)]string fpsTitle, [MarshalAs(UnmanagedType.LPStr)]string fpsText, byte[] RetText, int BufSize)
 
static int AU3_WinGetClientSizeHeight ([MarshalAs(UnmanagedType.LPStr)]string fpsTitle, [MarshalAs(UnmanagedType.LPStr)]string fpsText)
 
static int AU3_WinGetClientSizeWidth ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static void AU3_WinGetHandle ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, byte[] RetText, int BufSize)
 
static int AU3_WinGetPosHeight ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static int AU3_WinGetPosWidth ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static int AU3_WinGetPosX ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static int AU3_WinGetPosY ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static void AU3_WinGetProcess ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, byte[] RetText, int BufSize)
 
static int AU3_WinGetState ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static void AU3_WinGetText ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, byte[] RetText, int BufSize)
 
static void AU3_WinGetTitle ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, byte[] RetText, int BufSize)
 
static int AU3_WinKill ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText)
 
static int AU3_WinMenuSelectItem ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string Item1, [MarshalAs(UnmanagedType.LPStr)] string Item2, [MarshalAs(UnmanagedType.LPStr)] string Item3, [MarshalAs(UnmanagedType.LPStr)] string Item4, [MarshalAs(UnmanagedType.LPStr)] string Item5, [MarshalAs(UnmanagedType.LPStr)] string Item6, [MarshalAs(UnmanagedType.LPStr)] string Item7, [MarshalAs(UnmanagedType.LPStr)] string Item8)
 
static void AU3_WinMinimizeAll ()
 
static void AU3_WinMinimizeAllUndo ()
 
static int AU3_WinMove ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int fpiX, int fpiY, int fpiWidth, int fpiHeight)
 
static int AU3_WinMove ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Flags)
 
static int AU3_WinSetState ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Flags)
 
static int AU3_WinSetTitle ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, [MarshalAs(UnmanagedType.LPStr)] string NewTitle)
 
static int AU3_WinSetTrans ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Trans)
 
static int AU3_WinWait ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Timeout)
 
static int AU3_WinWaitActive ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Timeout)
 
static int AU3_WinWaitClose ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int fpiTimeout)
 
static int AU3_WinWaitNotActive ([MarshalAs(UnmanagedType.LPStr)] string fpsTitle, [MarshalAs(UnmanagedType.LPStr)] string fpsText, int Timeout)
 

Private Attributes

const string AUTOITX3_DLL = @"C:\Program Files(x86)\AutoIt3\AutoItX\AutoItX3.dll"
 

Member Function Documentation

static void OKW.GUI.AUI.AutoItX_NONO.BlockInput ( int  flag)
static

Disable/enable the mouse and keyboard.

Parameters
flag1 = Disable user input
0 = Enable user input : Returns 1. Failure: Returns 0. Already Enable or #requireAdmin not used.
Returns
83  {
84  AU3_BlockInput(flag);
85  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlClick ( string  fpsTitle,
string  vsText,
string  vsControl,
string  vsButton,
int  viNumClicks,
int  viX,
int  viY 
)
static

Sends a mouse click command to a given control.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls.
vsButton[optional] The button to click, "left", "right", "middle", "main", "menu", "primary", "secondary". Default is the left button.
viNumClicks[optional] The number of times to click the mouse. Default is 1.
viX[optional] The x position to click within the control. Default is center.
viY[optional] The y position to click within the control. Default is center. : Returns 1. Failure: Returns 0.
Returns
107  {
108  return AU3_ControlClick(fpsTitle, vsText, vsControl, vsButton, viNumClicks, viX, viY);
109  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlClick ( string  fpsTitle,
string  vsControl 
)
static

Sends a mouse click command to a given control.

Parameters
fpsTitleThe title of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0.
Returns
119  {
120  return AU3_ControlClick(fpsTitle, string.Empty, vsControl, string.Empty, 1, 0, 0);
121  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlDisable ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Enables a "grayed-out" control.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0.
Returns
132  {
133  return AU3_ControlDisable(fpsTitle, vsText, vsControl);
134  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlEnable ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Disables a "grayed-out" control.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0.
Returns
145  {
146  return AU3_ControlEnable(fpsTitle, vsText, vsControl);
147  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlFocus ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Sets input focus to a given control on a window.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0.
Returns
158  {
159  return AU3_ControlFocus(fpsTitle, vsText, vsControl);
160  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlFocus ( string  fpsTitle,
string  vsControl 
)
static

Sets input focus to a given control on a window.

Parameters
fpsTitleThe title of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0.
Returns
170  {
171  return AU3_ControlFocus(fpsTitle, string.Empty, vsControl);
172  }
static string OKW.GUI.AUI.AutoItX_NONO.ControlGetHandle ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Retrieves the internal handle of a control.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls.
181  {
182  //----------------------------------------------------------------------
183  // A number big enought to hold result, trailing bytes will be 0
184  //----------------------------------------------------------------------
185  byte[] RetText = new byte[50];
186 
187  AU3_ControlGetHandle(fpsTitle, vsText, vsControl, RetText, RetText.Length);
188 
189  //----------------------------------------------------------------------
190  // May need to convert back to a string or int
191  //----------------------------------------------------------------------
192  return Encoding.ASCII.GetString(RetText).TrimEnd('\0');
193  }
static Position2D OKW.GUI.AUI.AutoItX_NONO.ControlGetPos ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Retrieves the position and size of a control relative to it's window.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls. a ControlPosition struct containing the size and the control's position relative to it's client window: ControlPosition { int X, int Y, int Width, int Height }
Returns
204  {
205  Position2D pos;
206  pos.X = AU3_ControlGetPosX(fpsTitle, vsText, vsControl);
207  pos.Y = AU3_ControlGetPosY(fpsTitle, vsText, vsControl);
208  pos.Height = AU3_ControlGetPosHeight(fpsTitle, vsText, vsControl);
209  pos.Width = AU3_ControlGetPosWidth(fpsTitle, vsText, vsControl);
210 
211  return pos;
212  }
static string OKW.GUI.AUI.AutoItX_NONO.ControlGetText ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Retrieves the text from a window.

Parameters
fpsTitleThe title of the window to read.
vsText[optional] The text of the window to read.
vsControlThe control to interact with. See Controls.
Returns
222  {
223  //----------------------------------------------------------------------
224  // A number big enought to hold result, trailing bytes will be 0
225  //----------------------------------------------------------------------
226  byte[] byteRetText = new byte[10000];
227 
228  AU3_ControlGetText(fpsTitle, vsText, vsControl, byteRetText, byteRetText.Length);
229  AU3_Sleep(1000);
230 
231  //----------------------------------------------------------------------
232  // May need to convert back to a string or int
233  //----------------------------------------------------------------------
234  return Encoding.ASCII.GetString(byteRetText).TrimEnd('\0');
235  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlHide ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Hides a control.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0 if window/control is not found.
Returns
246  {
247  return AU3_ControlHide(fpsTitle, vsText, vsControl);
248  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlMove ( string  fpsTitle,
string  vsText,
string  vsControl,
int  vsX,
int  vsY 
)
static

Moves a control within a window.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls.
vsXX coordinate to move to relative to the window client area.
vsYY coordinate to move to relative to the window client area. : Returns 1.
Failure: Returns 0 if window/control is not found.
Returns
261  {
262  int height = ControlGetPos(fpsTitle, vsText, vsControl).Height;
263  int width = ControlGetPos(fpsTitle, vsText, vsControl).Width;
264  return AU3_ControlMove(fpsTitle, vsText, vsControl, vsX, vsY, height, width);
265  }
static Position2D ControlGetPos(string fpsTitle, string vsText, string vsControl)
Retrieves the position and size of a control relative to it's window.
Definition: AUI.cs:203
static int OKW.GUI.AUI.AutoItX_NONO.ControlMove ( string  fpsTitle,
string  vsText,
string  vsControl,
int  vsX,
int  vsY,
int  vsHeight,
int  vsWidth 
)
static

Moves a control within a window.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls.
vsXX coordinate to move to relative to the window client area.
vsYY coordinate to move to relative to the window client area.
vsHeightNew width of the window.
vsWidthNew height of the window. : Returns 1.
Failure: Returns 0 if window/control is not found.
Returns
280  {
281  return AU3_ControlMove(fpsTitle, vsText, vsControl, vsX, vsY, vsHeight, vsWidth);
282  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlSend ( string  fpsTitle,
string  vsText,
string  vsControl,
string  vsSendText,
int  vsMode 
)
static

Sends a string of characters to a control.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls.
vsSendTextString of characters to send to the control.
vsMode[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.

: Returns 1.
Failure: Returns 0 if window/control is not found.

Returns
300  {
301  return AU3_ControlSend(fpsTitle, vsText, vsControl, vsSendText, vsMode);
302  }
static int OKW.GUI.AUI.AutoItX_NONO.ControlShow ( string  fpsTitle,
string  vsText,
string  vsControl 
)
static

Shows a control that was hidden.

Parameters
fpsTitleThe title of the window to access.
vsTextThe text of the window to access.
vsControlThe control to interact with. See Controls. : Returns 1.
Failure: Returns 0 if window/control is not found.
Returns
313  {
314  return AU3_ControlShow(fpsTitle, vsText, vsControl);
315  }
static int OKW.GUI.AUI.AutoItX_NONO.MouseClick ( string  vsButton,
int  viX,
int  viY 
)
static

Perform a mouse click operation.

Parameters
vsButtonThe button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".
viX[optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used(default).
viY[optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used(default). : Returns 1.
Failure: Returns 0, the button is not in the list.
Returns
326  {
327  return MouseClick(vsButton, viX, viY, 1, 1);
328  }
static int MouseClick(string vsButton, int viX, int viY)
Perform a mouse click operation.
Definition: AUI.cs:325
static int OKW.GUI.AUI.AutoItX_NONO.MouseClick ( string  vsButton)
static

Perform a mouse click operation.

Parameters
vsButtonThe button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". : Returns 1.
Failure: Returns 0, the button is not in the list.
Returns
337  {
338  int mousex = AU3_MouseGetPosX();
339  int mousey = AU3_MouseGetPosY();
340  return MouseClick(vsButton, mousex, mousey);
341  }
static int MouseClick(string vsButton, int viX, int viY)
Perform a mouse click operation.
Definition: AUI.cs:325
static int OKW.GUI.AUI.AutoItX_NONO.MouseClick ( string  vsButton,
int  viX,
int  viY,
int  viClicks,
int  viSpeed 
)
static

Perform a mouse click operation.

Parameters
vsButtonThe button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".
viX[optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used(default).
viY[optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used(default).
viClicks[optional] The number of times to click the mouse. Default is 1.
viSpeed[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. : Returns 1.<br/ Failure: Returns 0, the button is not in the list.
Returns
354  {
355  //----------------------------------------------------------------------
356  // MouseClick wasn't working with out first MouseMove call
357  //----------------------------------------------------------------------
358  AU3_MouseMove(viX, viY, 10);
359  return AU3_MouseClick(vsButton, viX, viY, viClicks, viSpeed);
360  }
static int OKW.GUI.AUI.AutoItX_NONO.MouseClickDrag ( string  vsButton,
int  viX1,
int  viY1,
int  viX2,
int  viY2,
int  viSpeed 
)
static

Perform a mouse click and drag operation.

Parameters
vsButtonThe button to click: "left", "right", "middle", "main", "menu", "primary", "secondary".
viX1The x/y coords to start the drag operation from.
viY1The x/y coords to start the drag operation from.
viX2The x/y coords to end the drag operation at.
viY2The x/y coords to end the drag operation at.
viSpeed[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. : Returns 1.
Failure: Returns 0, the button is not in the list.
Returns
374  {
375  return AU3_MouseClickDrag(vsButton, viX1, viY1, viX2, viY2, viSpeed);
376  }
static void OKW.GUI.AUI.AutoItX_NONO.MouseDown ( string  vsButton)
static

Perform a mouse down event at the current mouse position.

Parameters
vsButtonThe button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". : Returns 1.
Failure: Returns 0, the button is not in the list.
Returns
385  {
386  AU3_MouseDown(vsButton);
387  }
static PointXY OKW.GUI.AUI.AutoItX_NONO.MouseGetPos ( )
static

Retrieves the current position of the mouse cursor.

struct with x, y values.

Returns
394  {
395  PointXY point;
396  point.X = AU3_MouseGetPosX();
397  point.Y = AU3_MouseGetPosY();
398 
399  return point;
400  }
static void OKW.GUI.AUI.AutoItX_NONO.MouseMove ( int  viX,
int  viY 
)
static

Moves the mouse pointer.

Parameters
viXThe screen x coordinate to move the mouse to.
viYThe screen y coordinate to move the mouse to.
408  {
409  MouseMove(viX, viY, 1);
410  }
static void MouseMove(int viX, int viY)
Moves the mouse pointer.
Definition: AUI.cs:407
static void OKW.GUI.AUI.AutoItX_NONO.MouseMove ( int  viX,
int  viY,
int  viSpeed 
)
static

Moves the mouse pointer.

Parameters
viXThe screen x coordinate to move the mouse to.
viYThe screen y coordinate to move the mouse to.
viSpeed[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.
419  {
420  AU3_MouseMove(viX, viY, viSpeed);
421  }
static void OKW.GUI.AUI.AutoItX_NONO.MouseUp ( string  vsButton)
static

Perform a mouse up event at the current mouse position.

Parameters
vsButtonThe button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". : Returns 1.
Failure: Returns 0, the button is not in the list.
Returns
430  {
431  AU3_MouseUp(vsButton);
432  }
static int OKW.GUI.AUI.AutoItX_NONO.PixelChecksum ( int  left,
int  top,
int  right,
int  bottom,
int  step 
)
static

Generates a checksum for a region of pixels.

Parameters
leftleft coordinate of rectangle.
toptop coordinate of rectangle.
rightright coordinate of rectangle.
bottombottom coordinate of rectangle.
step[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. It is not recommended to use a step value greater than 1. the checksum value of the region.
Returns
444  {
447 
448  int sum = 0;
449  for (int viX = left; viX <= right; viX += step)
450  {
451  for (int viY = top; viY <= bottom; viY += step)
452  {
453  sum += AU3_PixelGetColor(viX, viY);
454  }
455  }
456 
457  return sum;
458  }
static int OKW.GUI.AUI.AutoItX_NONO.PixelChecksum ( int  left,
int  top,
int  right,
int  bottom 
)
static

Generates a checksum for a region of pixels.

Parameters
leftleft coordinate of rectangle.
toptop coordinate of rectangle.
rightright coordinate of rectangle.
bottombottom coordinate of rectangle. the checksum value of the region.
Returns
469  {
470  return PixelChecksum(left, top, right, bottom, 10);
471  }
static int PixelChecksum(int left, int top, int right, int bottom, int step)
Generates a checksum for a region of pixels.
Definition: AUI.cs:443
static int OKW.GUI.AUI.AutoItX_NONO.PixelGetColor ( int  viX,
int  viY 
)
static

Returns a pixel color according to x,y pixel coordinates.

Parameters
viXx coordinate of pixel.
viYy coordinate of pixel.
Returns
480  {
481  return AU3_PixelGetColor(viX, viY);
482  }
static int [] OKW.GUI.AUI.AutoItX_NONO.PixelSearch ( int  left,
int  top,
int  right,
int  bottom,
int  color,
int  shade,
int  step 
)
static

Searches a rectangle of pixels for the pixel color provided.(NOT IMPLIMENTED)

Parameters
leftleft coordinate of rectangle.
toptop coordinate of rectangle.
rightright coordinate of rectangle.
bottombottom coordinate of rectangle.
colorColor value of pixel to find(in decimal or hex).
shade[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).
step[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.
Returns
an array [0]=x [1]=y if the pixel is found. returns null otherwise
504  {
505  // object coord = AU3_PixelSearch(left, top, right, bottom, color, shade, step);
506 
507  // Here we check to see if it found the pixel or not. It always returns a 1 in C# if it did not.
508  // if (coord.ToString() != "1")
509  // {
510  // //We have to turn "object coord" into a useable array since it contains the coordinates we need.
511  // object[] pixelCoord = (object[])coord;
512 
513  // //Now we cast the object array to integers so that we can use the data inside.
514  // return new int[] {(int)pixelCoord[0],(int)pixelCoord[1] };
515  // }
516  return null;
517  }
static void OKW.GUI.AUI.AutoItX_NONO.ProcessClose ( string  process)
static

Terminates a named process.

Parameters
processThe title or PID of the process to terminate.
524  {
525  AU3_ProcessClose(process);
526  }
static bool OKW.GUI.AUI.AutoItX_NONO.ProcessExists ( string  process)
static

Checks to see if a specified process exists.

Parameters
processThe name or PID of the process to check. if it exist, false otherwise
Returns
534  {
535  return AU3_ProcessExists(process) != 0;
536  }
static void OKW.GUI.AUI.AutoItX_NONO.ProcessWait ( string  process,
int  timeout 
)
static

Pauses script execution until a given process exists.

Parameters
processThe name of the process to check.
timeout[optional] Specifies how long to wait(in seconds). Default is to wait indefinitely.
544  {
545  AU3_ProcessWait(process, timeout);
546  }
static void OKW.GUI.AUI.AutoItX_NONO.ProcessWaitClose ( string  process,
int  timeout 
)
static

Pauses script execution until a given process does not exist.

Parameters
processThe name or PID of the process to check.
timeout[optional] Specifies how long to wait(in seconds). Default is to wait indefinitely.
554  {
555  AU3_ProcessWaitClose(process, timeout);
556  }
static void OKW.GUI.AUI.AutoItX_NONO.Run ( string  process)
static

Runs an external program.

Parameters
processThe name of the executable(EXE, BAT, COM, or PIF) to run.
563  {
564  Run(process, string.Empty);
565  }
static void Run(string process)
Runs an external program.
Definition: AUI.cs:562
static void OKW.GUI.AUI.AutoItX_NONO.Run ( string  process,
string  dir 
)
static

Runs an external program.

Parameters
processThe name of the executable(EXE, BAT, COM, or PIF) to run.
dir[optional] The working directory.
573  {
574  Run(process, dir, SW_SHOWMAXIMIZED);
575  }
static void Run(string process)
Runs an external program.
Definition: AUI.cs:562
static void OKW.GUI.AUI.AutoItX_NONO.Run ( string  process,
string  dir,
int  showflag 
)
static

Runs an external program.

Parameters
processThe name of the executable(EXE, BAT, COM, or PIF) to run.
dir[optional] The working directory.
showflag[optional] The "show" flag of the executed program: = Hidden window(or Default keyword) = Minimized window = Maximized window
589  {
590  AU3_Run(process, dir, showflag);
591  }
static void OKW.GUI.AUI.AutoItX_NONO.Send ( string  text)
static

Sends simulated keystrokes to the active window.

Parameters
textThe sequence of keys to send. <defaults>KeyDownDelay and KeySendDelay are default 5 ms.</defaults>
599  {
600  Send(text, 5, 5);
601  }
static void Send(string text)
Sends simulated keystrokes to the active window.
Definition: AUI.cs:598
static void OKW.GUI.AUI.AutoItX_NONO.Send ( string  text,
int  viSpeed 
)
static

Sends simulated keystrokes to the active window.

Parameters
textThe sequence of keys to send.
viSpeedAlters the the length of the brief pause in between sent keystrokes. Time in milliseconds to pause(default=5). Sometimes a value of 0 does not work; use 1 instead.
613  {
614  Send(text, viSpeed, 5);
615  }
static void Send(string text)
Sends simulated keystrokes to the active window.
Definition: AUI.cs:598
static void OKW.GUI.AUI.AutoItX_NONO.Send ( string  text,
int  viSpeed,
int  downLen 
)
static

Sends simulated keystrokes to the active window.

Parameters
textThe sequence of keys to send.
viSpeedAlters the the length of the brief pause in between sent keystrokes. Time in milliseconds to pause(default=5). Sometimes a value of 0 does not work; use 1 instead.
downLenAlters the length of time a key is held down before being released during a keystroke. For applications that take a while to register keypresses(and many games) you may need to raise this value from the default. Time in milliseconds to pause(default=5).
633  {
634  SetOptions("AuXWrapper.SendKeyDelay", viSpeed);
635  SetOptions("AuXWrapper.SendKeyDownDelay", downLen);
636  Send(0, text);
637  }
static void Send(string text)
Sends simulated keystrokes to the active window.
Definition: AUI.cs:598
static void SetOptions()
Set recommended default AutoIt functions/parameters.
Definition: AUI.cs:682
static void OKW.GUI.AUI.AutoItX_NONO.Send ( int  viMode,
string  vsText 
)
static

Sends simulated keystrokes to the active window.

Parameters
viMode[optional] Changes how "keys" is processed: flag = 0(default), Text contains special characters like + and ! to indicate SHIFT and ALT key-presses. flag = 1, keys are sent raw.
vsTextThe sequence of keys to send.
648  {
649  AU3_Send(vsText, viMode);
650  }
static void OKW.GUI.AUI.AutoItX_NONO.Send ( string  vsText,
string  fpsTitle,
string  vsControl 
)
static

Sends simulated keystrokes to the specified control.

Parameters
fpsTitleThe s window title.
vsControlThe s control.
vsTextThe s text.
659  {
660  //----------------------------------------------------------------------
661  // Set control focus and then send text to that control
662  //----------------------------------------------------------------------
663  ControlFocus(fpsTitle, vsControl);
664  Send(vsText);
665  }
static void Send(string text)
Sends simulated keystrokes to the active window.
Definition: AUI.cs:598
static int ControlFocus(string fpsTitle, string vsText, string vsControl)
Sets input focus to a given control on a window.
Definition: AUI.cs:157
static void OKW.GUI.AUI.AutoItX_NONO.SetOptions ( string  sOption,
int  iValue 
)
static

Changes the operation of various AutoIt functions/parameters.

Parameters
sOptionThe option to change. See Remarks.
iValue[optional] The value to assign to the option. The type and meaning vary by option. The keyword Default can be used for the parameter to reset the option to its default value.
697  {
698  AU3_AutoItSetOption(sOption, iValue);
699  }
static void OKW.GUI.AUI.AutoItX_NONO.Sleep ( int  iMilliseconds)
static

Pause script execution.

Parameters
iMillisecondsAmount of time to pause(in milliseconds).
789  {
790  AU3_Sleep(iMilliseconds);
791  }
static void OKW.GUI.AUI.AutoItX_NONO.ToolTip ( string  sTip,
int  viX,
int  viY 
)
static

Creates a tooltip anywhere on the screen.

Parameters
sTipThe text of the tooltip.(An empty string clears a displaying tooltip)
viX[optional] The x,y position of the tooltip.
viY[optional] The x,y position of the tooltip.
800  {
801  AU3_ToolTip(sTip, viX, viY);
802  }
static void OKW.GUI.AUI.AutoItX_NONO.ToolTip ( string  sMessage)
static

Creates a padded tooltip in the top-left part of the screen.

Parameters
sMessageThe text of the tooltip.(An empty string clears a displaying tooltip)
809  {
810  //----------------------------------------------------------------------
811  // Pad the message being displayed
812  //----------------------------------------------------------------------
813  if (!string.IsNullOrEmpty(sMessage))
814  {
815  sMessage = string.Format("\r\n {0} \r\n ", sMessage);
816  }
817 
818  //----------------------------------------------------------------------
819  // Set the tooltip to display the message
820  //----------------------------------------------------------------------
821  ToolTip(sMessage, 0, 0);
822  }
static void ToolTip(string sTip, int viX, int viY)
Creates a tooltip anywhere on the screen.
Definition: AUI.cs:799
static void OKW.GUI.AUI.AutoItX_NONO.WinActivate ( string  fpsTitle)
static

Activate a window.

Parameters
fpsTitlethe complete title of the window to activate, case sensitive
829  {
830  AU3_WinActivate(fpsTitle, string.Empty);
831  }
static void OKW.GUI.AUI.AutoItX_NONO.WinActivate ( string  fpsTitle,
int  waitactivetimeout 
)
static

Activates(gives focus to) a window.(incorporates WinWaitActive)

Parameters
fpsTitleThe title of the window to activate.
waitactivetimeout[optional] Timeout in seconds
839  {
840  AU3_WinActivate(fpsTitle, string.Empty);
841  AU3_WinWaitActive(fpsTitle, string.Empty, waitactivetimeout);
842  System.Threading.Thread.Sleep(1000);
843  }
static void OKW.GUI.AUI.AutoItX_NONO.WinActivate ( string  fpsTitle,
string  vsText 
)
static

Activates(gives focus to) a window.

Parameters
fpsTitleThe title of the window to activate.
vsText[optional] The text of the window to activate.
851  {
852  AU3_WinActivate(fpsTitle, vsText);
853  }
static int OKW.GUI.AUI.AutoItX_NONO.WinExists ( string  fpsTitle)
static

Checks to see if a specified window exists.

Parameters
fpsTitleThe title of the window to check.
Returns
Success: Returns 1 if the window exists. Failure: Returns 0 otherwise.
864  {
865  return AU3_WinExists(fpsTitle, string.Empty);
866  }
static int OKW.GUI.AUI.AutoItX_NONO.WinExists ( string  fpsTitle,
string  vsText 
)
static

Checks to see if a specified window exists.

Parameters
fpsTitleThe title of the window to check.
vsText[optional] The text of the window to check.
Returns
Success: Returns 1 if the window exists. Failure: Returns 0 otherwise.
878  {
879  return AU3_WinExists(fpsTitle, vsText);
880  }
static string OKW.GUI.AUI.AutoItX_NONO.WinGetHandle ( string  fpsTitle)
static

Retrieves the internal handle of a window.

Parameters
fpsTitleThe title of the window to read.
Returns
888  {
889  // ----------------------------------------------------------------------
890  // A number big enought to hold result, trailing bytes will be 0
891  // ----------------------------------------------------------------------
892  byte[] RetText = new byte[50];
893 
894  AU3_WinGetHandle(fpsTitle, string.Empty, RetText, RetText.Length);
895 
896  //----------------------------------------------------------------------
897  // May need to convert back to a string or int
898  //----------------------------------------------------------------------
899  return Encoding.ASCII.GetString(RetText).TrimEnd('\0');
900  }
static string OKW.GUI.AUI.AutoItX_NONO.WinGetText ( string  fpsTitle,
string  vsText 
)
static

Retrieves the text from a window.

Parameters
fpsTitleThe title of the window to read.
vsText[optional] The text of the window to read.
Returns
909  {
910  //----------------------------------------------------------------------
911  // A number big enought to hold result, trailing bytes will be 0
912  //----------------------------------------------------------------------
913  byte[] byteRetText = new byte[10000];
914 
915  AU3_WinGetText(fpsTitle, vsText, byteRetText, byteRetText.Length);
916 
917  // ----------------------------------------------------------------------
918  // May need to convert back to a string or int
919  // ----------------------------------------------------------------------
920  return Encoding.ASCII.GetString(byteRetText).TrimEnd('\0');
921  }
static string OKW.GUI.AUI.AutoItX_NONO.WinGetText ( string  fpsTitle)
static

Retrieves the text from a window.

Parameters
fpsTitleThe title of the window to read.
Returns
929  {
930  return WinGetText(fpsTitle, string.Empty);
931  }
static string WinGetText(string fpsTitle, string vsText)
Retrieves the text from a window.
Definition: AUI.cs:908
static void OKW.GUI.AUI.AutoItX_NONO.WinMove ( string  fpsTitle,
int  viX,
int  viY 
)
static

Moves and/or resizes a window.

Parameters
fpsTitleThe title of the window to move/resize.
viXX coordinate to move to.
viYY coordinate to move to.
940  {
941  int xLen = AU3_WinGetPosWidth(fpsTitle, string.Empty);
942  int yLen = AU3_WinGetPosHeight(fpsTitle, string.Empty);
943  WinMove(fpsTitle, viX, viY, xLen, yLen);
944  }
static void WinMove(string fpsTitle, int viX, int viY)
Moves and/or resizes a window.
Definition: AUI.cs:939
static void OKW.GUI.AUI.AutoItX_NONO.WinMove ( string  fpsTitle,
int  viX,
int  viY,
int  viWidth,
int  viHeight 
)
static

Moves and/or resizes a window.

Parameters
fpsTitleThe title of the window to move/resize.
viXX coordinate to move to.
viYY coordinate to move to.
viWidth[optional] New width of the window.
viHeight[optional] New height of the window.
955  {
956  AU3_WinMove(fpsTitle, string.Empty, viX, viY, viWidth, viHeight);
957  }
static int OKW.GUI.AUI.AutoItX_NONO.WinWait ( string  fpsTitle)
static

Pauses execution of the script until the requested window exists.

Parameters
fpsTitleThe title of the window to check.
Returns
965  {
966  return AU3_WinWait(fpsTitle, string.Empty, 3000);
967  }
static int OKW.GUI.AUI.AutoItX_NONO.WinWaitActive ( string  fpsTitle,
string  vsText,
int  iTimeout 
)
static

Pauses execution of the script until the requested window is active.

Parameters
fpsTitleThe title of the window to check.
vsText[optional] The text of the window to check.
iTimeout[optional] Timeout in seconds
Returns
Success: Returns 1. Failure: Returns 0 if timeout occurred.
980  {
981  return AU3_WinWaitActive(fpsTitle, vsText, iTimeout);
982  }
static int OKW.GUI.AUI.AutoItX_NONO.WinWaitActive ( string  fpsTitle,
int  iTimeout 
)
static

Pauses execution of the script until the requested window is active.

Parameters
fpsTitleThe title of the window to check.
iTimeout[optional] Timeout in seconds
Returns
Success: Returns 1. Failure: Returns 0 if timeout occurred.
994  {
995  return AU3_WinWaitActive(fpsTitle, string.Empty, iTimeout);
996  }
static int OKW.GUI.AUI.AutoItX_NONO.WinWaitActive ( string  fpsTitle)
static

Pauses execution of the script until the requested window is active.

Parameters
fpsTitleThe title of the window to check.
Returns
Success: Returns 1. Failure: Returns 0 if timeout occurred.
1007  {
1008  return AU3_WinWaitActive(fpsTitle, string.Empty, 3000);
1009  }
static void OKW.GUI.AUI.AutoItX_NONO.WinWaitActiveWindow ( string  fpsTitle)
static

Pauses execution of the script until the requested window exists, activates it and then waits again until it is active.

Parameters
fpsTitleThe title of the window to check.
1017  {
1018  // ----------------------------------------------------------------------
1019  // Wait for the window
1020  // ----------------------------------------------------------------------
1021  WinWait(fpsTitle);
1022 
1023  // ----------------------------------------------------------------------
1024  // Set the window as the active window
1025  // ----------------------------------------------------------------------
1026  WinActivate(fpsTitle);
1027 
1028  // ----------------------------------------------------------------------
1029  // Wait until the window is active, then proceed
1030  // ----------------------------------------------------------------------
1031  WinWaitActive(fpsTitle);
1032  }
static int WinWaitActive(string fpsTitle, string vsText, int iTimeout)
Pauses execution of the script until the requested window is active.
Definition: AUI.cs:979
static void WinActivate(string fpsTitle)
Activate a window.
Definition: AUI.cs:828
static int WinWait(string fpsTitle)
Pauses execution of the script until the requested window exists.
Definition: AUI.cs:964

The documentation for this class was generated from the following file: