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 

Question to use ClipWait

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Andi



Joined: 11 Feb 2005
Posts: 157
Location: Germany, Niestetal

PostPosted: Tue May 03, 2005 5:10 pm    Post subject: Question to use ClipWait Reply with quote

I've a question to ClipWait:

Is it also reasonable to use the ClipWait command, when you give some data to the clipboard by a variable?

Example:

Clipboard =
Clipboard = %var_abc%
ClipWait, 0.5

...or only when the Clipboard receives data by Ctrl + c?
Back to top
View user's profile Send private message
TeknoMusicMan



Joined: 14 Apr 2005
Posts: 188
Location: Wisconsin, USA

PostPosted: Tue May 03, 2005 5:46 pm    Post subject: Reply with quote

I would change your ClipWait to a longer value.
Quote:
Specifying 0 is the same as specifying 0.5


This Will Wait Indefinatly Untill the Clipboard contains data
Code:
Clipboard =
Clipboard = %var_abc%
ClipWait

_________________

"Make it idiot-proof, and someone will make a better idiot."
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Tue May 03, 2005 7:37 pm    Post subject: Reply with quote

When the script assigns data to the clipboard, it's never necessary to use ClipWait. This is because the data is always saved to the clipboard prior to executing the next command.

By contrast (as you suspected), when you send Control-C, sometimes the target application requires extra time to finish putting its data onto the clipboard (especially if the data is large). That would be a good time to use ClipWait.
Back to top
View user's profile Send private message Send e-mail
Andi



Joined: 11 Feb 2005
Posts: 157
Location: Germany, Niestetal

PostPosted: Wed May 04, 2005 5:04 am    Post subject: Reply with quote

Thank you for your answers!

...so it must be also possible to use this construct to remove leading and trailing spaces Very Happy

AutoTrim, On
Clipboard = %Clipboard%
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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