Key repeating on login...

  1.    21 May 2016 #1

    Key repeating on login...

    Not sure if this is a keyboard firmware issue or not, in which case I'll post on the forums there but I don't remember it ever happening prior to Win10..
    So the circumstances are completely repeatable and happen every time I do the following...
    I wrote a .vbs script to do the equivalent of essentially pressing Win+L to lock the desktop and go to the switch user screen.
    Whenever I log in apparently when I get to somewhere I can type, the number 0 repeats infinitely until I unplug my keyboard and plug it back in... (last number in my pin) Note: keys do not repeat until after I log back in, because I can type my pin just fine...
    I used to have one of my macro keys set to Win+L, but the L key would repeat after the switch user screen was reached, and would prevent idle 2 sleep function.
    I have a Razer Black Window keyboard.
    Strange part, is the vbs script is launched via a shortcut I double-click on my desktop....
    Let me know what you think.
    Key repeating on login... Attached Files
      My ComputerSystem Spec

  2.    22 May 2016 #2


    Look here & try the "True" statement at the end?

    Set WshShell = CreateObject("WScript.Shell" )WshShell.Run chr(34) & "C:\Users\roman_000\Documents\Scripts\lockscreen.bat" & Chr(34), 0, true
    Set WshShell = Nothing

    Run an external Command.Syntax
    objShell.Run (strCommand, [intWindowStyle], [bWaitOnReturn])

    objShell : A WScript.Shell object

    strCommand : The Command to be executed

    (Optional) : Int value indicating the appearance of
    the program's window.
    Not all programs make use of this.

    bWaitOnReturn : Wait for the command to complete before
    continuing execution of the wsh script.
    If bWaitOnReturn is set to TRUE, the Run method returns any error code returned by the application.

    If bWaitOnReturn is not specified or FALSE, this method immediately returns to script execution rather than waiting on the process termination (and returns an error code of 0)

    Specifying the bWaitOnReturn parameter allows you to run programs synchronously (one at a time).
      My ComputerSystem Spec

  3. bro67's Avatar
    Posts : 5,040
    Mac OS High Sierra 10.13.5
       22 May 2016 #3

    Key repeating on login...

    There is no firmware that is installed on keyboards. Sounds like your VBS program is the culprit. You do not need a program to lock the OS. Just set the timer at a shorter time or use your phone as a way to trigger automatic login and logoff when you walk away with the phone.

    Trying to make Windows to do something that a two finger salute can do, is personally a waste of effort.
      My ComputerSystem Spec

  4.    22 May 2016 #4

    Thanks lottie I'll go ahead and try that in a few minutes and let you know what happens.
    @bro67 " Trying to make Windows to do something that a two finger salute can do, is personally a waste of effort. "
    Not when you have a loud mechanical keyboard, and you want to quietly lock your computer. It's right next to my shortcuts for changing the power-mode (time to sleep). Personally I think it's convenient.
      My ComputerSystem Spec

  5.    24 May 2016 #5

    Lottiemansion said: View Post

    Look here & try the "True" statement at the end?
    So as far as I can tell, this fixed the issue. Although it hasn't been very long since I updated the script with your suggestion.
    Just wanted to say thanks for helping me with this issue, it was really annoying having to disconnect & reconnect my keyboard every time I logged back in.

    I'm going to give it a few more days before I mark this as solved, just in case.
      My ComputerSystem Spec


Related Threads
- Did a reset of Windows 10 on a virtual machine - The default account name is then the first 5 characters of my email account - I changed that to my real name - Rebooted - I was then offered 2 login accounts - logged in using my real name -...
The action center informed me that CCleaner was not compatible and was removed. Every time the pc is booted, it repeats that message. I have tried removing every trace of CCleaner I can find but it still repeats the message at boot. I don't want...
Since the last windows 10 builds, my loggin screen would freeze where it shows the time, i can move my mouse around but cant click anything or use the keyboard, or when i log in it would go to a blackscreen but still see the mouse. It would be...
I should be grateful for any help. At the moment I have a Local login and I am considering changing to a Microsoft login. If I do, does this mean that when my PC starts from a boot, that instead of the pin that I use to login to my account on the...
I'm getting certain repeating errors in Event Viewer when I reboot my new Win Pro 64-bit (after yesterday's upgrade from Win 8.1 Pro 64-bit). Please see the details and post your thoughts here: ...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:13.
Find Us