Hi @Gavin Rudling - You can use power shell command to enable caps lock and similarly vice versa-
1) To Turn On the Caps Lock - Use below command -
if ([console]::CapsLock -ne 'True')
{
$wsh = New-Object -ComObject WScript.Shell;
$wsh.SendKeys('{CAPSLOCK}')
}
2) To Turn Off the Caps Lock - Use below command -
if ([console]::CapsLock -eq $true)
{
$wsh = New-Object -ComObject WScript.Shell
$wsh.SendKeys('{CAPSLOCK}')
}
------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.
Regards,
Mukesh Kumar - Senior Automation Developer
NHS, England, United Kingdom, GB
------------------------------
Original Message:
Sent: 07-14-2023 12:52
From: Gavin Rudling
Subject: CAPS Lock
Good day Team
Not sure if someone can help with this.
Is there a way to determine if the Caps lock key is on or off at all?
Kind regards
Gavin
------------------------------
Gavin Rudling
Digital Consultant & Developer
Cog3nt
Africa/Johannesburg
0813906789
------------------------------