auto typer Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
payton667

auto typer  Topic is solved

19 Apr 2016, 15:09

i have this auto typer here that someone made but i have no idea how to start it. if anyone could tweek the typer for me to make it easier to use that would be awesome. thank you for your time:)

string = hello
Time = 1000

Settimer, label, %time%
Return

Label:
Send %string%
Return
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: auto typer

19 Apr 2016, 15:28

A second after you run the script it should start typing "hello" at a rate of once a second.

Edit: The below script is started by pressing win + s, and stopped by the same hotkey.

Code: Select all

string := "hello"
time := 1000

toogle := 0
return

#s::
	toogle := !toogle
	if(toogle){
		Settimer, Label, %time%
	} else {
		Settimer, Label, Off
	}
Return

Label:
	Send, %string%
Return
Please excuse my spelling I am dyslexic.
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: auto typer

19 Apr 2016, 16:55

Here's a version where you press F12 to start it, and Ctrl+F12 to stop it...

Code: Select all

F12::
string = hello
Time = 1000

Settimer, label, %time%
Return

Label:
Send %string%
Return

^F12::
SetTimer, label, Off
Return
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: auto typer

19 Apr 2016, 20:05

Here's a third version using expression syntax, F2 to toggle.

Code: Select all

string:="hello"
time:=1000

F2::setTimer,sendStr,% t:=!t?time:"Off"

sendStr:
send % string
return
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build
payton667

Re: auto typer

19 Apr 2016, 22:56

these are all very helpful. but i forgot i needed it to press enter after it typed. if any of you guys could do that for me as i have never actually used ahk although im sure this is a very simple task. thank you very much for your time:)
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: auto typer

20 Apr 2016, 01:05

Change string:="hello" to string:="hello{enter}". Same applies to the other scripts.
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build
bihwe
Posts: 1
Joined: 19 Oct 2018, 23:49

Re: auto typer

19 Oct 2018, 23:58

how do I make it type two different things at different times?
attygurl
Posts: 1
Joined: 07 May 2021, 03:46

Re: auto typer

07 May 2021, 03:55

Shadowpheonix wrote:
19 Apr 2016, 16:55
Here's a version where you press F12 to start it, and Ctrl+F12 to stop it...

Code: Select all

F12::
string = hello
Time = 1000

Settimer, label, %time%
Return

Label:
Send %string%
Return

^F12::
SetTimer, label, Off
Return
is there a way to set CTRL+5 to toggle on and pause it? Then when I press CTRL+5 again the script will run and so on and so forth?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: robodesign and 253 guests