4th (Forward) and 5th (Back) button issues with Windows Explorer

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
AlexM
New User
Posts: 5
Joined: Tue Mar 26, 2019 7:01 pm

4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by AlexM »

XMBC Version: 2.18.5
Windows Version: Windows 10
Mouse Information (brand/model): Kensington pro fit wireless mid size
Computer Information: Dell Precision Laptop 5510
Did the problem occur after an upgrade of XMBC?: Yes
Did the problem occur after a Windows update/upgrade?: Not sure
How long have you used XMBC?: More than 7 years, I believe
What language and keyboard layout do you use in Windows?: US, qwerty

Clear description of the problem:With the 4th button mapped as Forward and 5th button mapped as Back (as I always used the X-Mouse for and honestly the reason I found and kept this application) the issue is that in Windows Explorer the function only works on the first click and then it does not unless I move the mouse slightly within the open WE window. An then the next try would also not work unless I move the mouse again. This issue is only with Windows Explorer (the windows file/directories explorer).
It all works OK in Chrome, IE, you name it.
This is quite a problem for me as I have to navigate through multiple sub directories and back and I used to just click the 5th button repeatedly until I was back in the main folder.
Thanks!
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by phil »

Hi Alex,

This sounds very much like the problems I have been looking at in Chrome (in 2.18.0-2.18.4 and I think fixed in 2.18.5) in that XMBC does not detect the "new" window when the button changes it (back/forward etc.) until the cursor is moved (which triggers XMBCs detection again. The fix in chrome was to perform the check when the button was pressed. Im a little surprised that this fix does not also work for explorer but maybe its chrome specific or different enough to be another problem.

I'll add it to the list and take a look when I next get a moment.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by phil »

Out of interest, if you leave the buttons set to "No change" does the problem still appear (the default actions for buttons 4 and 5 is back/forward - maybe in the wrong order but useful to know if the same problem is there).
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
AlexM
New User
Posts: 5
Joined: Tue Mar 26, 2019 7:01 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by AlexM »

Phil,
The Chrome is working fine, no issues. My only issues are with the Windows Explorer, not Internet Explorer, I am sure you have noticed, but just for clarity. IE works fine.
As for the question of how it works if no selection is made, it works fine, but backwards than what I'd like it to be, that is why I was using your program to switch the two functions. The issue only happens when I select forward and back for B4, B5.
Thanks!
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by phil »

Yeh, I got that Chrome was working fine - but it wasn't in earlier 2.18 releases - only took me 3 or 4 tries to get it right! :).
The fact that it works fine (but backwards) without remapping (no change) is very important - that means that the fix I made for Chrome probably IS working for IE and I just need to do something when remapping back/forward.

Thanks for that info - it will hopefully make the problem easier to reproduce & diagnose when I get down to it (hopefully sometime this week/weekend.

Regards,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
AlexM
New User
Posts: 5
Joined: Tue Mar 26, 2019 7:01 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by AlexM »

Also, I saw the other thread about B4, B5 and you asked if the upgrade was 2.15 straight to 2.18 and I realized I might have done the same, if it helps in anyway.
On my old desktop I have 2.14 and it works ok as far as mapping B4, B5 in reverse function, it always worked.
Thanks,
ALEX
AlexM
New User
Posts: 5
Joined: Tue Mar 26, 2019 7:01 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by AlexM »

Thanks a lot Phil! :cheers:

Until a fix is made, is there a way to downgrade to 2.14 or 2.15 so that I can still use my mouse the way I am used to? :angel:
AlexM
New User
Posts: 5
Joined: Tue Mar 26, 2019 7:01 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by AlexM »

I was able to find v2.15 on filehippo and I downgraded and now B4 and B5 can be mapped as Forward and Back the way I wanted and it works, no problems! :D
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by phil »

OK good news, I was able to reproduce - and I think I have fixed it.
The fix will be in 2.18.6 but I'm holding off releasing that as there a few other issues that I'm trying to track down and if they are bugs, will try and get them fixed too before releasing 2.18.6.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
Vort
New User
Posts: 7
Joined: Wed Apr 10, 2019 6:00 am

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by Vort »

It's a little off-topic, but please recheck Vivaldi browser before the next release.
I have version 2.5.1511.4 installed and remapping of tilt wheel buttons is the only reason why I need this program.
But it works wrong: sometimes Back and Forward buttons triggers twice.
It is related to multiple windows used by Chromium-based browsers.
If simulated command goes to wrong one - double triggering occurs.

upd. Looks like I have found the conditions, which leads to a bug:
If I switch to browser window with left mouse click, all works fine.
But when switching is done with Alt+Tab, simulated clicks starts doubling.
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by phil »

Is this ONLY with tilt wheel or does it double up on normal buttons too? It could just be that the tilt is sending more than one message (thats what the tilt wheel does) - have you got the "Ignore repeated horizontal scroll when remapped" enabled - maybe there is a problem with that setting when changing window with alt+tab.

I'll have a look - will have to go download vivaldi again (does it happen in chrome too?)
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
Vort
New User
Posts: 7
Joined: Wed Apr 10, 2019 6:00 am

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by Vort »

I was able to reproduce Alt+Tab / Click difference some time ago, but now bug looks like random :(
But most likely it is still related to focusing/unfocusing of the window.

I have made a test with "Wheel Up" mapped to "Back" - still having a problem.
User avatar
Vort
New User
Posts: 7
Joined: Wed Apr 10, 2019 6:00 am

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by Vort »

Looks like Vivaldi have some specific. I can't reproduce problem with Chrome.

Here are WM_APPCOMMAND messages from Vivaldi and Chrome:
spyxx.png
You do not have the required permissions to view the files attached to this post.
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by phil »

OK, I installed the latest vivaldi and I cant reproduce this (with tilt left/right set to back/forward - AND with "Ignore remapped horizontal scroll" enabled. I'm running XMBC 2.18.6 with a few fixes so that might be the reason I cant reproduce it (I hope so).

Lets wait until I release 2.18.6 (shortly) and if you still have issues, I will need some debug logging - unfortunately, the spy++ screenshot (while welcome) does not really help tell me what is sending those APP_COMMAND messages - and I need to tally it up to what XMBC is sending (and to where) in the debug log.

If its still a problem, I would appreciate you answer my last two questions:
1. Do you have "Ignore remapped horizontal scroll" turned on
2. Does it go wrong with any other buttons - note. the scroll wheel up/down is NOT a button as far as Windows messages are concerned, like the TILT. the scroll up/down does not send discrete "pressed" and "released" and therefore suffers the same problem as tilt - and has another option "Ignore remapped vertical scroll". I will need you to try a proper button like the middle, 4th or 5th buttons which are real buttons that send a press and a release message.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
Vort
New User
Posts: 7
Joined: Wed Apr 10, 2019 6:00 am

Re: 4th (Forward) and 5th (Back) button issues with Windows Explorer

Post by Vort »

phil wrote: Sun Apr 14, 2019 12:27 pmIf its still a problem, I would appreciate you answer my last two questions:
1. Do you have "Ignore remapped horizontal scroll" turned on
No, I want to turn it on later, if I find that I'm holding button longer than needed.
phil wrote: Sun Apr 14, 2019 12:27 pm2. Does it go wrong with any other buttons - note. the scroll wheel up/down is NOT a button as far as Windows messages are concerned, like the TILT. the scroll up/down does not send discrete "pressed" and "released" and therefore suffers the same problem as tilt - and has another option "Ignore remapped vertical scroll". I will need you to try a proper button like the middle, 4th or 5th buttons which are real buttons that send a press and a release message.
Same problem happens with remapped middle clicks.
phil wrote: Sun Apr 14, 2019 12:27 pmLets wait until I release 2.18.6 (shortly) and if you still have issues, I will need some debug logging - unfortunately, the spy++ screenshot (while welcome) does not really help tell me what is sending those APP_COMMAND messages - and I need to tally it up to what XMBC is sending (and to where) in the debug log.
Looks like logging catches the differences:
XMouseButtonControl.txt

Reproduction:
1. Open page, open link, click remapped middle button twice - no bug.
2. Press Alt+Tab twice, then again: open page, open link and click remapped middle button - it triggers twice.

Good click:

Code: Select all

19-04-2019 20:25:33.997> MouseHookLLProc: MouseHookData: Msg=0x0207 (WM_MBUTTONDOWN), X=1026, Y=340, Data=0x00000000, Flags=0x00000000, Time=141316251, Info=0x0, Ptr=0x67B50EF1, Layer=0
19-04-2019 20:25:33.997> Translating Middle Button Down Key state 0x0: Action 3 [Back]
19-04-2019 20:25:33.997> MouseHookLLProc: Removing message 0x0207 (1026,340) from mouse hook queue as we have overridden it.
19-04-2019 20:25:34.165> MouseHookLLProc: MouseHookData: Msg=0x0208 (WM_MBUTTONUP), X=1026, Y=340, Data=0x00000000, Flags=0x00000000, Time=141316422, Info=0x0, Ptr=0x67B50EF1, Layer=0
19-04-2019 20:25:34.165> Translating Middle Button Up Key state 0x0: Action 3 [Back]
19-04-2019 20:25:34.165> Posting APPCOMMAND 65536 message to window 0001037E
Bad click:

Code: Select all

19-04-2019 20:25:45.076> MouseHookLLProc: MouseHookData: Msg=0x0207 (WM_MBUTTONDOWN), X=892, Y=335, Data=0x00000000, Flags=0x00000000, Time=141327342, Info=0x0, Ptr=0x67B50EF1, Layer=0
19-04-2019 20:25:45.077> Translating Middle Button Down Key state 0x0: Action 3 [Back]
19-04-2019 20:25:45.077> MouseHookLLProc: Removing message 0x0207 (892,335) from mouse hook queue as we have overridden it.
19-04-2019 20:25:45.236> MouseHookLLProc: MouseHookData: Msg=0x0208 (WM_MBUTTONUP), X=892, Y=335, Data=0x00000000, Flags=0x00000000, Time=141327498, Info=0x0, Ptr=0x67B50EF1, Layer=0
19-04-2019 20:25:45.236> Translating Middle Button Up Key state 0x0: Action 3 [Back]
19-04-2019 20:25:45.237> SendInput::SendKeyState: Queue VKCode=0xa6 Scan code=0x0 SendMode=0x0 Flags=0x0 Release=0 Delay=0
19-04-2019 20:25:45.237> SendInput::SendKeyState: Queue VKCode=0xa6 Scan code=0x0 SendMode=0x0 Flags=0x0 Release=1 Delay=0
19-04-2019 20:25:45.237> MouseHookLLProc: Removing message 0x0208 (892,335) from mouse hook queue as we have overridden it.
19-04-2019 20:25:45.237> CSendInput::ProcessQueue: Starting to process 2 queue entries
19-04-2019 20:25:45.237> CSendInput::ProcessQueue: Sending 1 SIMULATED INPUTS
19-04-2019 20:25:45.237> Ignoring key (0xA6) press injected by X-Mouse Button Control
19-04-2019 20:25:45.237> CSendInput::ProcessQueue: Sleeping for 1ms
19-04-2019 20:25:45.238> CSendInput::ProcessQueue: Sending 1 SIMULATED INPUTS
19-04-2019 20:25:45.238> Ignoring key (0xA6) release injected by X-Mouse Button Control
19-04-2019 20:25:45.238> CSendInput::ProcessQueue: Sleeping for 1ms
19-04-2019 20:25:45.239> CSendInput::ProcessQueue: Finished sending 2 queue entries... (Flushed = 0)
You do not have the required permissions to view the files attached to this post.
Post Reply