HotkeyNet: the next generation
REFERENCE
GetForegroundWindow

Gets the handle of the foreground window.

Syntax

GetForegroundWindow()

Parameters

None.


Return value

Returns a window handle.


Remarks

Calls the operating system function GetForegroundWindow.


Example

Function F1()
{
   var handle = GetForegroundWindow();
   print ( handle );
}


Related topics

SetForegroundWindow


This page was last revised on June 14, 2009
Copyright © 2009 HotkeyNet Software