Phantom Documentation

[Help Home] [Phantom Home]
GetForegroundWindow

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



 


Copyright 2000-2011 Phantom Automated Solutions