Jump to content
Sign in to follow this  
keotix

[SEND ("text")] quicker?

Recommended Posts

keotix

is there a way to speed up autoit's typing?

its typing 1 letter at once (fast, but not enough for a game), can i make it so that it types a whole word in the time it takes to type one letter?

i seen someone use .ini to do somthing like this? but i dont know what exactly to do..

Share this post


Link to post
Share on other sites
JRowe

; Set the AutoIt delay options
Opt("SendKeyDelay", 0)
Opt("SendKeyDownDelay", 0)
;If 0 doesnt work, try 1
$TextIWantToSend = "DUN DUN DUN DUNNNNNNNN. DUN DUN DUN DUNNNNNNNNN. DEDEDEDEDEDEDEDEDEDEDEDA."
ControlSend("Untitled", "", "Edit1", $TextIWantToSend)

Open up notepad, run the script, it will send the $TextIWantToSend really fast.

Anyway, just throw

Opt("SendKeyDelay", 0)

Opt("SendKeyDownDelay", 0)

Into your script and you should be set :)

Share this post


Link to post
Share on other sites
AlmarM

_Send("Text")

Func _Send($aText)
$OldClip = ClipGet()
$NewClip = ClipPut($aText)
Send("^v")
ClipPut($OldClip)
EndFunc

Try this :)

-AlmarM-


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
amokoura

_Send("Text")

Func _Send($aText)
$OldClip = ClipGet()
$NewClip = ClipPut($aText)
Send("^v")
ClipPut($OldClip)
EndFunc
That's an interesting solution. Could it have any drawbacks? If not, I'm going to use that instead of the slowish Send.

Share this post


Link to post
Share on other sites
AlmarM

That's an interesting solution. Could it have any drawbacks? If not, I'm going to use that instead of the slowish Send.

Thanks, I knew this was usefull sometime :)

And what you exacly mean with drawbacks?

-AlmarM-


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
Sheri

That's an interesting solution. Could it have any drawbacks? If not, I'm going to use that instead of the slowish Send.

I like this approach and have used it alot with other scripting programs. But it depends on who is using it. Some folks object to scripts that alter the clipboard. E.g., folks running clipboard trackers end up with extra clipboard changes.

Share this post


Link to post
Share on other sites
amokoura

And what you exacly mean with drawbacks?

I meant in what aspects Send would be better than clipboard handling.

Sheri has a good point. Luckily my environment doesn't likely have any clipboard monitoring apps.

Share this post


Link to post
Share on other sites
AlmarM

What u mean with changes?

I did add

$OldClip = ClipGet()
;Etc.
$ClipPut($OldClip)

Or Is it not THAT way u mean it?

-AlmarM-


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×