Key repeating on login...


  1. Posts : 3
    Windows 10 Pro x64
       #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.
    Thanks!
    ~R4E
    Key repeating on login... Attached Files
      My Computer


  2. Posts : 119
    Windows 11 Home 64 Bit
       #2

    Hi,

    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])

    Key
    objShell : A WScript.Shell object

    strCommand : The Command to be executed

    intWindowStyle
    (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 Computer


  3. Posts : 9,765
    Mac OS Catalina
       #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 Computer


  4. Posts : 3
    Windows 10 Pro x64
    Thread Starter
       #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 Computer


  5. Posts : 3
    Windows 10 Pro x64
    Thread Starter
       #5

    Lottiemansion said:
    Hi,

    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 Computer


 

  Related Discussions
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 09:13.
Find Us




Windows 10 Forums