isWindowFocused
Script::isWindowFocused
Checks if the window is focused.
Declaration
bool isWindowFocused(WindowID windowID = NTSHENGN_WINDOW_UNKNOWN);
Parameters
Name |
Type |
Description |
---|---|---|
windowID |
The window to check. By default, this window will be the main window. |
Returns
true
if the window is focused, else, returns false
.
Notes
The main window will be used if windowID
is equal to NTSHENGN_WINDOW_UNKNOWN
.