Hi.
I couldn't understand from the documentation which is the best method to send text into text field in terms of speed?
When I do this in Twitter reply, any of these methods work quite slow and part-by-part for just one sentence.
It takes about 2-3 seconds to send text into the input field.
Why is it so slow?
It should be almost instant.
Send vs SendText vs SendInput for text input?
-
- Posts: 31
- Joined: 07 Mar 2024, 06:50
Re: Send vs SendText vs SendInput for text input?
Hello,
You can use your script to determine which approach is the fastest, because a script can compute elapsed time.
SendInput is the default Send mode.
If you are sending only text or using syntax otherwise recognized by text mode, then text mode may be a good choice.
What your target program, other programs, or CPU might also be doing at the same time might be beyond your control.
If you have a script that does not work, posting it in the forum enables others to examine it, test it, and provide you with specific feedback about it.
An alternative to Send would be using the Windows clipboard.
You can use your script to determine which approach is the fastest, because a script can compute elapsed time.
SendInput is the default Send mode.
If you are sending only text or using syntax otherwise recognized by text mode, then text mode may be a good choice.
What your target program, other programs, or CPU might also be doing at the same time might be beyond your control.
If you have a script that does not work, posting it in the forum enables others to examine it, test it, and provide you with specific feedback about it.
SetKeyDelay allows you to alter key delays if you are not using SendInput.If a script other than the one executing SendInput has a low-level keyboard hook installed, SendInput automatically reverts to SendEvent (or SendPlay if SendMode "InputThenPlay" is in effect). This is done because the presence of an external hook disables all of SendInput's advantages, making it inferior to both SendPlay and SendEvent. However, since SendInput is unable to detect a low-level hook in programs other than AutoHotkey v1.0.43+, it will not revert in these cases, making it less reliable than SendPlay/Event.
Source: Send - Syntax & Usage | AutoHotkey v2
An alternative to Send would be using the Windows clipboard.
Re: Send vs SendText vs SendInput for text input?
@slishnevsky
if you have a huge text wall you better use A_clipboard method because its faster and has no erorr, sendinput is good for mimicking the keyboard, especially triggering the program's functions by keyboard shortcuts.
if you have a huge text wall you better use A_clipboard method because its faster and has no erorr, sendinput is good for mimicking the keyboard, especially triggering the program's functions by keyboard shortcuts.
Who is online
Users browsing this forum: Albireo, Daniel_San, Draken, Noitalommi_2, reddyshyam and 35 guests