C# Class AuScGen.CommonUtilityPlugin.AutoITExtension

Inheritance: IContainerPlugin
显示文件 Open project: geeksree/cSharpGeeks

Public Methods

Method Description
AutoITExtension ( ) : System
AutoITExtension ( IntPtr windowHandle, int maxLen = 65535 ) : System
AutoITExtension ( string windowTitle, string text = "" ) : System
AutoItSetOption ( string option, int optionValue ) : int
ClipGet ( int maxLen = 1048576 ) : string
ClipPut ( string text ) : void
ControlClick ( string control = "", string button = "left", int numClicks = 1, int x = -2147483647, int y = -2147483647 ) : int
ControlClick ( string title, string text, string control, string button = "left", int numClicks = 1, int x = -2147483647, int y = -2147483647 ) : int
ControlCommand ( string command, string extra, int maxLen = 65535, string control = "" ) : string
ControlCommand ( string title, string text, string control, string command, string extra, int maxLen = 65535 ) : string
ControlDisable ( string control = "" ) : int
ControlDisable ( string title, string text, string control ) : int
ControlEnable ( string control = "" ) : int
ControlEnable ( string title, string text, string control ) : int
ControlFocus ( string control = "" ) : int
ControlFocus ( string title, string text, string control ) : int
ControlGetFocus ( IntPtr winHandle, int maxLen = 65535 ) : string
ControlGetFocus ( string title = "", string text = "", int maxLen = 65535 ) : string
ControlGetHandle ( string control = "" ) : IntPtr
ControlGetHandleAsText ( string title = "", string text = "", string control = "", int maxLen = 65535 ) : string
ControlGetPos ( IntPtr winHandle, string control = "" ) : Rectangle
ControlGetPos ( string title = "", string text = "", string control = "" ) : Rectangle
ControlGetText ( string control = "", int maxLen = 65535 ) : string
ControlGetText ( string title, string text, string control, int maxLen = 65535 ) : string
ControlHide ( string control = "" ) : int
ControlHide ( string title, string text, string control ) : int
ControlListView ( string command, string extra1, string extra2, string control = "", int maxLen = 65535 ) : string
ControlListView ( string title, string text, string control, string command, string extra1, string extra2, int maxLen = 65535 ) : string
ControlMove ( int x, int y, int width = -1, int height = -1, string control = "" ) : int
ControlMove ( string title, string text, string control, int x, int y, int width = -1, int height = -1 ) : int
ControlSend ( string sendText, int mode, string control = "" ) : int
ControlSend ( string title, string text, string control, string sendText, int mode ) : int
ControlSetText ( string controlText, string control = "" ) : int
ControlSetText ( string title, string text, string control, string controlText ) : int
ControlShow ( string control = "" ) : int
ControlShow ( string title, string text, string control ) : int
ControlTreeView ( string command, string extra1, string extra2, string control = "", int maxLen = 65535 ) : string
ControlTreeView ( string title, string text, string control, string command, string extra1, string extra2, int maxLen = 65535 ) : string
DriveMapAdd ( string device, string share, int flags, string user = "", string password = "" ) : string
DriveMapDel ( string device ) : int
DriveMapGet ( string device ) : string
ErrorCode ( ) : int
GetDialog ( string title, string text = "", int timeout = 5000 ) : AutoITExtension
GetWindowHandle ( string title = "", string text = "", int timeout = 10000 ) : IntPtr
Init ( ) : void
IsAdmin ( ) : int
MouseClick ( string button = "LEFT", int x = -2147483647, int y = -2147483647, int numClicks = 1, int speed = -1 ) : int
MouseClickDrag ( string button, int x1, int y1, int x2, int y2, int speed = -1 ) : int
MouseDown ( string button = "LEFT" ) : void
MouseGetCursor ( ) : int
MouseGetPos ( ) : Point
MouseMove ( int x, int y, int speed = -1 ) : int
MouseUp ( string button = "LEFT" ) : void
MouseWheel ( string direction, int numClicks ) : void
PixelChecksum ( Rectangle rect, int step = 1 ) : uint
PixelGetColor ( int x, int y ) : int
PixelSearch ( Rectangle rect, int color, int shade, int step = 1 ) : Point
ProcessClose ( string process ) : int
ProcessExists ( string process ) : int
ProcessSetPriority ( string process, int priority ) : int
ProcessWait ( string process, int timeout ) : int
ProcessWaitClose ( string process, int timeout ) : int
Run ( string program, string dir, int showFlag = 1 ) : int
RunAs ( string user, string domain, string password, int logonFlag, string program, string dir, int showFlag = 1 ) : int
RunAsWait ( string user, string domain, string password, int logonFlag, string program, string dir, int showFlag = 1 ) : int
RunWait ( string program, string dir, int showFlag = 1 ) : int
Send ( string sendText, int mode ) : void
Shutdown ( int flag ) : int
Sleep ( int milliseconds ) : void
StatusBarGetText ( int part = 1, int maxLen = 65535 ) : string
StatusBarGetText ( string title = "", string text = "", int part = 1, int maxLen = 65535 ) : string
ToolTip ( string tip, int x = -2147483647, int y = -2147483647 ) : void
WaitForWindow ( string title, int timeOut ) : bool
WinActivate ( ) : int
WinActivate ( string title = "", string text = "" ) : int
WinActive ( ) : int
WinActive ( string title = "", string text = "" ) : int
WinClose ( ) : int
WinClose ( string title = "", string text = "" ) : int
WinExists ( ) : int
WinExists ( string title = "", string text = "" ) : int
WinGetCaretPos ( ) : Point
WinGetClassList ( int maxLen = 65535 ) : string
WinGetClassList ( string title = "", string text = "", int maxLen = 65535 ) : string
WinGetClientSize ( ) : Rectangle
WinGetClientSize ( string title = "", string text = "" ) : Rectangle
WinGetHandle ( string title = "", string text = "" ) : IntPtr
WinGetHandleAsText ( string title = "", string text = "", int maxLen = 65535 ) : string
WinGetPos ( ) : Rectangle
WinGetPos ( string title = "", string text = "" ) : Rectangle
WinGetProcess ( int maxLen = 65535 ) : uint
WinGetProcess ( string title = "", string text = "", int maxLen = 65535 ) : uint
WinGetState ( ) : int
WinGetState ( string title = "", string text = "" ) : int
WinGetText ( int maxLen = 65535 ) : string
WinGetText ( string title = "", string text = "", int maxLen = 65535 ) : string
WinGetTitle ( IntPtr winHandle, int maxLen = 65535 ) : string
WinGetTitle ( string title = "", string text = "", int maxLen = 65535 ) : string
WinKill ( ) : int
WinKill ( string title = "", string text = "" ) : int
WinMinimizeAll ( ) : void
WinMinimizeAllUndo ( ) : void
WinMove ( int x, int y, int width = -1, int height = -1 ) : int
WinMove ( string title, string text, int x, int y, int width = -1, int height = -1 ) : int
WinSetOnTop ( int flag ) : int
WinSetOnTop ( string title, string text, int flag ) : int
WinSetState ( int flags ) : int
WinSetState ( string title, string text, int flags ) : int
WinSetTitle ( IntPtr winHandle, string newTitle ) : int
WinSetTitle ( string title, string text, string newTitle ) : int
WinSetTrans ( int trans ) : int
WinSetTrans ( string title, string text, int trans ) : int
WinWait ( int timeout ) : int
WinWait ( string title = "", string text = "", int timeout ) : int
WinWaitActive ( int timeout ) : int
WinWaitActive ( string title = "", string text = "", int timeout ) : int
WinWaitClose ( int timeout ) : int
WinWaitClose ( string title = "", string text = "", int timeout ) : int
WinWaitNotActive ( int timeout ) : int
WinWaitNotActive ( string title = "", string text = "", int timeout ) : int

Private Methods

Method Description
IsWinExists ( string title ) : bool

Method Details

AutoITExtension() public method

public AutoITExtension ( ) : System
return System

AutoITExtension() public method

public AutoITExtension ( IntPtr windowHandle, int maxLen = 65535 ) : System
windowHandle System.IntPtr
maxLen int
return System

AutoITExtension() public method

public AutoITExtension ( string windowTitle, string text = "" ) : System
windowTitle string
text string
return System

AutoItSetOption() public method

public AutoItSetOption ( string option, int optionValue ) : int
option string
optionValue int
return int

ClipGet() public method

public ClipGet ( int maxLen = 1048576 ) : string
maxLen int
return string

ClipPut() public method

public ClipPut ( string text ) : void
text string
return void

ControlClick() public method

public ControlClick ( string control = "", string button = "left", int numClicks = 1, int x = -2147483647, int y = -2147483647 ) : int
control string
button string
numClicks int
x int
y int
return int

ControlClick() public method

public ControlClick ( string title, string text, string control, string button = "left", int numClicks = 1, int x = -2147483647, int y = -2147483647 ) : int
title string
text string
control string
button string
numClicks int
x int
y int
return int

ControlCommand() public method

public ControlCommand ( string command, string extra, int maxLen = 65535, string control = "" ) : string
command string
extra string
maxLen int
control string
return string

ControlCommand() public method

public ControlCommand ( string title, string text, string control, string command, string extra, int maxLen = 65535 ) : string
title string
text string
control string
command string
extra string
maxLen int
return string

ControlDisable() public method

public ControlDisable ( string control = "" ) : int
control string
return int

ControlDisable() public method

public ControlDisable ( string title, string text, string control ) : int
title string
text string
control string
return int

ControlEnable() public method

public ControlEnable ( string control = "" ) : int
control string
return int

ControlEnable() public method

public ControlEnable ( string title, string text, string control ) : int
title string
text string
control string
return int

ControlFocus() public method

public ControlFocus ( string control = "" ) : int
control string
return int

ControlFocus() public method

public ControlFocus ( string title, string text, string control ) : int
title string
text string
control string
return int

ControlGetFocus() public method

public ControlGetFocus ( IntPtr winHandle, int maxLen = 65535 ) : string
winHandle System.IntPtr
maxLen int
return string

ControlGetFocus() public method

public ControlGetFocus ( string title = "", string text = "", int maxLen = 65535 ) : string
title string
text string
maxLen int
return string

ControlGetHandle() public method

public ControlGetHandle ( string control = "" ) : IntPtr
control string
return System.IntPtr

ControlGetHandleAsText() public method

public ControlGetHandleAsText ( string title = "", string text = "", string control = "", int maxLen = 65535 ) : string
title string
text string
control string
maxLen int
return string

ControlGetPos() public method

public ControlGetPos ( IntPtr winHandle, string control = "" ) : Rectangle
winHandle System.IntPtr
control string
return System.Drawing.Rectangle

ControlGetPos() public method

public ControlGetPos ( string title = "", string text = "", string control = "" ) : Rectangle
title string
text string
control string
return System.Drawing.Rectangle

ControlGetText() public method

public ControlGetText ( string control = "", int maxLen = 65535 ) : string
control string
maxLen int
return string

ControlGetText() public method

public ControlGetText ( string title, string text, string control, int maxLen = 65535 ) : string
title string
text string
control string
maxLen int
return string

ControlHide() public method

public ControlHide ( string control = "" ) : int
control string
return int

ControlHide() public method

public ControlHide ( string title, string text, string control ) : int
title string
text string
control string
return int

ControlListView() public method

public ControlListView ( string command, string extra1, string extra2, string control = "", int maxLen = 65535 ) : string
command string
extra1 string
extra2 string
control string
maxLen int
return string

ControlListView() public method

public ControlListView ( string title, string text, string control, string command, string extra1, string extra2, int maxLen = 65535 ) : string
title string
text string
control string
command string
extra1 string
extra2 string
maxLen int
return string

ControlMove() public method

public ControlMove ( int x, int y, int width = -1, int height = -1, string control = "" ) : int
x int
y int
width int
height int
control string
return int

ControlMove() public method

public ControlMove ( string title, string text, string control, int x, int y, int width = -1, int height = -1 ) : int
title string
text string
control string
x int
y int
width int
height int
return int

ControlSend() public method

public ControlSend ( string sendText, int mode, string control = "" ) : int
sendText string
mode int
control string
return int

ControlSend() public method

public ControlSend ( string title, string text, string control, string sendText, int mode ) : int
title string
text string
control string
sendText string
mode int
return int

ControlSetText() public method

public ControlSetText ( string controlText, string control = "" ) : int
controlText string
control string
return int

ControlSetText() public method

public ControlSetText ( string title, string text, string control, string controlText ) : int
title string
text string
control string
controlText string
return int

ControlShow() public method

public ControlShow ( string control = "" ) : int
control string
return int

ControlShow() public method

public ControlShow ( string title, string text, string control ) : int
title string
text string
control string
return int

ControlTreeView() public method

public ControlTreeView ( string command, string extra1, string extra2, string control = "", int maxLen = 65535 ) : string
command string
extra1 string
extra2 string
control string
maxLen int
return string

ControlTreeView() public method

public ControlTreeView ( string title, string text, string control, string command, string extra1, string extra2, int maxLen = 65535 ) : string
title string
text string
control string
command string
extra1 string
extra2 string
maxLen int
return string

DriveMapAdd() public method

public DriveMapAdd ( string device, string share, int flags, string user = "", string password = "" ) : string
device string
share string
flags int
user string
password string
return string

DriveMapDel() public method

public DriveMapDel ( string device ) : int
device string
return int

DriveMapGet() public method

public DriveMapGet ( string device ) : string
device string
return string

ErrorCode() public method

public ErrorCode ( ) : int
return int

GetDialog() public method

public GetDialog ( string title, string text = "", int timeout = 5000 ) : AutoITExtension
title string
text string
timeout int
return AutoITExtension

GetWindowHandle() public method

public GetWindowHandle ( string title = "", string text = "", int timeout = 10000 ) : IntPtr
title string
text string
timeout int
return System.IntPtr

Init() public method

public Init ( ) : void
return void

IsAdmin() public method

public IsAdmin ( ) : int
return int

MouseClick() public method

public MouseClick ( string button = "LEFT", int x = -2147483647, int y = -2147483647, int numClicks = 1, int speed = -1 ) : int
button string
x int
y int
numClicks int
speed int
return int

MouseClickDrag() public method

public MouseClickDrag ( string button, int x1, int y1, int x2, int y2, int speed = -1 ) : int
button string
x1 int
y1 int
x2 int
y2 int
speed int
return int

MouseDown() public method

public MouseDown ( string button = "LEFT" ) : void
button string
return void

MouseGetCursor() public method

public MouseGetCursor ( ) : int
return int

MouseGetPos() public method

public MouseGetPos ( ) : Point
return Point

MouseMove() public method

public MouseMove ( int x, int y, int speed = -1 ) : int
x int
y int
speed int
return int

MouseUp() public method

public MouseUp ( string button = "LEFT" ) : void
button string
return void

MouseWheel() public method

public MouseWheel ( string direction, int numClicks ) : void
direction string
numClicks int
return void

PixelChecksum() public method

public PixelChecksum ( Rectangle rect, int step = 1 ) : uint
rect System.Drawing.Rectangle
step int
return uint

PixelGetColor() public method

public PixelGetColor ( int x, int y ) : int
x int
y int
return int

PixelSearch() public method

public PixelSearch ( Rectangle rect, int color, int shade, int step = 1 ) : Point
rect System.Drawing.Rectangle
color int
shade int
step int
return Point

ProcessClose() public method

public ProcessClose ( string process ) : int
process string
return int

ProcessExists() public method

public ProcessExists ( string process ) : int
process string
return int

ProcessSetPriority() public method

public ProcessSetPriority ( string process, int priority ) : int
process string
priority int
return int

ProcessWait() public method

public ProcessWait ( string process, int timeout ) : int
process string
timeout int
return int

ProcessWaitClose() public method

public ProcessWaitClose ( string process, int timeout ) : int
process string
timeout int
return int

Run() public method

public Run ( string program, string dir, int showFlag = 1 ) : int
program string
dir string
showFlag int
return int

RunAs() public method

public RunAs ( string user, string domain, string password, int logonFlag, string program, string dir, int showFlag = 1 ) : int
user string
domain string
password string
logonFlag int
program string
dir string
showFlag int
return int

RunAsWait() public method

public RunAsWait ( string user, string domain, string password, int logonFlag, string program, string dir, int showFlag = 1 ) : int
user string
domain string
password string
logonFlag int
program string
dir string
showFlag int
return int

RunWait() public method

public RunWait ( string program, string dir, int showFlag = 1 ) : int
program string
dir string
showFlag int
return int

Send() public method

public Send ( string sendText, int mode ) : void
sendText string
mode int
return void

Shutdown() public method

public Shutdown ( int flag ) : int
flag int
return int

Sleep() public method

public Sleep ( int milliseconds ) : void
milliseconds int
return void

StatusBarGetText() public method

public StatusBarGetText ( int part = 1, int maxLen = 65535 ) : string
part int
maxLen int
return string

StatusBarGetText() public method

public StatusBarGetText ( string title = "", string text = "", int part = 1, int maxLen = 65535 ) : string
title string
text string
part int
maxLen int
return string

ToolTip() public method

public ToolTip ( string tip, int x = -2147483647, int y = -2147483647 ) : void
tip string
x int
y int
return void

WaitForWindow() public method

public WaitForWindow ( string title, int timeOut ) : bool
title string
timeOut int
return bool

WinActivate() public method

public WinActivate ( ) : int
return int

WinActivate() public method

public WinActivate ( string title = "", string text = "" ) : int
title string
text string
return int

WinActive() public method

public WinActive ( ) : int
return int

WinActive() public method

public WinActive ( string title = "", string text = "" ) : int
title string
text string
return int

WinClose() public method

public WinClose ( ) : int
return int

WinClose() public method

public WinClose ( string title = "", string text = "" ) : int
title string
text string
return int

WinExists() public method

public WinExists ( ) : int
return int

WinExists() public method

public WinExists ( string title = "", string text = "" ) : int
title string
text string
return int

WinGetCaretPos() public method

public WinGetCaretPos ( ) : Point
return Point

WinGetClassList() public method

public WinGetClassList ( int maxLen = 65535 ) : string
maxLen int
return string

WinGetClassList() public method

public WinGetClassList ( string title = "", string text = "", int maxLen = 65535 ) : string
title string
text string
maxLen int
return string

WinGetClientSize() public method

public WinGetClientSize ( ) : Rectangle
return System.Drawing.Rectangle

WinGetClientSize() public method

public WinGetClientSize ( string title = "", string text = "" ) : Rectangle
title string
text string
return System.Drawing.Rectangle

WinGetHandle() public method

public WinGetHandle ( string title = "", string text = "" ) : IntPtr
title string
text string
return System.IntPtr

WinGetHandleAsText() public method

public WinGetHandleAsText ( string title = "", string text = "", int maxLen = 65535 ) : string
title string
text string
maxLen int
return string

WinGetPos() public method

public WinGetPos ( ) : Rectangle
return System.Drawing.Rectangle

WinGetPos() public method

public WinGetPos ( string title = "", string text = "" ) : Rectangle
title string
text string
return System.Drawing.Rectangle

WinGetProcess() public method

public WinGetProcess ( int maxLen = 65535 ) : uint
maxLen int
return uint

WinGetProcess() public method

public WinGetProcess ( string title = "", string text = "", int maxLen = 65535 ) : uint
title string
text string
maxLen int
return uint

WinGetState() public method

public WinGetState ( ) : int
return int

WinGetState() public method

public WinGetState ( string title = "", string text = "" ) : int
title string
text string
return int

WinGetText() public method

public WinGetText ( int maxLen = 65535 ) : string
maxLen int
return string

WinGetText() public method

public WinGetText ( string title = "", string text = "", int maxLen = 65535 ) : string
title string
text string
maxLen int
return string

WinGetTitle() public method

public WinGetTitle ( IntPtr winHandle, int maxLen = 65535 ) : string
winHandle System.IntPtr
maxLen int
return string

WinGetTitle() public method

public WinGetTitle ( string title = "", string text = "", int maxLen = 65535 ) : string
title string
text string
maxLen int
return string

WinKill() public method

public WinKill ( ) : int
return int

WinKill() public method

public WinKill ( string title = "", string text = "" ) : int
title string
text string
return int

WinMinimizeAll() public method

public WinMinimizeAll ( ) : void
return void

WinMinimizeAllUndo() public method

public WinMinimizeAllUndo ( ) : void
return void

WinMove() public method

public WinMove ( int x, int y, int width = -1, int height = -1 ) : int
x int
y int
width int
height int
return int

WinMove() public method

public WinMove ( string title, string text, int x, int y, int width = -1, int height = -1 ) : int
title string
text string
x int
y int
width int
height int
return int

WinSetOnTop() public method

public WinSetOnTop ( int flag ) : int
flag int
return int

WinSetOnTop() public method

public WinSetOnTop ( string title, string text, int flag ) : int
title string
text string
flag int
return int

WinSetState() public method

public WinSetState ( int flags ) : int
flags int
return int

WinSetState() public method

public WinSetState ( string title, string text, int flags ) : int
title string
text string
flags int
return int

WinSetTitle() public method

public WinSetTitle ( IntPtr winHandle, string newTitle ) : int
winHandle System.IntPtr
newTitle string
return int

WinSetTitle() public method

public WinSetTitle ( string title, string text, string newTitle ) : int
title string
text string
newTitle string
return int

WinSetTrans() public method

public WinSetTrans ( int trans ) : int
trans int
return int

WinSetTrans() public method

public WinSetTrans ( string title, string text, int trans ) : int
title string
text string
trans int
return int

WinWait() public method

public WinWait ( int timeout ) : int
timeout int
return int

WinWait() public method

public WinWait ( string title = "", string text = "", int timeout ) : int
title string
text string
timeout int
return int

WinWaitActive() public method

public WinWaitActive ( int timeout ) : int
timeout int
return int

WinWaitActive() public method

public WinWaitActive ( string title = "", string text = "", int timeout ) : int
title string
text string
timeout int
return int

WinWaitClose() public method

public WinWaitClose ( int timeout ) : int
timeout int
return int

WinWaitClose() public method

public WinWaitClose ( string title = "", string text = "", int timeout ) : int
title string
text string
timeout int
return int

WinWaitNotActive() public method

public WinWaitNotActive ( int timeout ) : int
timeout int
return int

WinWaitNotActive() public method

public WinWaitNotActive ( string title = "", string text = "", int timeout ) : int
title string
text string
timeout int
return int