Help, i Do'nt know

Ask gaming related questions
BrazilianHunter
Posts: 1
Joined: 20 Jan 2018, 13:35

Help, i Do'nt know

20 Jan 2018, 13:42

How to make a script to click a key 6 times?
User avatar
Gio
Posts: 370
Joined: 30 Sep 2013, 10:54
Location: Brazil

Re: Help, i Do'nt know

20 Jan 2018, 14:30

Hello BrazilianHunter.

Welcome to the AutoHotkey Community forums.

You can use Loop command to repeat single-commands or blocks of code. Also, to send keystrokes, you can use the Send command.

See the example below on how to do it (the example will press the key j 6 times).



If you cannot see the effect in place here, it is because the key pressing happens as soon as you execute the script. If you wish the script to wait so that you open a a window or something like that, you can use Sleep command.

The example below waits 10 seconds before pressing the key j 6 times.



If you need further help, feel free to post again. Also, check out our portuguese subforums if you are brazilian and wish to talk about AutoHotkey in portuguese.

Best wishes :thumbup:
"What is suitable automation? Whatever saves your day for the greater matters."
Barcoder - Create QR Codes and other Barcodes using only Autohotkey !!
BoBo
Posts: 2515
Joined: 13 May 2014, 17:15

Re: Help, i Do'nt know

20 Jan 2018, 16:29

check out our portuguese subforums if you are brazilian and wish to talk about AutoHotkey in portuguese.

Isn't he/she hunting Brazilians?? :o :shifty: :silent:
wolf_II
Posts: 1827
Joined: 08 Feb 2015, 20:55

Re: Help, i Do'nt know

20 Jan 2018, 18:14

BoBo wrote:Isn't he/she hunting Brazilians?? :o :shifty: :silent:

:lol: :D :bravo: :beer:
User avatar
divanebaba
Posts: 626
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: Help, i Do'nt know

20 Jan 2018, 19:08

I think BrazilianHunter wants to realize the following:OrPressing one times triggers six times.

[Starklichtbirne IQ >> 250!!] Dank deutscher Lehrerempfehlung, nur Süperdepp und Hartz4-Bezieher, statt Abitürient und Einkommensbezieher.
[Strong light bulb IQ >> 250!!] Thanks to german teacher's recommendation, willful and welfare recipient, instead of high school graduate and moneymaker.

Entering high school for foreign children is not prohibited in GERMANY, it's only made nearly impossible by government.
Virtually the only way - visiting high school abroad.
garry
Posts: 1206
Joined: 22 Dec 2013, 12:50

Re: Help, i Do'nt know

21 Jan 2018, 05:29

found this , send also first ctrl / alt / win and then key
https://autohotkey.com/boards/viewtopic.php?f=5&t=41768

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus




another example

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Return to “Gaming”

Who is online

Users browsing this forum: Rohwedder and 9 guests