forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Newbie Question
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Tue May 06, 2003 8:25 am    Post subject: Newbie Question Reply with quote

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
Smile

_________________
"Apparently three out of four people make up 75 percent of the population. Smile
Back to top
View user's profile Send private message MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue May 06, 2003 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue May 06, 2003 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue May 06, 2003 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Tue May 06, 2003 10:26 am    Post subject: Reply with quote

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 Smile

Sanjuro

_________________
"Apparently three out of four people make up 75 percent of the population. Smile
Back to top
View user's profile Send private message MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue May 06, 2003 7:00 pm    Post subject: Reply with quote

Welcome, Sanjuro! Hi

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Wed May 07, 2003 8:13 am    Post subject: Reply with quote

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 Very Happy ....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. Smile
Back to top
View user's profile Send private message MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed May 07, 2003 9:30 am    Post subject: Reply with quote

I don't think anyone can say... Sad
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed May 07, 2003 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed May 07, 2003 7:11 pm    Post subject: Reply with quote

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! Very Happy

As for the date of the release, I am thinking within a month or so. Very Happy


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
View user's profile Send private message Visit poster's website
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Thu May 08, 2003 6:56 am    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu May 08, 2003 7:57 am    Post subject: Reply with quote

If you believe the old posts, you're even late... Wink

http://forum.vdsworld.com/viewtopic.php?t=992

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Thu May 08, 2003 8:04 am    Post subject: Reply with quote

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!) Wink

Sanjuro

_________________
"Apparently three out of four people make up 75 percent of the population. Smile
Back to top
View user's profile Send private message MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu May 08, 2003 8:08 am    Post subject: Reply with quote

Sanjuro wrote:
( I am the 'CHANCE' that DREDD refers to in his signature!) Wink


Laughing

Btw. You don't have to name the '3000' part of my name, I only use it because 'Skit' is too short to registrate on most sites... Wink

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Thu May 08, 2003 8:15 am    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group