C# Class PsHandler.Custom.Methods

Afficher le fichier Open project: kampiuceris/PsHandler

Méthodes publiques

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

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
Résultat void

CheckButtonAndClick() public static méthode

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

CheckIfPointIsInArea() public static méthode

public static CheckIfPointIsInArea ( System point, Rectangle area ) : bool
point System
area System.Drawing.Rectangle
Résultat bool

CheckImBackButtonAndClick() public static méthode

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

CompareColors() public static méthode

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
Résultat bool

DisplayBitmap() public static méthode

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

DisplayException() public static méthode

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

GetClipboardText() public static méthode

public static GetClipboardText ( ) : string
Résultat string

GetEmbeddedResourceBitmap() public static méthode

public static GetEmbeddedResourceBitmap ( string path ) : Bitmap
path string
Résultat System.Drawing.Bitmap

GetRandomNumber() public static méthode

public static GetRandomNumber ( int min, int max ) : int
min int
max int
Résultat int

GetWindowsBorderThicknessLeftTopRightBottom() public static méthode

public static GetWindowsBorderThicknessLeftTopRightBottom ( ) : int[]
Résultat int[]

IsMinimized() public static méthode

public static IsMinimized ( IntPtr handle ) : bool
handle System.IntPtr
Résultat bool

LeftMouseClick() public static méthode

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

LeftMouseClickMiddle() public static méthode

public static LeftMouseClickMiddle ( IntPtr handle ) : void
handle System.IntPtr
Résultat void

LeftMouseClickRelativeScaled() public static méthode

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

LeftMouseDoubleClick() public static méthode

public static LeftMouseDoubleClick ( IntPtr handle, int x, int y ) : void
handle System.IntPtr
x int
y int
Résultat void

MouseEnterLeftMouseClickMiddleMouseLeave() public static méthode

public static MouseEnterLeftMouseClickMiddleMouseLeave ( IntPtr handle ) : void
handle System.IntPtr
Résultat void

MouseEnterLeftMouseClickMouseLeave() public static méthode

public static MouseEnterLeftMouseClickMouseLeave ( IntPtr handle, int x, int y ) : void
handle System.IntPtr
x int
y int
Résultat void

ReadSeek() public static méthode

public static ReadSeek ( string path, long seek ) : string
path string
seek long
Résultat string

SetClipboardText() public static méthode

public static SetClipboardText ( string text ) : void
text string
Résultat void

UiInvoke() public static méthode

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