View Full Version : Help
nilssylve
10-23-2008, 04:49 PM
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?
jassing
10-23-2008, 06:06 PM
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:
if Clipboard.IsTextAvailable() then
DlgEditField.SetProperties(CTRL_EDIT_01, {Text=Clipboard.CopyText()});
end
nilssylve
10-23-2008, 06:39 PM
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.
jassing
10-23-2008, 07:03 PM
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().
nilssylve
10-23-2008, 09:20 PM
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
jassing
10-23-2008, 11:10 PM
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
Application.Sleep( 3000 );
Now you've got all the code to do each step of what you want.... Just put it together...
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.