Jump to content

Assign winkey+l to lock computer AND change language to english


Recommended Posts

My password is in English but I often use my native language when I use the computer. Is it possible to make a script that runs in the background and changes active language to English whenever computer is locked via winkey+l?

 

I tried using the AssignKey function, however while it did seem to work for other keys, winkey+l (or any other combination involving winkey) did not work. Is there a way around this?

Link to comment
Share on other sites

You can do something like this:

 

#include <Misc.au3>
#include <MsgBoxConstants.au3>

Local $hDLL = DllOpen("user32.dll")

While 1
    If _IsPressed("5B", $hDLL) and _IsPressed("4C") Then
       MsgBox(0,"","changes active language")
    EndIf
    if _IsPressed("1B",$hDLL) then ExitLoop
WEnd

DllClose($hDLL)

Saludos

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...