Indigo Rose Software
  #1  
Old 10-23-2008
nilssylve nilssylve is offline
Forum Member
 
Join Date: Oct 2008
Posts: 4
Help

Hej.Im a beginners in this and need your help. A program in windows copy the plain text to the clipboard. I would then paste the text into a field in the factory setup. How do I do this?
Reply With Quote
  #2  
Old 10-23-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,900
Quote:
Originally Posted by nilssylve View Post
Hej.Im a beginners in this and need your help. A program in windows copy the plain text to the clipboard. I would then paste the text into a field in the factory setup. How do I do this?
you would use the cliboard plugin (see help for examples)
Clipboard.CopyText()

A simple sample is:
Code:
if Clipboard.IsTextAvailable() then
	DlgEditField.SetProperties(CTRL_EDIT_01, {Text=Clipboard.CopyText()});
end
__________________

Last edited by jassing; 10-23-2008 at 06:07 PM. Reason: added sample code
Reply With Quote
  #3  
Old 10-23-2008
nilssylve nilssylve is offline
Forum Member
 
Join Date: Oct 2008
Posts: 4
Thanks for your help Jassing.

If the second program to copy text from a variety of fields, and this text will then be pasted in various fields in the setup factory have the script in setup factory pause about 10 seconds between each time the second copy. How could this script look like? Grateful if you have time to answer this question.
Reply With Quote
  #4  
Old 10-23-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,900
Quote:
Originally Posted by nilssylve View Post
If the second program to copy text from a variety of fields, and this text will then be pasted in various fields in the setup factory have the script in setup factory pause about 10 seconds between each time the second copy. How could this script look like? Grateful if you have time to answer this question.
have a look at Application.Sleep().
__________________
Reply With Quote
  #5  
Old 10-23-2008
nilssylve nilssylve is offline
Forum Member
 
Join Date: Oct 2008
Posts: 4
Hello again!

Hello again. Can you give me an example of how it would look like if the following would happen: paste to the field, "rubrik1" pause for 3 sec, paste in the box "rubrik2", "pause for 3 sec
Reply With Quote
  #6  
Old 10-23-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,900
Quote:
Originally Posted by nilssylve View Post
Hello again. Can you give me an example of how it would look like if the following would happen: paste to the field, "rubrik1" pause for 3 sec, paste in the box "rubrik2", "pause for 3 sec
1st off, edit boxes are not refered to by the variable name you store it to; so you need to grasp that concept.

2nd, i already gave you the code to put the clipboard into an edit box.

3rd I already gave you the call to "pause" -- did you read help? Did you try anything?

To pause for 3 seconds
Code:
Application.Sleep( 3000 );
Now you've got all the code to do each step of what you want.... Just put it together...
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software