Mouse buttons 4 & 5 for navigation

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

Post Reply
whismerhill
Posts: 27
Joined: Sun Nov 14, 2010 4:47 am
Location: France.

Mouse buttons 4 & 5 for navigation

Post by whismerhill »

as is the case with browsers back/forward functions, Xnview allows the use of mouse buttons 4 & 5 to navigate between next & previous images
In XnviewMP it doesn't work, I'd like that functionality to be restored if that's possible.
thanks for reading.

De la même façon que pour les navigateurs, avec les fonctions précédent/suivant, Xnview permet l'utilisation des boutons 4 & 5 d'une souris pour naviguer entre les images suivantes & précédentes.
Dans XnviewMP cela ne fonctionne pas, j'aimerais que cette fonctionnalité sois restaurée si cela est possible.
merci d'avance.


PS: After some more thinking, I think I posted this in the wrong category , therefore I "moved" it there, (delete & recreate).
ShrapNull
Posts: 17
Joined: Sat Jan 28, 2012 4:31 pm

Re: mouse button 4 & 5 for navigation

Post by ShrapNull »

I know this thread is old, but I have found a solution in a small autohotkey script I wrote. For anyone who doesn't know about autohotkey, it is very easy to use.

Create a new autohotkey script, then right click it & edit the script. Paste the following 3 lines at the bottom and save. Then double click on the file.

Code: Select all

#IfWinActive ahk_class XmainClass 
XButton1::PostMessage, 0x111, 335, 0, , XnView
XButton2::PostMessage, 0x111, 336, 0, , XnView

That is all. Please let me know if this helps you.

You can download autohotkey from http://www.autohotkey.com/download/ - the first link for autohotkey_L is fine.
whismerhill
Posts: 27
Joined: Sun Nov 14, 2010 4:47 am
Location: France.

Re: mouse button 4 & 5 for navigation

Post by whismerhill »

awesome !
I already use autohotkey in fact
never thought about combining it with Xnview though

so thanks a lot, (although I really hope this gets implemented directly in xnviewmp at some point in time)
User avatar
xnview
Author of XnView
Posts: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: mouse button 4 & 5 for navigation

Post by xnview »

Please check XnViewMP 0.48
Pierre.
User avatar
RGhost
Posts: 47
Joined: Sun Mar 30, 2008 10:51 am
Location: Moscow
Contact:

Re: mouse button 4 & 5 for navigation

Post by RGhost »

Works well. Thank you for this one!
Royal Ghost | http://veda3d.com
User avatar
Sirio
Posts: 128
Joined: Tue Oct 13, 2015 3:22 pm

Re: mouse button 4 & 5 for navigation

Post by Sirio »

I think that the button 4 and 5 of the mouse should be more used to navigate like the buttons Back - Forward of XnViewMP.
Is it possible to make it possible?
Clipboard 1.png
Clipboard 1.png (8.64 KiB) Viewed 2896 times
file.jpg
file.jpg (37.49 KiB) Viewed 2896 times
Sirio
Sched
Posts: 14
Joined: Thu Oct 20, 2016 3:28 pm

Re: mouse button 4 & 5 for navigation

Post by Sched »

+1 good idea!
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: mouse button 4 & 5 for navigation

Post by helmut »

Sirio wrote:I think that the button 4 and 5 of the mouse should be more used to navigate like the buttons Back - Forward of XnViewMP.
Is it possible to make it possible?
I just tried this out in XnView MP 0.84 with a Logitech M510 on Windows 10:
In Image view mode and button 4 (=Previous image) and button 5 (=Next image) work for me like a charm. Same applies for scroll wheel left (=Previous image)/right (=Next image).

Do I get something wrong? Don't the buttons 4 & 5 work for you?
tboy
Posts: 99
Joined: Wed Jan 26, 2005 11:44 pm

Re: mouse button 4 & 5 for navigation

Post by tboy »

@whismerhill:

Try X-Mouse Button Control

It's an excellent free program for mouse buttons customization.
Allows to use different buttons settings for different applications.
Last edited by tboy on Thu Feb 02, 2017 8:07 pm, edited 1 time in total.
User avatar
Sirio
Posts: 128
Joined: Tue Oct 13, 2015 3:22 pm

Re: Mouse buttons 4 & 5 for navigation

Post by Sirio »

Yes, in Viewer mode, for me too, it works perfectly as previous/next file.
What I am saying is that in Browser mode, the previous/next file don't have sense. Then I propose that in Browser mode the button 4 &5 of the mouse get the same function that they have in the most cases in other software: Back - Forward in the navigation.
History1.gif
History1.gif (2.38 KiB) Viewed 2872 times
Firefox.png
Firefox.png (6.13 KiB) Viewed 2872 times
01.jpg
01.jpg (7.28 KiB) Viewed 2872 times
And the best solution could be the possibility to select the function (here a simulation):
XnViewMP-Mouse.jpg
Thanks whismerhill for the X-Mouse Button Control, I will try it.
Sirio
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Mouse buttons 4 & 5 for navigation

Post by helmut »

Sirio wrote:...Then I propose that in Browser mode the button 4 &5 of the mouse get the same function that they have in the most cases in other software: Back - Forward in the navigation. ...
Ah, now I fiinally understood what you mean: In XnView browser buttons 4 / 5 are assigned to back/forward in the history of browsed directories (and not previous/next image in the current folder). This makes much sense.

Notes:
- From what I can see, currently mouse buttons 4 & 5 do nothing in browser mode.
- Does Previous/Next file in XnView browser make sense at all?
User avatar
Sirio
Posts: 128
Joined: Tue Oct 13, 2015 3:22 pm

Re: Mouse buttons 4 & 5 for navigation

Post by Sirio »

:D Aaaaah
No, Previous/Next file in XnView browser mode don't make sense at all. In view mode, yes, but not in browser mode.
Therefore, is better assign them the back/forward function in the history of browsed directories. (As you better said)
Thank you :D
Sirio
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Mouse buttons 4 & 5 for navigation

Post by helmut »

Sirio wrote::D Aaaaah
No, Previous/Next file in XnView browser mode don't make sense at all. In view mode, yes, but not in browser mode.
Therefore, is better assign them the back/forward function in the history of browsed directories. (As you better said)
Thank you :D
:D
dezdem
Posts: 6
Joined: Sun Jul 16, 2017 10:17 am

Re: Mouse buttons 4 & 5 for navigation

Post by dezdem »

i wish i was able to bind cmd_historyPrev & cmd_historyNext on mouse4 & 5
dezdem
Posts: 6
Joined: Sun Jul 16, 2017 10:17 am

Re: Mouse buttons 4 & 5 for navigation

Post by dezdem »

dezdem wrote: Sun Jul 16, 2017 10:19 am i wish i was able to bind cmd_historyPrev & cmd_historyNext on mouse4 & 5
up :(
Post Reply