Name of program in window title

Dopus, unlike any other program I use, does not display its name in its window title:

.

I use a windows macro program (KeyText) to automate various tasks and need to switch from one program to another. KeyText allows for activating program based on some or all of the wording in the window title (eg WordPerfect, FireFox). With Dopus, as the wording in the window title is only that of the directory it is currently showing, the code in KeyText needs changing all the time.

Is it possible to display the name of the Dopus program in the window title?

"KeyText can examine text on the clipboard, any text selected in the foreground window, the foreground window selection or title, the launch exe (process name) of the foreground window, or a string variable (Ask response)."

So checking that the window comes from dopus.exe should work just as well as checking for " - Directory Opus" in the title.

I would like to return to this topic. I have tried the suggestion made but it does not work. I have also tried AutoHotKey as an alternative, using the following code from that program's help file:

[code]^!m::
SetTitleMatchMode 2

IfWinExist, Directory Opus
{
WinActivate
}
else
{
Run C:\Program Files\GPSoftware\Directory Opus\dopus.exe
WinWait Directory Opus
WinActivate
}

Return[/code]

For "IfWinExist" I have tried "dopus", "Dopus", "Directory Opus", "dopus.exe and several other variants. None of which activate the lister window.

I am aware that this is a not a forum for AutoHotKey/KeyText etc but Dopus is the only program I use which does not display a name in the Window title for the program. In AutoHotKey it is possible to discover the title of a window with the following code:

WinGetTitle, Title, A MsgBox, The active window is "%Title%"

And for all the programs I have used this code on (WordPerfect, Word, Total Commander, FireFox and many more) the only program where there is no name for the program to which the window relates is Dopus. All that is displayed for Dopus is just the directory for the current pane of the lister (eg "c:\temp" or whatever it might be).

Is there a way to display the dopus program title in the window title so that it can be activated?

From a quick look at the AutoHotkey docs ( autohotkey.com/docs/commands/IfWinExist.htm ), this should work:

if WinExist("ahk_class dopus.lister")

Note that there is a space between the "if" and the "WinExist" when it is used this way.

If it doesn't work, ask for help on the AutoHotkey forum where the experts are.

Belated thank you. "if WinExist("ahk_class dopus.lister")" works just as I need.