Jump to content

[SEND ("text")] quicker?


Recommended Posts

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..

Link to comment
Share on other sites

; 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 :)

Link to comment
Share on other sites

_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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...