C# Class SukuSuku.UI

GUI操作関数群を定義しているクラス スクリプト側ではこの中の関数が呼ばれることでGUI操作を行う
Mostra file Open project: furaga/SukuSuku

Public Properties

Property Type Description
slowPlayFlag bool

Public Methods

Method Description
HighlightPoint ( int x, int y ) : void
UI ( MainForm owner ) : System
capture ( Rectangle rect, string imageName = null ) : string
capture ( int x, int y, int w, int h, string imageName = null ) : string
click ( int x, int y, MouseEventFlags flg1, MouseEventFlags flg2, int cnt ) : void
click ( string imageName, MouseEventFlags flg1, MouseEventFlags flg2, int cnt, double threshold ) : void
doubleClick ( Rectangle rect ) : void
doubleClick ( int x, int y ) : void
doubleClick ( string imageName, double threshold = -1 ) : void
drag ( Rectangle rect ) : void
drag ( int x, int y ) : void
drag ( string imageName, double threshold = -1 ) : void
dragAndDrop ( Rectangle rect1, Rectangle rect2 ) : void
dragAndDrop ( int x1, int y1, int x2, int y2 ) : void
dragAndDrop ( string imageName1, string imageName2, double threshold1 = -1, double threshold2 = -1 ) : void
drop ( Rectangle rect ) : void
drop ( int x, int y ) : void
drop ( string imageName, double threshold = -1 ) : void
exist ( string imageName, double threshold = -1 ) : bool
find ( string imageName, double threshold = -1 ) : Rectangle
leftClick ( Rectangle rect ) : void
leftClick ( int x, int y ) : void
leftClick ( string imageName, double threshold = -1 ) : void
messageBox ( string text ) : void
mouseMove ( Rectangle rect ) : void
mouseMove ( int x, int y ) : void
mouseMove ( string imageName, double threshold = -1 ) : void
paste ( Rectangle rect, string text ) : void
paste ( int x, int y, string text ) : void
paste ( string text ) : void
paste ( string imageName, string text, double threshold = -1 ) : void
rightClick ( Rectangle rect ) : void
rightClick ( int x, int y ) : void
rightClick ( string imageName, double threshold = -1 ) : void
type ( Rectangle rect, string text ) : void
type ( int x, int y, string text ) : void
type ( string text ) : void
type ( string imageName, string text, double threshold = -1 ) : void
wait ( string imageName, int timeout = 100, double threshold = -1 ) : Rectangle
waitVanish ( string imageName, int timeout = 100, double threshold = -1 ) : void

Private Methods

Method Description
findTemplatePoint ( string imageName, double threshold ) : Point?
mouse_event ( UInt32 dwFlags, UInt32 dx, UInt32 dy, UInt32 dwData, IntPtr dwExtraInfo ) : void

Method Details

HighlightPoint() public method

public HighlightPoint ( int x, int y ) : void
x int
y int
return void

UI() public method

public UI ( MainForm owner ) : System
owner MainForm
return System

capture() public method

public capture ( Rectangle rect, string imageName = null ) : string
rect System.Drawing.Rectangle
imageName string
return string

capture() public method

public capture ( int x, int y, int w, int h, string imageName = null ) : string
x int
y int
w int
h int
imageName string
return string

click() public method

public click ( int x, int y, MouseEventFlags flg1, MouseEventFlags flg2, int cnt ) : void
x int
y int
flg1 MouseEventFlags
flg2 MouseEventFlags
cnt int
return void

click() public method

public click ( string imageName, MouseEventFlags flg1, MouseEventFlags flg2, int cnt, double threshold ) : void
imageName string
flg1 MouseEventFlags
flg2 MouseEventFlags
cnt int
threshold double
return void

doubleClick() public method

public doubleClick ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

doubleClick() public method

public doubleClick ( int x, int y ) : void
x int
y int
return void

doubleClick() public method

public doubleClick ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
return void

drag() public method

public drag ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

drag() public method

public drag ( int x, int y ) : void
x int
y int
return void

drag() public method

public drag ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
return void

dragAndDrop() public method

public dragAndDrop ( Rectangle rect1, Rectangle rect2 ) : void
rect1 System.Drawing.Rectangle
rect2 System.Drawing.Rectangle
return void

dragAndDrop() public method

public dragAndDrop ( int x1, int y1, int x2, int y2 ) : void
x1 int
y1 int
x2 int
y2 int
return void

dragAndDrop() public method

public dragAndDrop ( string imageName1, string imageName2, double threshold1 = -1, double threshold2 = -1 ) : void
imageName1 string
imageName2 string
threshold1 double
threshold2 double
return void

drop() public method

public drop ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

drop() public method

public drop ( int x, int y ) : void
x int
y int
return void

drop() public method

public drop ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
return void

exist() public method

public exist ( string imageName, double threshold = -1 ) : bool
imageName string
threshold double
return bool

find() public method

public find ( string imageName, double threshold = -1 ) : Rectangle
imageName string
threshold double
return System.Drawing.Rectangle

leftClick() public method

public leftClick ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

leftClick() public method

public leftClick ( int x, int y ) : void
x int
y int
return void

leftClick() public method

public leftClick ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
return void

messageBox() public method

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

mouseMove() public method

public mouseMove ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

mouseMove() public method

public mouseMove ( int x, int y ) : void
x int
y int
return void

mouseMove() public method

public mouseMove ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
return void

paste() public method

public paste ( Rectangle rect, string text ) : void
rect System.Drawing.Rectangle
text string
return void

paste() public method

public paste ( int x, int y, string text ) : void
x int
y int
text string
return void

paste() public method

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

paste() public method

public paste ( string imageName, string text, double threshold = -1 ) : void
imageName string
text string
threshold double
return void

rightClick() public method

public rightClick ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

rightClick() public method

public rightClick ( int x, int y ) : void
x int
y int
return void

rightClick() public method

public rightClick ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
return void

type() public method

public type ( Rectangle rect, string text ) : void
rect System.Drawing.Rectangle
text string
return void

type() public method

public type ( int x, int y, string text ) : void
x int
y int
text string
return void

type() public method

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

type() public method

public type ( string imageName, string text, double threshold = -1 ) : void
imageName string
text string
threshold double
return void

wait() public method

public wait ( string imageName, int timeout = 100, double threshold = -1 ) : Rectangle
imageName string
timeout int
threshold double
return System.Drawing.Rectangle

waitVanish() public method

public waitVanish ( string imageName, int timeout = 100, double threshold = -1 ) : void
imageName string
timeout int
threshold double
return void

Property Details

slowPlayFlag public_oe property

public bool slowPlayFlag
return bool