OverviewExamples
number Application.GetWndHandle ( |
) |
Returns the numeric window handle for the main patch window. To retrieve the window handle of individual screens, use Screen.GetProperties. The main window's window handle is useful when you want to perform an action on the entire application, such as minimizing, closing, etc.
Note: This action returns the window handle for the entire patch, whether a background window is visible or not.
None.
(number) The numeric window handle for the patch. If an error occurs, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.
When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions