Emulating Shift+Ctrl+Win+Numpad6 in Windows 10: impossible?

If you have a question or need help, this is the place to be.
Post Reply
mmmax
Posts: 6
Joined: Fri Jul 05, 2019 11:00 am

Emulating Shift+Ctrl+Win+Numpad6 in Windows 10: impossible?

Post by mmmax » Fri Mar 27, 2020 11:25 am

I have the following macro set up:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Macro Name="Emulate Keystrokes: {Shift+Ctrl+Win+Numpad6}" Expanded="True">
        <Event Name="Keyboard.Ctrl+Win+Right" />
        <Action>
            Window.SendKeys(u'{Shift+Ctrl+Win+Numpad6}', True, 2)
        </Action>
    </Macro>
</EventGhost>
This should send Shift+Ctrl+Win+Numpad6 to my target app when windows detects the Ctrl+Win+Right keystroke (which is what gets sent when pressing Shift+Ctrl+Win+Numpad6). However, it sends Shift+Ctrl+Win+Right instead. Is there any way to make it actually send Shift+Ctrl+Win+Numpad6?

I've also tried the following to no avail:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Macro Name="Emulate Keystrokes: {Shift+Ctrl+Win+Numpad6}" Expanded="True">
        <Event Name="Keyboard.Shift+Ctrl+Win+Numpad6" />
        <Action>
            Window.SendKeys(u'{Shift+Ctrl+Win+Numpad6}', True, 2)
        </Action>
    </Macro>
</EventGhost>

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Macro Name="Emulate Keystrokes: {Shift+Ctrl+Win+Numpad6}" Expanded="True">
        <Event Name="Keyboard.Shift+Ctrl+Win+Right" />
        <Action>
            Window.SendKeys(u'{Shift+Ctrl+Win+Numpad6}', True, 2)
        </Action>
    </Macro>
</EventGhost>
I can only seem to get the macro to work when the input is Ctrl+Win+Right, since EventGhost won't detect the Shift+Ctrl+Win+Numpad6 shortcut when pressed because Win10 seems to immediately translate that input to Ctrl+Win+Right.

I'm guessing there must be some way to disable whatever it is in Windows OS that is translating the keyboard input into something else.

User avatar
kgschlosser
Site Admin
Posts: 5498
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Emulating Shift+Ctrl+Win+Numpad6 in Windows 10: impossible?

Post by kgschlosser » Fri Mar 27, 2020 1:06 pm

shift + numpad6 is like pressing the numpad 6 with numlock turned off. the direction right is the shifted value of that key with numlock turned on. You can test it by opening up notepad and keying in a line of text. then go to the beginning of the line and press shift + numpad 6. It is doing what it is supposed to do. If you have numlock turned off then shift + numpad 6 moves to the right as well, but it selects the text as it moves.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 5498
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Emulating Shift+Ctrl+Win+Numpad6 in Windows 10: impossible?

Post by kgschlosser » Fri Mar 27, 2020 1:08 pm

and changing that behavior is not going to be an easy thing to accomplish. You would need a kernel mode driver that would be able to hook the keyboard driver to intercept the key presses before they got to the operating system.
There could be a registry entry that handles the shifting of keys you would have to do some digging to see if you can locate it.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 5498
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Emulating Shift+Ctrl+Win+Numpad6 in Windows 10: impossible?

Post by kgschlosser » Fri Mar 27, 2020 1:14 pm

Here is a program that will modify the scan codes stored in the registry for remapping keys

https://www.bleepingcomputer.com/download/keytweak/
If you like the work I have been doing then feel free to Image

Post Reply