Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > WinGetFocus

WinGetFocus

Gets the number of the CitectSCADA window that has the keyboard focus.

Syntax

WinGetFocus()

Return Value

The window number of the CitectSCADA window that has the keyboard focus. Be aware that this is not the same as the window handle, returned from the WndFind() function.

Related Functions

WndFind

Example

nCitectWin=WinGetFocus();
! Gets the number of the CitectSCADA window that has the keyboard focus

See Also

Window Functions