How i can add "Browser <> Fullscreen" keyboard switch?

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
danmer
Posts: 7
Joined: Wed Mar 23, 2011 1:53 pm

How i can add "Browser <> Fullscreen" keyboard switch?

Post by danmer »

How i can add only "Browser <> Fullscreen" switch for double-click? Or how DISABLE "Viewer" mode forever ??
Mixer
Banned
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by Mixer »

You can adjust shortcuts for mouse and Enter in Options->Keyboard/Mouse->Switching modes by choosing list item "Browser<>Fullscreen|Viewer<>Fullscreen". This way while working in Browser you'll be switching only to fullscreen and back. But I'm afraid there's no way to force XnView to open file received as command line argument straight in Browser (i.e. by trying to open image with doubleclick or pressing Enter in Windows Explorer). Maybe if XnView had some switch like "-browser" it would be possible to change open action in registry to "xnview.exe -browser" "%1" for associated picture types. But currently you stuck with Viewer FOREVER.
Mixer
Banned
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by Mixer »

To my surprise, XnView actually has switch "-browser". It only doesn't start picture in browser mode from command line like

Code: Select all

X:\XnView\xnview.exe -browser X:\MyPicture.img
All switches can be viewed from Info->Command line help... menu.

And none of parameters except for "%1" (http://windowsitpro.com/article/server- ... ile--13443) do work as template for getting command line argument with "open" command in registry.
Mixer
Banned
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by Mixer »

Sorry for third post in a row. I can combine them all in one if necessary. I just thought what if user requested to be notified by email about the answers.

In modern versions of Windows, if you want to use only path to file from command line argument, you have to use %W parameter.
I tried to change it in general for xnview.exe in registry in Windows 10 x64 to get this effect when using "Open with..." menu, but it didn't work for some reason.
But you can change default "open" command for each associated with XnView type of file (if you don't afraid of long manual work). To change it, for example, for .jpg files, you need to change default value of registry key [HKEY_CLASSES_ROOT\XnView.jpg\shell\open\command] or [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XnView.jpg\shell\open\command] by replacing %1 with %W in string.
Then opening .jpg files from Windows Explorer will start XnView in Browser mode opened to directory where .jpg file resides. But this file won't be selected.

P.S. My N-th sense whispers to me that this question might be actually about XnView MP even though it is not explicitly stated.
danmer
Posts: 7
Joined: Wed Mar 23, 2011 1:53 pm

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by danmer »

Thank you for your posts. But your solution not work. (And my too )))
I try change registry key - no results. If i change
[HKEY_CLASSES_ROOT\XnViewMP.jpg\shell\open\command] "\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\" \"%W\""
appears only a message"Image not found" . (((

i try to make script with Autohotkey, but no rusults too.
Unfortunately, XnViewMP behaves differently when you open it by clicking on the picture or on next click on any thumbnail in the program.

P.S. Yes, my question about XnViewMP )))
I used long time oldest AcdSee 2.4, and accustomed to CLEAR usability and simple software-logic ))
Last edited by danmer on Mon May 09, 2016 8:18 pm, edited 2 times in total.
Mixer
Banned
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by Mixer »

danmer wrote:Thank you for your posts. But your solution not work. (And my too )))
I try change registry key - no results. If i change
[HKEY_CLASSES_ROOT\XnViewMP.jpg\shell\open\command] "\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\" \"%W\""
appears only a message"Image not found" . (((

i try to make script with Autohotkey, but no rusults too.
Unfortunately, XnViewMP behaves differently when you open it by clicking on the picture or on next click on any thumbnail in the program.

P.S. Yes, my question about XnViewMP )))
Let me hug you tight! Well, for Xnview Classic it has worked on my system. And let your "P.S." be a reproach for all disbelievers in power of my intuition.
danmer
Posts: 7
Joined: Wed Mar 23, 2011 1:53 pm

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by danmer »

:D

Unfortunately, English is not my native language and I can not clearly explain my problem))
I would like to:
Double-click on the image icon (in Windows Explorer) opens it in XnViewMP fullscreen and double click on it in the fullscreen mode- opens the browser view of XnViewMP.
And conversely, double click on the THUMBNAILS in browser view of XnViewMP opens it in XnViewMP fullscreen.

Sorry for the chaotic explanations. :D
Maybe somebody will understand me)))
Erixx haxx
Posts: 330
Joined: Tue Jul 28, 2015 10:37 am

Re: How i can add "Browser <> Fullscreen" keyboard switch?

Post by Erixx haxx »

Hello:

Sadly this can't be done yet in xnviewmp. I've put in a request a while back.

See Here if this is what you mean:
http://newsgroup.xnview.com/viewtopic.php?f=60&t=32610
Post Reply