Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6

Thread: Help

  1. #1
    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?

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    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 05:07 PM. Reason: added sample code


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    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.

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    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().


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    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

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    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...


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts