HelgeFin
Joined: 04 Apr 2007 Posts: 12
|
Posted: Wed Aug 06, 2008 8:06 am Post subject: Fast send through clipboard |
|
|
Probably this was written many times but since I couldn't find it in the wiki here it goes, with a link in the wiki.
The following will "send" text very fast through the clipboard.
Usage to send multiple line text:
| Code: | sendf("
( ` % Join`r`n
texttext asdf
asdfas
)") |
| Code: | sendf(str1) ; Send "fast"
{
; To send multiple line text:
; sendf("
; ( ` % Join`r`n
; texttext asdf
; )")
tmp=%Clipboard%
clipboard= ; Start off empty to allow ClipWait to detect when the text has arrived.
clipboard=%str1%
ClipWait ; Wait for the clipboard to contain text.
Sleep,100
Send,^v
Sleep,100
Clipboard=%tmp%
} |
|
|