C# Class PsHandler.Custom.Methods

显示文件 Open project: kampiuceris/PsHandler

Public Methods

Method Description
AverageColor ( Bmp bmp, Rectangle r, double &avgRed, double &avgGreen, double &avgBlue ) : void
CheckButtonAndClick ( Bmp bmp, PokerStarsButton button, IntPtr handle ) : void
CheckIfPointIsInArea ( System point, Rectangle area ) : bool
CheckImBackButtonAndClick ( Bmp bmp, PokerStarsThemeTable pokerStarsThemeTable, IntPtr handle ) : void
CompareColors ( double r0, double g0, double b0, double r1, double g1, double b1, double maxDifferenceR, double maxDifferenceG, double maxDifferenceB ) : bool
DisplayBitmap ( Bitmap bitmap, bool dialog = false ) : void
DisplayException ( Exception e, Window owner, WindowStartupLocation windowStartupLocation ) : void
GetClipboardText ( ) : string
GetEmbeddedResourceBitmap ( string path ) : Bitmap
GetRandomNumber ( int min, int max ) : int
GetWindowsBorderThicknessLeftTopRightBottom ( ) : int[]
IsMinimized ( IntPtr handle ) : bool
LeftMouseClick ( IntPtr handle, int x, int y, bool checkIfMinimized = false ) : void
LeftMouseClickMiddle ( IntPtr handle ) : void
LeftMouseClickRelativeScaled ( IntPtr handle, double x, double y, bool checkIfMinimized = false ) : void
LeftMouseDoubleClick ( IntPtr handle, int x, int y ) : void
MouseEnterLeftMouseClickMiddleMouseLeave ( IntPtr handle ) : void
MouseEnterLeftMouseClickMouseLeave ( IntPtr handle, int x, int y ) : void
ReadSeek ( string path, long seek ) : string
SetClipboardText ( string text ) : void
UiInvoke ( System.Action action, bool forceInvoke = false, DispatcherPriority dispatcherPriority = DispatcherPriority.Normal ) : void

Method Details

AverageColor() public static method

public static AverageColor ( Bmp bmp, Rectangle r, double &avgRed, double &avgGreen, double &avgBlue ) : void
bmp Bmp
r System.Drawing.Rectangle
avgRed double
avgGreen double
avgBlue double
return void

CheckButtonAndClick() public static method

public static CheckButtonAndClick ( Bmp bmp, PokerStarsButton button, IntPtr handle ) : void
bmp Bmp
button PokerStarsButton
handle System.IntPtr
return void

CheckIfPointIsInArea() public static method

public static CheckIfPointIsInArea ( System point, Rectangle area ) : bool
point System
area System.Drawing.Rectangle
return bool

CheckImBackButtonAndClick() public static method

public static CheckImBackButtonAndClick ( Bmp bmp, PokerStarsThemeTable pokerStarsThemeTable, IntPtr handle ) : void
bmp Bmp
pokerStarsThemeTable PokerStarsThemeTable
handle System.IntPtr
return void

CompareColors() public static method

public static CompareColors ( double r0, double g0, double b0, double r1, double g1, double b1, double maxDifferenceR, double maxDifferenceG, double maxDifferenceB ) : bool
r0 double
g0 double
b0 double
r1 double
g1 double
b1 double
maxDifferenceR double
maxDifferenceG double
maxDifferenceB double
return bool

DisplayBitmap() public static method

public static DisplayBitmap ( Bitmap bitmap, bool dialog = false ) : void
bitmap System.Drawing.Bitmap
dialog bool
return void

DisplayException() public static method

public static DisplayException ( Exception e, Window owner, WindowStartupLocation windowStartupLocation ) : void
e System.Exception
owner System.Windows.Window
windowStartupLocation WindowStartupLocation
return void

GetClipboardText() public static method

public static GetClipboardText ( ) : string
return string

GetEmbeddedResourceBitmap() public static method

public static GetEmbeddedResourceBitmap ( string path ) : Bitmap
path string
return System.Drawing.Bitmap

GetRandomNumber() public static method

public static GetRandomNumber ( int min, int max ) : int
min int
max int
return int

GetWindowsBorderThicknessLeftTopRightBottom() public static method

public static GetWindowsBorderThicknessLeftTopRightBottom ( ) : int[]
return int[]

IsMinimized() public static method

public static IsMinimized ( IntPtr handle ) : bool
handle System.IntPtr
return bool

LeftMouseClick() public static method

public static LeftMouseClick ( IntPtr handle, int x, int y, bool checkIfMinimized = false ) : void
handle System.IntPtr
x int
y int
checkIfMinimized bool
return void

LeftMouseClickMiddle() public static method

public static LeftMouseClickMiddle ( IntPtr handle ) : void
handle System.IntPtr
return void

LeftMouseClickRelativeScaled() public static method

public static LeftMouseClickRelativeScaled ( IntPtr handle, double x, double y, bool checkIfMinimized = false ) : void
handle System.IntPtr
x double
y double
checkIfMinimized bool
return void

LeftMouseDoubleClick() public static method

public static LeftMouseDoubleClick ( IntPtr handle, int x, int y ) : void
handle System.IntPtr
x int
y int
return void

MouseEnterLeftMouseClickMiddleMouseLeave() public static method

public static MouseEnterLeftMouseClickMiddleMouseLeave ( IntPtr handle ) : void
handle System.IntPtr
return void

MouseEnterLeftMouseClickMouseLeave() public static method

public static MouseEnterLeftMouseClickMouseLeave ( IntPtr handle, int x, int y ) : void
handle System.IntPtr
x int
y int
return void

ReadSeek() public static method

public static ReadSeek ( string path, long seek ) : string
path string
seek long
return string

SetClipboardText() public static method

public static SetClipboardText ( string text ) : void
text string
return void

UiInvoke() public static method

public static UiInvoke ( System.Action action, bool forceInvoke = false, DispatcherPriority dispatcherPriority = DispatcherPriority.Normal ) : void
action System.Action
forceInvoke bool
dispatcherPriority DispatcherPriority
return void