Page 1 of 1
bringing Zeus to foreground when a file is opened
Posted: Fri May 17, 2019 7:19 pm
by donaldrflory
Loving this editor. Minor thing. When I open a new file by double clicking in some other APP like Windows explorer or ZTree, the Zeus window remains in the background. Of course it is trivial to click on the Zeus window to bring it to the front. If there is a way to set Zeus to make itself the foreground window automaticallly when a new file was opened I would love to know it. As it stands now, the Zeus icon on the status bar starts flashing but the Zeus window remains in the background. This is very polite and civilized behavior but not what I would prefer the way I tend to work.
Re: bringing Zeus to foreground when a file is opened
Posted: Fri May 17, 2019 11:43 pm
by jussij
When I open a new file by double clicking in some other APP like Windows explorer or ZTree, the Zeus window remains in the background.
I will need to do some investigation into this to see if this can be fixed.
As it stands now, the Zeus icon on the status bar starts flashing but the Zeus window remains in the background.
FYI Zeus does already contain lots of 'bring to foreground' code, but over the years Microsoft has change Windows itself to stop that sort of code working.
I think what happened is that some time ago, unscrupulous adware software developers abused this feature by making their adware continuously pop up making Windows almost unusable.
To stop this Microsoft ended up severely limiting the power of that 'bring to foreground' Windows API.
But there are still ways around this so with some luck a fix for this might still be possible.This is very polite and civilized behavior but not what I would prefer the way I tend to work.
I can understand how this would become annoying, so hopefully a fix is possible.
Check this space in the next week or two for feedback.
Thanks for taking the time to post your feedback.
Cheers Jussi
Re: bringing Zeus to foreground when a file is opened
Posted: Sat May 18, 2019 12:05 am
by jussij
As a simple test using Windows 10 and I set up Windows Explorer so that all
.cpp files would be opened in Zeus.
I could see the change take effect as all the
.cpp files took on the Zeus icon inside Explorer.
However, when I double click on any of these files they always brought Zeus to the foreground.
Do you have simple way to replicate this using Windows explorer 
In any case it occurred to me there might already be one possible fix

In the registry I have this setting for the Zeus shell command:
Code: Select all
[HKEY_CLASSES_ROOT\Applications\zeus.exe\shell\open\command]
@="\"C:\\Users\\<userID>\\AppData\\Local\\Programs\\Zeus\\zeus.exe\" \"%1\""
You could try adding in the
-f Zeus command line option to that command as follows.
Code: Select all
[HKEY_CLASSES_ROOT\Applications\zeus.exe\shell\open\command]
@="\"C:\\Users\\<userID>\\AppData\\Local\\Programs\\Zeus\\zeus.exe\" -f \"%1\""
Note: The
<userID> in the text above will need to be changed to match your user id. Also make sure that the final string is the actual Zeus installation folder.
That
-f option means Zeus will try to force itself to the foreground.
Cheers Jussi
Re: bringing Zeus to foreground when a file is opened
Posted: Tue May 21, 2019 12:07 pm
by jussij
This issue has been replicated on a Windows 7 machine and a possible fix is being worked on.
When a working fix has been found a new beta release will be made available a note will be posted to this thread with a download link to that beta version..
Cheers Jussi
Re: bringing Zeus to foreground when a file is opened
Posted: Sat Sep 07, 2019 1:06 am
by jussij
This issue should be fixed in the latest Zeus release found here:
https://www.zeusedit.com/download.htmlTo upgrade to this local version follow the instructions found here:
viewtopic.php?f=5&t=2719Cheers Jussi