C# Class SukuSuku.UI

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

Méthodes publiques

Свойство Type Description
slowPlayFlag bool

Méthodes publiques

Méthode 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

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

Method Details

HighlightPoint() public méthode

public HighlightPoint ( int x, int y ) : void
x int
y int
Résultat void

UI() public méthode

public UI ( MainForm owner ) : System
owner MainForm
Résultat System

capture() public méthode

public capture ( Rectangle rect, string imageName = null ) : string
rect System.Drawing.Rectangle
imageName string
Résultat string

capture() public méthode

public capture ( int x, int y, int w, int h, string imageName = null ) : string
x int
y int
w int
h int
imageName string
Résultat string

click() public méthode

public click ( int x, int y, MouseEventFlags flg1, MouseEventFlags flg2, int cnt ) : void
x int
y int
flg1 MouseEventFlags
flg2 MouseEventFlags
cnt int
Résultat void

click() public méthode

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

doubleClick() public méthode

public doubleClick ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

doubleClick() public méthode

public doubleClick ( int x, int y ) : void
x int
y int
Résultat void

doubleClick() public méthode

public doubleClick ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
Résultat void

drag() public méthode

public drag ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

drag() public méthode

public drag ( int x, int y ) : void
x int
y int
Résultat void

drag() public méthode

public drag ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
Résultat void

dragAndDrop() public méthode

public dragAndDrop ( Rectangle rect1, Rectangle rect2 ) : void
rect1 System.Drawing.Rectangle
rect2 System.Drawing.Rectangle
Résultat void

dragAndDrop() public méthode

public dragAndDrop ( int x1, int y1, int x2, int y2 ) : void
x1 int
y1 int
x2 int
y2 int
Résultat void

dragAndDrop() public méthode

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

drop() public méthode

public drop ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

drop() public méthode

public drop ( int x, int y ) : void
x int
y int
Résultat void

drop() public méthode

public drop ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
Résultat void

exist() public méthode

public exist ( string imageName, double threshold = -1 ) : bool
imageName string
threshold double
Résultat bool

find() public méthode

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

leftClick() public méthode

public leftClick ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

leftClick() public méthode

public leftClick ( int x, int y ) : void
x int
y int
Résultat void

leftClick() public méthode

public leftClick ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
Résultat void

messageBox() public méthode

public messageBox ( string text ) : void
text string
Résultat void

mouseMove() public méthode

public mouseMove ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

mouseMove() public méthode

public mouseMove ( int x, int y ) : void
x int
y int
Résultat void

mouseMove() public méthode

public mouseMove ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
Résultat void

paste() public méthode

public paste ( Rectangle rect, string text ) : void
rect System.Drawing.Rectangle
text string
Résultat void

paste() public méthode

public paste ( int x, int y, string text ) : void
x int
y int
text string
Résultat void

paste() public méthode

public paste ( string text ) : void
text string
Résultat void

paste() public méthode

public paste ( string imageName, string text, double threshold = -1 ) : void
imageName string
text string
threshold double
Résultat void

rightClick() public méthode

public rightClick ( Rectangle rect ) : void
rect System.Drawing.Rectangle
Résultat void

rightClick() public méthode

public rightClick ( int x, int y ) : void
x int
y int
Résultat void

rightClick() public méthode

public rightClick ( string imageName, double threshold = -1 ) : void
imageName string
threshold double
Résultat void

type() public méthode

public type ( Rectangle rect, string text ) : void
rect System.Drawing.Rectangle
text string
Résultat void

type() public méthode

public type ( int x, int y, string text ) : void
x int
y int
text string
Résultat void

type() public méthode

public type ( string text ) : void
text string
Résultat void

type() public méthode

public type ( string imageName, string text, double threshold = -1 ) : void
imageName string
text string
threshold double
Résultat void

wait() public méthode

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

waitVanish() public méthode

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

Property Details

slowPlayFlag public_oe property

public bool slowPlayFlag
Résultat bool