Focus is lost

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

vnams
User
Posts: 16
Joined: Mon Apr 14, 2008 7:38 pm

Focus is lost

Post by vnams »

When I use Alt-Tab to switch from PDF-Editor to another window, and then Alt-Tab back to PDF-Editor, the editor window has lost focus and I need to click on it with a mouse. It would be nice if it kept the focus so that we could use only the keyboard.
THanks, Vilis
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Focus is lost

Post by Stefan - PDF-XChange »

Hello Vilis,

Can you please go to Help -> About and check which build of the Editor you are using.
The current latest is 5.5.313.1 and if I remember correctly this was an older issue that has already been addressed.

Regards,
Stefan
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

Hi, not OP but I have the same problem and I use 5.5 build 315.0

Thanks for such a nice software.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Focus is lost

Post by Will - Tracker Supp »

Hi Sumatroid,

Thanks for the post - I'm not seeing the same issue with the latest release. Can you please advise on the operating system that you're using? Please be sure to include the arcitechture and any installed service packs.

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

Hi thanks for the reply and sorry for the delay. I missed any message, sorry again.

I use
*Windows 8.1.
*64 bits (Celeron)

Windows 8.1 It does not have service packs, right?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Focus is lost

Post by Stefan - PDF-XChange »

Hello Sumatroid,

I am unable to reproduce the issue here on my machine, so can you please try to do a clean install of the Editor, and also check and make sure if your Windows 8.1 is up to date, and then let us know if the problem persists?

Happy holidays!
Stefan
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

Hi, sorry for the long delay, but it's that it was not that important to me. Sorry!

Recently I've downloaded 6.0 build 318.1 in the same machine, and with the default settings it still happens.

A not usual characteristic of my Windows setup that perhaps could be related to the issue is that I use "focus follows mouse", a la UNIX. But with PDF X-Change Viewer in Windows XP I had the same "focus follows mouse" behaviour and the error did not happen.

Hope it's useful, have a nice week!
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Focus is lost

Post by Will - Tracker Supp »

Hi Sumatroid,

Thanks for the info. - I'm not familiar with this feature. Is this a Windows feature that can be enabled, or is done through third party software/your mouse drivers?

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

It can be enabled natively by following the info in http://techne.alaya.net/?p=11867

Have a nice weekend!
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Focus is lost

Post by Will - Tracker Supp »

Hi Sumatroid,

Thanks for that - the Dev. That we need to talk to is off ill, so I'll pass this to him as soon as I'm able and will back to you when I know more.

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
User avatar
David.P
User
Posts: 1694
Joined: Thu Feb 28, 2008 8:16 pm

Re: Focus is lost

Post by David.P »

Hi @all, just for completeness, it should be possible to work around this problem on Windows 10 by activating this setting:

Windows 10 Tip: Scroll Inactive Windows

This is even better IMHO than the somewhat irritating "X-Mouse" aka "Active Window Tracking" aka "Focus Follows Mouse" because it does not actually activate the window under the mouse pointer (only scrolls it, if needed).

Cheers
David.P
David.P
PDF-XChange Pro
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Focus is lost

Post by Stefan - PDF-XChange »

Thanks for the suggestion David!

Cheers,
Stefan
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

Will - Tracker Supp wrote:Hi Sumatroid,

Thanks for that - the Dev. That we need to talk to is off ill, so I'll pass this to him as soon as I'm able and will back to you when I know more.

Cheers,
I hope he recovers speedily and fully. Tell him that he's making a very fine job, and that I salute his skills (and yours!) How well done is that software.

Up to now I've gone back to the old Viewer version, without having that problem. But I was already very satisfied with Viewer...

^^
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Focus is lost

Post by Will - Tracker Supp »

Hi Sumatroid,

Thanks for the post - I'm not able to reproduce this having followed the instructions in the link you sent, on a Windows 8.1 VM and on Windows 10. Is there anything else that you can think of that may be causing this? Do you have anything like AutoHotkey installed?

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

Yes, I managed to replicate the problem.

My have my own code to access particular programs (Press Win+D = go to program A) and if I press one of that keyboard shortcuts to go to program A, and if I later press Alt-Tab to return to PDF X-Change Editor, I have the problem. If I only use Alt-Tab and Alt-Tab again, the focus is OK in PDF X-Change Editor.

I don't bore you with the code of my software because only by looking at it I realized it had two #WinActivateForce instructions there ^^U. Up to now I leave it to your super skills and expertise. If do you need anything else please tell.

Cheers!

*bowing man*
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7432
Joined: Wed Mar 25, 2009 10:37 pm

Re: Focus is lost

Post by Paul - PDF-XChange »

Thanks Sumatroid,

so from your last post I am unclear as to whether you resolved the issue by removing the second instance of #WinActivateForce instructions or not.

Is the case solved now or re you still experiencing the issue?
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Sumatroid
User
Posts: 7
Joined: Fri Dec 04, 2015 1:14 pm

Re: Focus is lost

Post by Sumatroid »

Hi Paul,

no, it still does happen. I removed one of the WinActivateForce and it does still happen.

But I think I should work more on my bug report in order to help you, I have lots of keyboard shortcuts handled by Autohotkey. If you want I will improve the report, but this won't be soon.

Thank you very much!

Have a nice day!