WinName

Returns the name of the window calling the WIL Interpreter.

Syntax:

WinName ( )

Parameters:

(none)

Returns:

(s) window name.

 

Returns the name of the window making the current call to the WIL Interpreter.

Example:

allwins = WinItemize( )
win = AskItemlist("Close window", allwins, @TAB, @SORTED, @SINGLE, @FALSE)
If win == WinName( )
   Message("Sorry", "I can't close myself")
Else
   WinClose(win)
EndIf
Exit
See Also:

WinActivate, WinExeName, WinGetActive, WinItemize, WinTitle