| View previous topic :: View next topic |
| Author |
Message |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Tue May 06, 2003 8:25 am Post subject: Newbie Question |
|
|
All,
Just starting with VDS and want to be able to get the contents of the clipboard into a variable. I see only the option of Appending to, Setting or Clearing the clipboard. I want to Read the darn thing... Any help on how i can do this would be good.
cheers
Sanjuro
 _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue May 06, 2003 8:59 am Post subject: |
|
|
Hi Sanjuro and welcome as a newbie,
i just had a look at the help file and found nothing that would do what you need...strange isn't it?
may be someone else knows how to do it...
Serge
ps search vdsworld.com to see if there is a dll that will do what you want...just type CLIPBOARD in the search box[/code] _________________
|
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue May 06, 2003 9:04 am Post subject: |
|
|
just did a search for CLIPBOARD and found nothing at vdsworld.com...so it's up to someone who knows what to do to help...
Serge _________________
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue May 06, 2003 10:12 am Post subject: |
|
|
One way of doing it:
| Code: | clipboard set,"Clipboard text"
list create,1
list paste,1
%%variable = @text(1)
info %%variable |
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Tue May 06, 2003 10:26 am Post subject: |
|
|
I figured that the clipboard to list to variable would do it but was hoping for a single line solution! Thanks to all that posted, such quick replies...sounds like me...doing VDS instead of what I'm paid to do!
Thanks again fellas
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue May 06, 2003 7:00 pm Post subject: |
|
|
Welcome, Sanjuro!
Please beware that Dr. Dread's code is error-free. However, if you put it
in a loop, or use it again in your program, you will need to close the list
before using it again... Like this:
| Code: | clipboard set,"Clipboard text"
list create,1
list paste,1
%%variable = @text(1)
info %%variable
list close,1 |
If you wait for the release of VDS 5 there will also be an @CLPBRD()
function which will do all of this in one line.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Wed May 07, 2003 8:13 am Post subject: |
|
|
Hi Freezing Fire,
Wasn't aware of the need to close before re-using a list, so thanks. On the subject of VDS5; a question I am sure you've not been asked before ....is there a guesstimate date for its release? The SADE site seems a little thin on new info.
Cheers!
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed May 07, 2003 1:10 pm Post subject: |
|
|
| Sanjuro wrote: |
Wasn't aware of the need to close before re-using a list, so thanks. |
You don't really have to close a list for reusing it. Once you've created your list you can use it as many times
as you'd like - adding stuff, emptying it, putting new string in it etc...
Just don't try to open the same list again - then you'll get an error. So if you are doing loops in your program,
you need to put your LIST CREATE,1 statement outside the loop or make sure that you close it at the end of each
loop.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed May 07, 2003 7:11 pm Post subject: |
|
|
| Sanjuro wrote: | | ....is there a guesstimate date for its release? The SADE site seems a little thin on new info. |
Yes the current SADE site does need a bit of touch-up and with VDS 5
there will be a new VDS site!
As for the date of the release, I am thinking within a month or so.
| Dr. Dread wrote: | | Sanjuro wrote: |
Wasn't aware of the need to close before re-using a list, so thanks. |
You don't really have to close a list for reusing it. Once you've created your list you can use it as many times
as you'd like - adding stuff, emptying it, putting new string in it etc...
Just don't try to open the same list again - then you'll get an error. So if you are doing loops in your program,
you need to put your LIST CREATE,1 statement outside the loop or make sure that you close it at the end of each
loop.
Greetz
Dr. Dread |
Entirely true. I meant before you use LIST CREATE,1 again you would need
to use LIST CLOSE,1 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Thu May 08, 2003 6:56 am Post subject: |
|
|
| Quote: | As for the date of the release, I am thinking within a month or so.
|
Sounds like I got VDS a month too early then, never mind I am sure 5 will be worth the upgrade.
Thanks
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Thu May 08, 2003 8:04 am Post subject: |
|
|
Skit3000,
I have only just started to trawl the online archives here and I've gotta say they make for some good reading. Its good to see such an active forum. I am a member of the AutoIt users forum on Yahoo and that has about 10,000 posts. If I cant find the answer to my problem there then I am doing something wrong! Really impressed by the extensions to VDS as well, some of the DLL's around really enhance VDS and have allowed me to limit the use of other tools to accomplish my goals. I Wish I new enough to make my own DLL's but I know that I am a poor programmer. ( I am the 'CHANCE' that DREDD refers to in his signature!)
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Sanjuro Contributor


Joined: 01 May 2003 Posts: 59 Location: Norfolk-United Kingdom
|
Posted: Thu May 08, 2003 8:15 am Post subject: |
|
|
Going back to my original post, can I just send a CTRL V to my own window to paste the text to a hidden control? and then read it into a variable from there?
Guess maybe I will just try it and see!
Sanjuro _________________ "Apparently three out of four people make up 75 percent of the population.  |
|
| Back to top |
|
 |
|