AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fast send through clipboard

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
HelgeFin



Joined: 04 Apr 2007
Posts: 12

PostPosted: Wed Aug 06, 2008 8:06 am    Post subject: Fast send through clipboard Reply with quote

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%
}
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 1390
Location: The Interwebs

PostPosted: Wed Aug 06, 2008 8:48 am    Post subject: Reply with quote

I would suggest changing
Code:
   tmp=%Clipboard%

to
Code:
  tmp=%ClipboardAll%


Smile
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group