I need help for typing and entering script.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rileemarks11
Posts: 4
Joined: 02 Dec 2022, 19:31

I need help for typing and entering script.

Post by rileemarks11 » 02 Dec 2022, 19:37

Ok so I am pretty new to this, and I was wondering if anyone would make a script that would count starting from any custom number and it will add 1 to that number. and after every number, it would press enter then wait 15 seconds and then repeat. Example (bc I suck at explaining things) So it would go like "1 <enter> {wait 15 seconds} 2 <enter> {wait 15 seconds}" and so on until 1000. If anyone would be able to help then it would be greatly appreciated 🙂

User avatar
mikeyww
Posts: 26856
Joined: 09 Sep 2014, 18:38

Re: I need help for typing and entering script.

Post by mikeyww » 02 Dec 2022, 20:04

Welcome to this AutoHotkey forum!

Code: Select all

n = 981
Loop {
 Send % n++ "`n"
 Sleep, 15000
} Until (n > 1000)

rileemarks11
Posts: 4
Joined: 02 Dec 2022, 19:31

Re: I need help for typing and entering script.

Post by rileemarks11 » 02 Dec 2022, 20:31

mikeyww wrote:
02 Dec 2022, 20:04
Welcome to this AutoHotkey forum!

Code: Select all

n = 981
Loop {
 Send % n++ "`n"
 Sleep, 15000
} Until (n > 1000)
I should be like auto typer but spams in accending numbers (1,2,3)

rileemarks11
Posts: 4
Joined: 02 Dec 2022, 19:31

Re: I need help for typing and entering script.

Post by rileemarks11 » 02 Dec 2022, 20:43

mikeyww wrote:
02 Dec 2022, 20:04
Welcome to this AutoHotkey forum!

Code: Select all

n = 981
Loop {
 Send % n++ "`n"
 Sleep, 15000
} Until (n > 1000)
thanks it's working but can you please add select all before typing the new number. it should be like 1 {enter} wait 15seconds then ctrl+a 2 {enter}

User avatar
mikeyww
Posts: 26856
Joined: 09 Sep 2014, 18:38

Re: I need help for typing and entering script.

Post by mikeyww » 02 Dec 2022, 21:49

Code: Select all

n   =  996
end = 1000
Loop {
 Send % (A_Index > 1 ? "^a" : "") n++ "`n"
 Sleep,  n > end ? 0 : 15000
} Until (n > end)
SoundBeep, 1000

rileemarks11
Posts: 4
Joined: 02 Dec 2022, 19:31

Re: I need help for typing and entering script.

Post by rileemarks11 » 04 Dec 2022, 12:55

mikeyww wrote:
02 Dec 2022, 20:04
Welcome to this AutoHotkey forum!

Code: Select all

n = 981
Loop {
 Send % n++ "`n"
 Sleep, 15000
} Until (n > 1000)
How can I add a custom url behind that ascending number, please help :)

User avatar
mikeyww
Posts: 26856
Joined: 09 Sep 2014, 18:38

Re: I need help for typing and entering script.

Post by mikeyww » 04 Dec 2022, 14:05

Code: Select all

n   =  996
end = 1000
url = http://www.autohotkey.com/
Loop {
 SendInput % (A_Index > 1 ? "^a" : "") n++
 SendInput {Text}%url%`n
 Sleep,  n > end ? 0 : 15000
} Until (n > end)
SoundBeep, 1000

Post Reply

Return to “Ask for Help (v1)”