SetMainTitle and Focus

Posted by Bjf127 on Thu 13 Sep 2018 04:44 PM — 2 posts, 12,218 views.

#0
Hi Nick,

SetMainTitle and SetTitle are brilliant functions but there is a problem I've run into and it's mentioned on an old thread from 2013 (https://www.gammon.com.au/forum/bbshowpost.php?id=11902) that doesn't seem to have been resolved.

SetMainTitle only works while the window has focus. As soon as it loses focus, the main title reverts to 'MUSHclient'. SetTitle does not have this behavior; it retains its value whether or not the window has focus. Is there any way to retain the value of SetMainTitle regardless of window focus?

Thanks!

Version: 4.94
Copy:
SetMainTitle "Untitled"
SetTitle "Notepad"
Australia Forum Administrator #1
There may be, but I’m on holidays just now and cannot look at the source code.