lock pc when win key is disabled batch?


dacrone

Well-known member
Pro User
VIP
Local time
7:51 AM
Posts
2,375
OS
Windows 11 Pro
my keyboard has a win key lock button - a button at the top that us used to disable the windows key on the keyboard itself. i would like to configure a batch to lock the pc when the windows key is disabled. essentially, since i cannot remap the designated lock key to do this function, i want to implement a workaround to circumvent the keyboard limitation and use the lock key for what i want to use it for. i have yet to get this figured out.. so i thought i would see if anyone else has done something similar. it is a corsair keyboard, if that makes a difference. any help is greatly appreciated. thank you.
 

My Computer

System One

  • OS
    Windows 11 Pro
I can't say about your lock key but if no one has a solution for it, you can Ctrl+Alt+Del and choose Lock from the list of options.
To unlock press any key to wake displacy, press Ctrl+Alt+Del at the same time. You will be asked to authenticate with username and password.

OR

create a desktop shortcut which you can pin to the taskbar if you want.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.2314
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
nah i have all of that done. and aside from that i have another key mapped to run the lock.bat already. i just want to repurpose that key....
 

My Computer

System One

  • OS
    Windows 11 Pro
nah i have all of that done. and aside from that i have another key mapped to run the lock.bat already. i just want to repurpose that key....
Just re-map the key? I can remap anything to any key on my razor setup through its software, I'd have assumed corsair would be similar
 

My Computer

System One

  • OS
    11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    10700k@5.2
    Motherboard
    Gigabyte Gaming X Z490
    Memory
    Viper Steelseries 32gb@ 3600mhz
    Graphics Card(s)
    Gigabyte 2070 Super 8GB, +200 core + 600 memory
    Monitor(s) Displays
    ASUS 4k HDR, Two 1080p Benq and Samsung
    Screen Resolution
    3840x2160/2560x1440/1920x1080
    Hard Drives
    Adata XPG SX8200 PRO 1tb
    Samsung EVO 870 500GB
    PSU
    Corsair RX 650
    Case
    NZXT h510
    Cooling
    CM HYPER 212 RGB
    Keyboard
    Razer Ornata Chroma
    Mouse
    Steelseries Rival 710
nope. thats why i was asking for a script or some other software that can do this... i have tried many of the avenues of approach that can be thought of already. just need help with the original question. thanks.
 

My Computer

System One

  • OS
    Windows 11 Pro

Latest Support Threads

Back
Top Bottom