C# Class SleepHunter.Macro.WindowAutomator

Afficher le fichier Open project: ewrogers/SleepHunter4 Class Usage Examples

Méthodes publiques

Свойство Type Description
MK_LBUTTON uint
MK_MBUTTON uint
MK_RBUTTON uint
MK_XBUTTON1 uint
MK_XUBTTON2 uint
VK_ESCAPE byte
VK_SHIFT byte
VK_SPACE byte
VK_TILDE byte

Méthodes publiques

Méthode Description
SendCloseWindow ( IntPtr windowHandle ) : void
SendKeyChar ( IntPtr windowHandle, byte virtualKey ) : void
SendKeyChar ( IntPtr windowHandle, char key ) : void
SendKeyDown ( IntPtr windowHandle, byte virtualKey ) : void
SendKeyDown ( IntPtr windowHandle, char key ) : void
SendKeyUp ( IntPtr windowHandle, byte virtualKey ) : void
SendKeyUp ( IntPtr windowHandle, char key ) : void
SendKeystroke ( IntPtr windowHandle, byte virtualKey, bool includeCharMessage = false ) : void
SendKeystroke ( IntPtr windowHandle, char key, bool includeCharMessage = false ) : void
SendMouseClick ( IntPtr windowHandle, MouseButton mouseButton, int x, int y, bool moveFirst = true ) : void
SendMouseDown ( IntPtr windowHandle, MouseButton mouseButton, int x, int y ) : void
SendMouseMove ( IntPtr windowHandle, int x, int y ) : void
SendMouseUp ( IntPtr windowHandle, MouseButton mouseButton, int x, int y ) : void
SendShiftKeyDown ( IntPtr windowHandle ) : void
SendShiftKeyUp ( IntPtr windowHandle ) : void

Private Methods

Méthode Description
GetScanCode ( byte virtualKey ) : byte
GetScanCode ( char c ) : byte
GetVirtualKey ( char c ) : byte
GetVirtualKey ( char c, ModifierKeys &modifiers ) : byte
MakeXYParameter ( Point pt ) : uint

Method Details

SendCloseWindow() public static méthode

public static SendCloseWindow ( IntPtr windowHandle ) : void
windowHandle System.IntPtr
Résultat void

SendKeyChar() public static méthode

public static SendKeyChar ( IntPtr windowHandle, byte virtualKey ) : void
windowHandle System.IntPtr
virtualKey byte
Résultat void

SendKeyChar() public static méthode

public static SendKeyChar ( IntPtr windowHandle, char key ) : void
windowHandle System.IntPtr
key char
Résultat void

SendKeyDown() public static méthode

public static SendKeyDown ( IntPtr windowHandle, byte virtualKey ) : void
windowHandle System.IntPtr
virtualKey byte
Résultat void

SendKeyDown() public static méthode

public static SendKeyDown ( IntPtr windowHandle, char key ) : void
windowHandle System.IntPtr
key char
Résultat void

SendKeyUp() public static méthode

public static SendKeyUp ( IntPtr windowHandle, byte virtualKey ) : void
windowHandle System.IntPtr
virtualKey byte
Résultat void

SendKeyUp() public static méthode

public static SendKeyUp ( IntPtr windowHandle, char key ) : void
windowHandle System.IntPtr
key char
Résultat void

SendKeystroke() public static méthode

public static SendKeystroke ( IntPtr windowHandle, byte virtualKey, bool includeCharMessage = false ) : void
windowHandle System.IntPtr
virtualKey byte
includeCharMessage bool
Résultat void

SendKeystroke() public static méthode

public static SendKeystroke ( IntPtr windowHandle, char key, bool includeCharMessage = false ) : void
windowHandle System.IntPtr
key char
includeCharMessage bool
Résultat void

SendMouseClick() public static méthode

public static SendMouseClick ( IntPtr windowHandle, MouseButton mouseButton, int x, int y, bool moveFirst = true ) : void
windowHandle System.IntPtr
mouseButton MouseButton
x int
y int
moveFirst bool
Résultat void

SendMouseDown() public static méthode

public static SendMouseDown ( IntPtr windowHandle, MouseButton mouseButton, int x, int y ) : void
windowHandle System.IntPtr
mouseButton MouseButton
x int
y int
Résultat void

SendMouseMove() public static méthode

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

SendMouseUp() public static méthode

public static SendMouseUp ( IntPtr windowHandle, MouseButton mouseButton, int x, int y ) : void
windowHandle System.IntPtr
mouseButton MouseButton
x int
y int
Résultat void

SendShiftKeyDown() public static méthode

public static SendShiftKeyDown ( IntPtr windowHandle ) : void
windowHandle System.IntPtr
Résultat void

SendShiftKeyUp() public static méthode

public static SendShiftKeyUp ( IntPtr windowHandle ) : void
windowHandle System.IntPtr
Résultat void

Property Details

MK_LBUTTON public_oe static_oe property

public static uint MK_LBUTTON
Résultat uint

MK_MBUTTON public_oe static_oe property

public static uint MK_MBUTTON
Résultat uint

MK_RBUTTON public_oe static_oe property

public static uint MK_RBUTTON
Résultat uint

MK_XBUTTON1 public_oe static_oe property

public static uint MK_XBUTTON1
Résultat uint

MK_XUBTTON2 public_oe static_oe property

public static uint MK_XUBTTON2
Résultat uint

VK_ESCAPE public_oe static_oe property

public static byte VK_ESCAPE
Résultat byte

VK_SHIFT public_oe static_oe property

public static byte VK_SHIFT
Résultat byte

VK_SPACE public_oe static_oe property

public static byte VK_SPACE
Résultat byte

VK_TILDE public_oe static_oe property

public static byte VK_TILDE
Résultat byte