window GetForegroundWindow()
Return Type: window
Parameters: none
Description:
This function returns a window representing the top-most window that is
in the foreground.
Example
Code |
1 >>System("c:\\windows\\system32\\notepad.exe");
2 >>window
w = GetForegroundWindow();
3 >>disp("Tag: " + w.Tag + "; Class: "
+ w.Class);
Tag: Untitled - Notepad; Class: Notepad |