2

I am in need of a bat or powershell command to change the language switching shortcut in Windows (for example from Caps Lock to Left Shift + Left Alt. Is it possible to do something like this?

6
  • take a look at AutoHotKey. it does macro stuff AND can remap keys fairly easily.
    – Lee_Dailey
    Commented Apr 27, 2020 at 11:48
  • @Lee_Dailey So I would need to deploy AutoHotKey on other machines previously to using some script? What is the purpose then, if it is less time consuming to change the shortcut manually?
    – ymdred16
    Commented Apr 27, 2020 at 12:25
  • 2
    Does this answer your question? How to disable Ctrl+Shift keyboard layout switch (for the same input language) in Windows?
    – JosefZ
    Commented Apr 27, 2020 at 13:43
  • @ymdred16 - AHK can be compiled. you are correct that you would need to distribute that exe file, tho. it looks like JosefZ has a better idea for your situation. good luck! [grin]
    – Lee_Dailey
    Commented Apr 27, 2020 at 14:24
  • @JosefZ Yeah. Have found what I need in answers down below, thanks for the link. Should I delete the question or answer it myself? That question in the link you provided is not actually about what I needed.
    – ymdred16
    Commented Apr 27, 2020 at 14:49

1 Answer 1

0

After looking into this answer (and some others), this PowerShell snippet worked for me:

$wshell = New-Object -ComObject wscript.shell
$wshell.SendKeys("%+()")

It sends Alt + Shift.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .