Use the following code: (Save it as .vbs and execute, it will run for ever). Kill the wscript from the task manager when u want to stop.
----
You can replace the NUMLOCK with either CAPSLOCK if it creates issues with your UI testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dim i | |
i =0 | |
do while (i<=1) | |
UTI_SENDKEYS("{NUMLOCK}") | |
Loop | |
Function UTI_SENDKEYS(ByVal sKey) | |
set WshShell = CreateObject("WScript.Shell") | |
WshShell.SendKeys sKey | |
wscript.sleep 1000 | |
set WshShell = NOTHING | |
End Function |
----
You can replace the NUMLOCK with either CAPSLOCK if it creates issues with your UI testing