| View previous topic :: View next topic |
| Author |
Message |
Andi
Joined: 11 Feb 2005 Posts: 157 Location: Germany, Niestetal
|
Posted: Tue May 03, 2005 5:10 pm Post subject: Question to use ClipWait |
|
|
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 |
|
 |
TeknoMusicMan
Joined: 14 Apr 2005 Posts: 188 Location: Wisconsin, USA
|
Posted: Tue May 03, 2005 5:46 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Tue May 03, 2005 7:37 pm Post subject: |
|
|
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 |
|
 |
Andi
Joined: 11 Feb 2005 Posts: 157 Location: Germany, Niestetal
|
Posted: Wed May 04, 2005 5:04 am Post subject: |
|
|
Thank you for your answers!
...so it must be also possible to use this construct to remove leading and trailing spaces
AutoTrim, On
Clipboard = %Clipboard% |
|
| Back to top |
|
 |
|