Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: toggle keyboard key on software level  (Read 2730 times)

0 Members and 1 Guest are viewing this topic.

Bret72

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Unknown
    toggle keyboard key on software level
    « on: August 14, 2017, 06:56:10 AM »
    hello
    how do I keep a keyboard key pressed on a software level so that key that I chose is pressed nonstop?
    for example i want to spam "m" nonstop on a software level
    so in notepad its mmmmmmmmmmmmmmmmmmmmmm.... in infinity, without me pressing the "m" button on the keyboard physically

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: toggle keyboard key on software level
    « Reply #1 on: August 14, 2017, 10:48:07 AM »
    This has been covered before on this forum.
    Your description does not say how you would stop it.
    Why do you need it? Is it an attempt to reform some kind of test?
    This can be done in Vb-script. But more detail is needed about what you want to do.

    Allan

    • Moderator

    • Mastermind
    • Thanked: 1260
    • Experience: Guru
    • OS: Windows 10
    Re: toggle keyboard key on software level
    « Reply #2 on: August 14, 2017, 11:33:02 AM »
    Please stop telling people questions have been covered before on the forum. Answer the question or don't, but let's be more welcoming to new members.

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: toggle keyboard key on software level
    « Reply #3 on: August 14, 2017, 11:45:50 AM »
    Here is the answer:
    Auto Hot Key
    https://www.computerhope.com/jargon/a/autohotkey.htm
    Quote
    AutoHotkey is a fantastic free and open source Microsoft Windows tool that allows you to create macros, scripts, and automate frequently performed tasks on your computer
    Which will lead to:
    https://www.computerhope.com/tips/tip209.htm
    You will have to write a script that sends a text to the keyboard input as if it had been typed by a human. It is very fast.

    This might be what you need. It may look like overkill, but it is easier that trying to write a program from scratch. The use of Auto Hot Key has been mentioned many times on this forum. It still is the best way to get automated input from the keyboard.