WinIsDOS

Tells whether or not a particular window is a DOS or console-type window.

Syntax:

WinIsDOS("partial-winname")

Parameters:

(s) partial-winname the initial part of, or an entire, window name.

Returns:

(i) @TRUE if the window is a DOS window.; @FALSE if it is not a DOS window.

 

Use this function to determine if the application is in DOS or Windows.

Note: "Partial-winname" is the initial part of a window name, and may be a complete window name. It is case-sensitive. You should specify enough characters so that "partial-winname" matches only one existing window. If it matches more than one window, the most recently accessed window which it matches will be used.

Example:

comspec = Environment("COMSPEC")
Run(comspec, "")
TimeDelay(1)
title= comspec
a=WinIsDos(title)
If a==@TRUE Then Message(title, "is a DOS window")
Else Message(title, "is NOT a DOS window")

See Also:

WinExeName, WinExist, WinGetActive, WinItemize, WinName, WinState, WinTitle, Partial Window Names, IntControl 46