Method | Description | |
---|---|---|
EnumAllWindows ( ) : IEnumerable |
Enumerates all the windows on the screen.
|
|
EnumChildWindows ( |
Enumerates recursively all the child windows that belong to the specified parent window.
|
|
EnumTopLevelWindows ( ) : IEnumerable |
Enumerates all top-level windows on the screen. This function does not search child windows.
|
|
FlashWindow ( |
Flashes the specified window one time. It does not change the active state of the window. To flash the window a specified number of times, use the FlashWindowEx(IntPtr, FlashWindowFlags, uint, TimeSpan) function.
|
|
FlashWindowEx ( |
Flashes the specified window. It does not change the active state of the window. The function uses the default cursor blink rate.
|
|
FlashWindowEx ( |
Flashes the specified window. It does not change the active state of the window. The function uses the default cursor blink rate.
|
|
FlashWindowEx ( |
Flashes the specified window. It does not change the active state of the window.
|
|
GetClassName ( |
Retrieves the name of the class to which the specified window belongs.
|
|
GetForegroundWindow ( ) : |
Retrieves a handle to the foreground window (the window with which the user is currently working).
|
|
GetSystemMetrics ( SystemMetrics metric ) : int |
Retrieves the specified system metric or system configuration setting.
|
|
GetWindowPlacement ( |
Retrieves the show state and the restored, minimized, and maximized positions of the specified window.
|
|
GetWindowProcessId ( |
Retrieves the identifier of the process that created the window.
|
|
GetWindowText ( |
Gets the text of the specified window's title bar.
|
|
GetWindowThreadId ( |
Retrieves the identifier of the thread that created the specified window.
|
|
MapVirtualKey ( Keys key, TranslationTypes translation ) : uint |
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code. To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function.
|
|
MapVirtualKey ( uint key, TranslationTypes translation ) : uint |
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code. To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function.
|
|
PostMessage ( |
Places (posts) a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.
|
|
PostMessage ( |
Places (posts) a message in the message queue associated with the thread that created the specified window and returns without waiting for the thread to process the message.
|
|
SendInput ( |
Synthesizes keystrokes, mouse motions, and button clicks.
|
|
SendMessage ( |
Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.
|
|
SendMessage ( |
Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.
|
|
SetForegroundWindow ( |
Brings the thread that created the specified window into the foreground and activates the window. The window is restored if minimized. Performs no action if the window is already activated.
|
|
SetWindowPlacement ( |
Sets the show state and the restored, minimized, and maximized positions of the specified window.
|
|
SetWindowPlacement ( |
Sets the current position and size of the specified window.
|
|
SetWindowText ( |
Sets the text of the specified window's title bar.
|
|
ShowWindow ( |
Sets the specified window's show state.
|
public static EnumAllWindows ( ) : IEnumerable |
||
return | IEnumerable |
public static EnumChildWindows ( |
||
parentHandle | The parent window handle. | |
return | IEnumerable |
public static EnumTopLevelWindows ( ) : IEnumerable |
||
return | IEnumerable |
public static FlashWindow ( |
||
windowHandle | A handle to the window to be flashed. The window can be either open or minimized. | |
return | bool |
public static FlashWindowEx ( |
||
windowHandle | A handle to the window to be flashed. The window can be either opened or minimized. | |
flags | FlashWindowFlags | The flash status. |
return | void |
public static FlashWindowEx ( |
||
windowHandle | A handle to the window to be flashed. The window can be either opened or minimized. | |
flags | FlashWindowFlags | The flash status. |
count | uint | The number of times to flash the window. |
return | void |
public static FlashWindowEx ( |
||
windowHandle | A handle to the window to be flashed. The window can be either opened or minimized. | |
flags | FlashWindowFlags | The flash status. |
count | uint | The number of times to flash the window. |
timeout | System.TimeSpan | The rate at which the window is to be flashed. |
return | void |
public static GetClassName ( |
||
windowHandle | A handle to the window and, indirectly, the class to which the window belongs. | |
return | string |
public static GetForegroundWindow ( ) : |
||
return |
public static GetSystemMetrics ( SystemMetrics metric ) : int | ||
metric | SystemMetrics | The system metric or configuration setting to be retrieved. |
return | int |
public static GetWindowPlacement ( |
||
windowHandle | A handle to the window. | |
return |
public static GetWindowProcessId ( |
||
windowHandle | A handle to the window. | |
return | int |
public static GetWindowText ( |
||
windowHandle | A handle to the window containing the text. | |
return | string |
public static GetWindowThreadId ( |
||
windowHandle | A handle to the window. | |
return | int |
public static MapVirtualKey ( Keys key, TranslationTypes translation ) : uint | ||
key | Keys | /// The virtual key code for a key. How this value is interpreted depends on the value of the uMapType parameter. /// |
translation | TranslationTypes | /// The translation to be performed. The value of this parameter depends on the value of the uCode parameter. /// |
return | uint |
public static MapVirtualKey ( uint key, TranslationTypes translation ) : uint | ||
key | uint | /// The virtual key code or scan code for a key. How this value is interpreted depends on the value of the uMapType parameter. /// |
translation | TranslationTypes | /// The translation to be performed. The value of this parameter depends on the value of the uCode parameter. /// |
return | uint |
public static PostMessage ( |
||
windowHandle | A handle to the window whose window procedure is to receive the message. The following values have special meanings. | |
message | WindowsMessages | The message to be posted. |
wParam | Additional message-specific information. | |
lParam | Additional message-specific information. | |
return | void |
public static PostMessage ( |
||
windowHandle | A handle to the window whose window procedure is to receive the message. The following values have special meanings. | |
message | uint | The message to be posted. |
wParam | Additional message-specific information. | |
lParam | Additional message-specific information. | |
return | void |
public static SendInput ( |
||
inputs | An array of |
|
return | void |
public static SendMessage ( |
||
windowHandle | A handle to the window whose window procedure will receive the message. | |
message | WindowsMessages | The message to be sent. |
wParam | Additional message-specific information. | |
lParam | Additional message-specific information. | |
return |
public static SendMessage ( |
||
windowHandle | A handle to the window whose window procedure will receive the message. | |
message | uint | The message to be sent. |
wParam | Additional message-specific information. | |
lParam | Additional message-specific information. | |
return |
public static SetForegroundWindow ( |
||
windowHandle | A handle to the window that should be activated and brought to the foreground. | |
return | void |
public static SetWindowPlacement ( |
||
windowHandle | A handle to the window. | |
placement | A pointer to the |
|
return | void |
public static SetWindowPlacement ( |
||
windowHandle | A handle to the window. | |
left | int | The x-coordinate of the upper-left corner of the window. |
top | int | The y-coordinate of the upper-left corner of the window. |
height | int | The height of the window. |
width | int | The width of the window. |
return | void |
public static SetWindowText ( |
||
windowHandle | A handle to the window whose text is to be changed. | |
title | string | The new title text. |
return | void |
public static ShowWindow ( |
||
windowHandle | A handle to the window. | |
state | WindowStates | Controls how the window is to be shown. |
return | bool |