Share via

Key remapping

MSuser 1 Reputation point
2022-01-14T01:29:59.93+00:00

Hello

I want to remap a key to another one and I can only use WSCRIPT, Powershell, Win Scheduler etc and not cmd not any application that needs installing.

Any idea?

Thanks!

Windows development | Windows API - Win32
0 comments No comments

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2022-01-14T03:14:37.32+00:00

    Hi,

    Welcome to Microsoft Q&A!

    Whether you want to remap keyboard key via winapi in c++?

    If so ,I suggest you could try to use LowLevelKeyboardProc callback function to remap keyboard key. The application installs a hook procedure that monitors low-level keyboard input events by specifying WH_KEYBOARD_LL when calling the SetWindowsHookEx function.

    Best Regards,

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.