StrokesPlus.net Forum
»
Bugs or Issues
»
Bug Reports
»
BROWSER_BACK and several virtual keys not working
Rank: Newbie
Groups: Approved
Joined: 12/8/2019(UTC) Posts: 4 Location: Gwangju
|
I tried to use BROWSER_BACK and BROWSER_FORWARD gestures, but it does not work. This is not a problem of gesture, as I confirmed Alt+left combination working well. I also confirmed BROWSER_BACK and BROWSER_FORWARD virtual keys are supported by my browser(firefox), by using autohotkey to send BROWSER_BACK. Other virtual keys, like MEDIA_PLAY_PAUSE, also does not work. After trial and errors, I found that WM_APPCOMMAND message is the source of problem. autohotkey sends WM_APPCOMMAND message automatically, while strokesplus does not. For example, following script does not work as intended: Code:
sp.SendVKey(vk.BROWSER_BACK);
But following script does: Code:
action.Window.SendMessageObj(0x0100 /*WM_KEYDOWN*/, 0xA6 /*BROWSER_BACK*/, 0x416A0001);
action.Window.SendMessageObj(0x0319 /*WM_APPCOMMAND*/, action.Window.HWnd, 1 << 16 /*BROWSER_BACK*/);
action.Window.SendMessageObj(0x0101 /*WM_KEYUP*/, 0xA6 /*BROWSER_BACK*/, 0x016A0001);
I Think SendVKey should also send proper WM_APPCOMMAND messages for media keys.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
That's odd, they all work fine for me. I tried Chrome and Firefox for browser navigation and the media play/pause/next/prev track VKs and they all work fine in VLC.
What Windows version are you using?
I will definitely research the WM_APPCOMMAND especially in conjunction with these keys.
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 12/8/2019(UTC) Posts: 4 Location: Gwangju
|
My OS is Windows 10 1903. I'm using laptop that lacks any media keys, could that be relevant? My laptop does have volume up/down key, and VOLUMN_UP/DOWN virtual keys work just fine...
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 12/8/2019(UTC) Posts: 4 Location: Gwangju
|
Testing again, AIMP does react to MEDIA_PLAY_PAUSE. But MPC_HC does not. Both correctly responds to autohotkey-generated MEDIA_PLAY_PAUSE.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
Nah, my laptop doesn't have media/browser keys. I'm sure it's a matter of WM_APPCOMMAND needing to be sent. Not sure why it works on my system, but I'll look into it and confirm the behavior still works on my system and roll it out in the next release.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
Hmm, I updated the code to also send the app command message after key down, but that caused problems for me; essentially the command was happening twice. Once for the key and once for the app command.
So I changed it to only send either the app command or the key message and it seems to be working.
I will need to do some more testing, but I will include it in the upcoming beta release which adds new Steps functionality (instead of a script, you can use Steps...which is targeted at less technical people).
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
Also, try testing that one your end, only sending the app command message, not the key down/up and see if it works for you.
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 12/8/2019(UTC) Posts: 4 Location: Gwangju
|
Sending only appcommand definitely works here. I thought adding 'send appcommand for media keys' option would do in case of double press, but either way it will be great.
|
|
|
|
StrokesPlus.net Forum
»
Bugs or Issues
»
Bug Reports
»
BROWSER_BACK and several virtual keys not working
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close