Window Functions
WND_FROMPOINTReturns handle to the window that contains specified point. The default value of the parameter bool_is_ancestor_window is FALSE. window_vlaue WND_FROMPOINT( x, y, [bool_is_ancestor_window] ) Example: %=WND_FROMPOINT( mousecur_x, mousecur_y )% Retrieves the window under the current mouse position WND_GETTEXTRetrieves the text of the specified window. string WND_GETTEXT( window_value ) Example: %=WND_GETTEXT( WND_FROMPOINT( mousecur_x, mousecur_y ) )% Retrieves the window value to the window that contains mouse pointer, then returns the window text. WND_GETCLASSRetrieves the class name of the specified window. string WND_GETCLASS( window_value ) Example: %=WND_GETCLASS( WND_FROMPOINT( mousecur_x, mousecur_y ) )% Retrieves the window value to the window that contains mouse pointer, then returns the window class name. WND_SETTEXTChanges the text of the specified window. boolean WND_SETTEXT( window_value, string ) Example: %=WND_SETTEXT( WND_FROMPOINT( mousecur_x, mousecur_y ), "Hello")% Changes the window that contaiins mouse pointer to the string "Hello". WND_ISEXISTEDReturns TRUE if the window does exist. boolean WND_ISEXISTED( window_handle_value ) WND_ISENABLEDReturns TRUE if the window is enabled. boolean WND_ISENABLED( window_handle_value ) WND_ISICONReturns TRUE if the window is minimized. boolean WND_ISICON( window_handle_value ) WND_ISZOOMReturns TRUE if the window is maximized. boolean WND_ISZOOM( window_handle_value ) WND_ISHUNGReturns TRUE if the window is not responding. boolean WND_ISHUNG( window_handle_value ) WND_FIND Finds window by the title and class name, and returns the window handle value. The title and class_name can be empty for ignoring the window title or class name checking.
window_value WND_FIND( window_title, class_name ) Example: %=WND_FIND( "", "Notepad" )% Returns the first Notepad window which has the class name "Notepad", and does not care the window title. WND_COUNTCounts the number of windows which has the specified title and class name. The title and class_name can be empty for ignoring the window title or class name checking. number WND_COUNT( window_title, class_name ) Example:
%=WND_COUNT( "", "Notepad" )% Returns the number of Notepad windows which have the class name "Notepad". | |
|