How to perform a repetitive keyboard action

Solved
benjimenn Posted messages 4 Status Membre -  
 alxsurf -
Hello everyone,

I would like to know how I can make the "space" key on my keyboard repeat for a set amount of time. I'm sure this can be done, but I'm not sure how.

That's why I'm asking for help from people who probably know a lot more than I do in this area.

Thank you in advance

5 réponses

Phoenellion Posted messages 131 Status Membre 33
 
Hello Benjimenn,

The solution to your problem is called Super Macro, although the tool is vastly more powerful than what you need.

It is very easy to use and completely reliable. I use it to "play" (on an offline game, I’m not a web pirate) when I’m not in front of my PC:

https://www.01net.com/telecharger/windows/Utilitaire/planificateurs_et_lanceurs/fiches/23371.html

It allows you to simulate mouse and keyboard actions and much more.

As for you, you will need to:
- create a label, let’s say label "RepeatSpace"
- add a keyboard action: "press space bar"
- add a timer set to your liking
- add a GoTo Label "RepeatSpace"

It's a loop that will repeat indefinitely until you stop it.

If you want it to stop after a certain time, you will need to:
- declare a variable (let’s say "Occurrences") and give it the initial value of 0 (Zero)
- create a label, let’s say label "RepeatSpace"
- add a keyboard action: "press space bar"
- add a timer set to your liking
- Increment Occurrence by 1
- add a condition such that if Occurrence = Y (Replace Y with the desired number of occurrences), the macro stops

- add a GoTo Label "RepeatSpace"

Download the software and see if you can do it by yourself, if not, come back here and I will guide you.

I do warn you, however, that if it's to avoid being disconnected after a certain period of inactivity in an online game (MMORPG), this amounts to using a bot to automate an action, and is likely against the game's charter.

@+
24
Phoenellion Posted messages 131 Status Membre 33
 
Benjimenn, how are you doing?

Remember to mark the topic as "Resolved" if you have achieved your goals.

Catch you later,
Phoe
1
benjimenn Posted messages 4 Status Membre 7
 
How do we mark it as resolved?
1
alex-14-caen Posted messages 130 Status Membre
 
You can modify your message and click on resolved, but you need to change the very first message.
0