Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

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.
Post Reply
WHCGF
New User
Posts: 3
Joined: Sun Jan 06, 2019 9:01 am

Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

Post by WHCGF » Sun Jan 06, 2019 9:36 am

XMBC Version: 2.18
Windows Version: Win10 1803
Mouse Information (brand/model): Microsoft / Classic inellimouse
Computer Information:
Did the problem occur after an upgrade of XMBC or Windows?: no
How long have you used XMBC?: 3 years
What language and keyboard layout do you use in Windows?: zh-TW

Clear description of the problem:

I tried to add new application setting using specific window / hover function to avoid the default setting trigering in th game. I did not change button function. But later when i play the game,moving mouse will trigger the keyboard key 2 function. I have tied reinstalling both XMouse Button Control/game and reset control settings in the game. It still happen. Does there has any way to reset mouse function in windows or
how can i solve it?

GAME:Everspace(Steam)

User avatar
phil
Site Admin
Posts: 5675
Joined: Sun Apr 06, 2003 11:12 pm

Re: Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

Post by phil » Sun Jan 06, 2019 12:49 pm

I'm sorry, XMBC is not able to send keys when the mouse is moved, only when buttons are pressed or scroll/tilt wheel is used. So I don't understand how simply moving the mouse could trigger any keys unless something else is doing that.

Can you turn on debug logging and make it happen again then send me the debug log (either by PM here or by email).
The debug log will contain all XMBC triggered keys and may help explain what is going on here.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

WHCGF
New User
Posts: 3
Joined: Sun Jan 06, 2019 9:01 am

Re: Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

Post by WHCGF » Tue Jan 08, 2019 10:09 am


Here is debug log file during the problem happening in Everspace .


08-01-2019 16:40:13.629> Window caption has changed from '??' to 'Everspace '!
08-01-2019 16:40:13.942> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=375, Y=659, Data=0x00000000, Flags=0x00000000, Time=9809781, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:13.942> Translating Left Button Down Key state 0x0: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:13.942> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:14.042> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=375, Y=659, Data=0x00000000, Flags=0x00000000, Time=9809875, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:14.042> Translating Left Button Up Key state 0x1: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:14.042> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:17.957> Unable to enter critical section in WM_MOUSEMOVE hook as it is locked by 'unknown'
08-01-2019 16:40:18.114> Unable to enter critical section in RealWindowFromPoint hook as it is locked by 'unknown'
08-01-2019 16:40:18.114> ProcessMouseOverTimerProc: ProcessMouseOver failed - reset timer to retry.
08-01-2019 16:40:25.846> KeyHookLLProc: ALT (0xA5) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:26.054> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:27.510> KeyHookLLProc: ALT (0xA5) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:27.710> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:27.830> KeyHookLLProc: ALT (0xA5) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:28.041> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:30.206> KeyHookLLProc: ALT (0xA5) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:30.414> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:31.246> KeyHookLLProc: ALT (0xA5) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:31.440> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:47.550> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=312, Y=942, Data=0x00000000, Flags=0x00000000, Time=9843390, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:47.550> Translating Left Button Down Key state 0x0: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:47.550> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:47.640> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=312, Y=942, Data=0x00000000, Flags=0x00000000, Time=9843484, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:47.640> Translating Left Button Up Key state 0x1: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:47.640> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:47.946> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=313, Y=968, Data=0x00000000, Flags=0x00000000, Time=9843781, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:47.946> Translating Left Button Down Key state 0x0: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:47.946> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:48.031> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=313, Y=968, Data=0x00000000, Flags=0x00000000, Time=9843875, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:48.031> Translating Left Button Up Key state 0x1: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:48.031> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:48.977> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=982, Y=571, Data=0x00000000, Flags=0x00000000, Time=9844812, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:48.977> Translating Left Button Down Key state 0x0: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:48.977> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:49.882> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=979, Y=636, Data=0x00000000, Flags=0x00000000, Time=9845718, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:49.882> Translating Left Button Up Key state 0x1: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:49.882> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:50.064> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=971, Y=617, Data=0x00000000, Flags=0x00000000, Time=9845906, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:50.064> Translating Left Button Down Key state 0x0: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:50.064> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:50.172> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=971, Y=617, Data=0x00000000, Flags=0x00000000, Time=9846015, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:50.172> Translating Left Button Up Key state 0x1: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:50.172> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:51.582> KeyHookLLProc: ALT (0xA4) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:51.781> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:51.781> GetProcessIntegrityLevel for PID 6596 returned 0x00002000
08-01-2019 16:40:51.781> GetProcessName(2 Keyboard): Got name for PID 6596, 'radeonsettings.exe' for HWND 0x001404B0 using GetProcessImageFileName
08-01-2019 16:40:51.781> GetProcessName result 1 time 0ms
08-01-2019 16:40:51.781> FindAppSettings: Matching profile not found.
08-01-2019 16:40:51.781> Detected new HWND 001404B0 (due to keyboard) from 00020F5E. The active profile has not changed.
08-01-2019 16:40:53.341> KeyHookLLProc: ALT (0xA4) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:53.547> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:53.547> GetProcessIntegrityLevel for PID 7436 returned 0x00002000
08-01-2019 16:40:53.547> GetProcessName(2 Keyboard): Got name for PID 7436, 'rsg-win64-shipping.exe' for HWND 0x00020F5E using GetProcessImageFileName
08-01-2019 16:40:53.547> GetProcessName result 1 time 0ms
08-01-2019 16:40:53.547> FindAppSettings: Matching profile not found.
08-01-2019 16:40:53.547> Detected new HWND 00020F5E (due to keyboard) from 001404B0. The active profile has not changed.
08-01-2019 16:40:54.515> GetProcessIntegrityLevel for PID 6480 returned 0x00002000
08-01-2019 16:40:54.515> GetProcessName(7 WindowFromHWND): Got name for PID 6480, 'explorer.exe' for HWND 0x00010F86 using GetProcessImageFileName
08-01-2019 16:40:54.515> GetProcessName result 1 time 0ms
08-01-2019 16:40:54.516> FindAppSettings: Matching profile not found.
08-01-2019 16:40:54.671> Window caption has changed from 'Everspace ' to '????'!
08-01-2019 16:40:54.750> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=584, Y=448, Data=0x00000000, Flags=0x00000000, Time=9850593, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:54.750> Translating Left Button Down Key state 0x100: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:54.750> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:54.846> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=584, Y=448, Data=0x00000000, Flags=0x00000000, Time=9850687, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:54.846> Translating Left Button Up Key state 0x101: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:54.846> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:55.046> KeyHookLLProc: ALT (0xA4) released, Started 200ms KeySwitchTimer ID: 0x00000000
08-01-2019 16:40:55.158> GetProcessIntegrityLevel for PID 7436 returned 0x00002000
08-01-2019 16:40:55.158> GetProcessName(7 WindowFromHWND): Got name for PID 7436, 'rsg-win64-shipping.exe' for HWND 0x00020F5E using GetProcessImageFileName
08-01-2019 16:40:55.158> GetProcessName result 1 time 0ms
08-01-2019 16:40:55.158> FindAppSettings: Matching profile not found.
08-01-2019 16:40:55.259> KeySwitchTimerProc: Checking active app profile...
08-01-2019 16:40:55.320> Window caption has changed from '????' to 'Everspace '!
08-01-2019 16:40:55.834> MouseHookLLProc: MouseHookData: Msg=0x0201 (WM_LBUTTONDOWN), X=348, Y=773, Data=0x00000000, Flags=0x00000000, Time=9851671, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:55.834> Translating Left Button Down Key state 0x0: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:55.834> MouseHookLLProc: Passing original mouse message 00000201 through....
08-01-2019 16:40:55.929> MouseHookLLProc: MouseHookData: Msg=0x0202 (WM_LBUTTONUP), X=348, Y=773, Data=0x00000000, Flags=0x00000000, Time=9851765, Info=0x0, Ptr=0x104C3, Layer=0
08-01-2019 16:40:55.929> Translating Left Button Up Key state 0x1: Action 40 [** No Change (Don't intercept) **]
08-01-2019 16:40:55.929> MouseHookLLProc: Passing original mouse message 00000202 through....
08-01-2019 16:40:56.295> Unable to enter critical section in RealWindowFromPoint hook as it is locked by 'unknown'
08-01-2019 16:40:56.295> ProcessMouseOverTimerProc: ProcessMouseOver failed - reset timer to retry.
08-01-2019 16:41:09.300> GetProcessIntegrityLevel for PID 7720 returned 0x00001000
08-01-2019 16:41:09.300> GetProcessName(7 WindowFromHWND): Got name for PID 7720, 'shellexperiencehost.exe' for HWND 0x000101D0 using GetProcessImageFileName
08-01-2019 16:41:09.300> GetProcessName result 1 time 0ms
08-01-2019 16:41:09.300> FindAppSettings: Matching profile not found.
08-01-2019 16:41:09.451> Window caption has changed from 'Everspace ' to '??'!


Thanks,
Gavin

User avatar
phil
Site Admin
Posts: 5675
Joined: Sun Apr 06, 2003 11:12 pm

Re: Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

Post by phil » Tue Jan 08, 2019 10:52 am

Hi Gavin,

Thanks for the log, Im arfaid it kind of confirms my suspicions, that XMBC is not sending any key strokes...
If it were, you would see lines such as

Code: Select all

08-01-2019 09:50:44.527> Key: 'c', szOEM = 'c', OEM = 2E Ext = 0 vk = 43 vkEx = 43, nVKEx2 = 43, HKLCur 0, HKLSel 8090809
08-01-2019 09:50:44.527> SendInput::SendKeyState: Queue VKCode=0x43 Scan code=0x2e SendMode=0x8 Flags=0x2 Release=0 Delay=0
08-01-2019 09:50:44.527> SendInput::SendKeyState: Queue VKCode=0x43 Scan code=0x2e SendMode=0x8 Flags=0x2 Release=1 Delay=0
08-01-2019 09:50:44.527> MouseHookLLProc: Removing message 0x020C (556,635) from mouse hook queue as we have overridden it.
08-01-2019 09:50:44.527> CSendInput::ProcessQueue: Starting to process 4 queue entries
08-01-2019 09:50:44.527> CSendInput::ProcessQueue: Sending 1 SIMULATED INPUTS
08-01-2019 09:50:44.527> Ignoring key injected by X-Mouse Button Control
08-01-2019 09:50:44.528> CSendInput::ProcessQueue: Sleeping for 1ms
08-01-2019 09:50:44.529> CSendInput::ProcessQueue: Sending 1 SIMULATED INPUTS
08-01-2019 09:50:44.529> Ignoring key injected by X-Mouse Button Control
08-01-2019 09:50:44.529> CSendInput::ProcessQueue: Sleeping for 1ms
08-01-2019 09:50:44.530> CSendInput::ProcessQueue: Sending 1 SIMULATED INPUTS
08-01-2019 09:50:44.530> Ignoring key injected by X-Mouse Button Control
08-01-2019 09:50:44.530> CSendInput::ProcessQueue: Sleeping for 1ms
08-01-2019 09:50:44.531> CSendInput::ProcessQueue: Sending 1 SIMULATED INPUTS
08-01-2019 09:50:44.532> Ignoring key injected by X-Mouse Button Control
08-01-2019 09:50:44.532> CSendInput::ProcessQueue: Sleeping for 1ms
08-01-2019 09:50:44.533> CSendInput::ProcessQueue: Finished sending 4 queue entries... (Flushed = 0)
Any time XMBC sends a key (with debug logging enabled) you will see lines such as quoted above. As there are none of these (not surprising as XMBC can not send keys on mouse movement) then I think you need to look elsewhere.

If you disable XMBC or Exit XMBC all together, so it is not running, does the problem still occur?

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

WHCGF
New User
Posts: 3
Joined: Sun Jan 06, 2019 9:01 am

Re: Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

Post by WHCGF » Fri Jan 11, 2019 6:25 am

Problem still happen after i disabled XMBC. Can XMBC change window's sitting ? Maybe the only way is to reinstall windows.
Very thanks for your help.

User avatar
phil
Site Admin
Posts: 5675
Joined: Sun Apr 06, 2003 11:12 pm

Re: Moving mouse would trigger the keyboard key function in the game,but i did not change any setting.

Post by phil » Fri Jan 11, 2019 9:25 am

Hi, firstly, there are no windows settings that I am aware of that send keys when the mouse moves.

And secondly, XMBC can *only* intercept mouse messages when it is running. It has to be running because it hooks the Windows mouse messages in order to intercept and remap them. If XMBC is not running or is disabled, the hook is not there and it can not respond to mouse messages to do anything. The only settings it can change that could persist once uninstalled is the mouse cursor speed option and the "swap left and right button" option as those are Windows settings that XMBC switches.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

Post Reply