bringing Zeus to foreground when a file is opened

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
donaldrflory
Posts: 1
Joined: Fri May 17, 2019 7:12 pm

bringing Zeus to foreground when a file is opened

Post by donaldrflory » Fri May 17, 2019 7:19 pm

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.

jussij
Site Admin
Posts: 2442
Joined: Fri Aug 13, 2004 5:10 pm

Re: bringing Zeus to foreground when a file is opened

Post by jussij » Fri May 17, 2019 11:43 pm

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

jussij
Site Admin
Posts: 2442
Joined: Fri Aug 13, 2004 5:10 pm

Re: bringing Zeus to foreground when a file is opened

Post by jussij » Sat May 18, 2019 12:05 am

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

jussij
Site Admin
Posts: 2442
Joined: Fri Aug 13, 2004 5:10 pm

Re: bringing Zeus to foreground when a file is opened

Post by jussij » Tue May 21, 2019 12:07 pm

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: Pavlosdia and 1 guest