'clipboard not open' -urgent pls

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
setcat

'clipboard not open' -urgent pls

Post by setcat » Tue Sep 21, 2004 11:50 am

i want to take .txt details
im using commands like
PutClipBoard
GetClipBoard

its give error clipboad can;t open bla bla


i seek ur help

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Sep 21, 2004 3:53 pm

Please provide a copy of the script and show where you are getting failures.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

setcat

details

Post by setcat » Wed Sep 22, 2004 11:55 am

Let>RandomTemplate=
Let>k=1
Label>start
ReadLn>FileNo,k,line
If>line=##EOF##,finish

Concat>RandomTemplate,line
Concat>RandomTemplate,%CR%
Let>k=k+1
Goto>start
Label>finish
PutClipBoard>%RandomTemplate%,%FileName%
wait>2
GetClipBoard>CurrentTemplate
wait>2
//Message>%CurrentTemplate%
Goto>BackRandomBody

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Sep 22, 2004 4:05 pm

Where are you getting message?

I have provided some red observations, and a blue question.
Let>RandomTemplate=
Let>k=1

Label>start
ReadLn>FileNo,k,line
//No definition of FileNo provided yet, need something llike: //Let>FileNo=C:\path\file.txt ?
If>%line%=##EOF##,finish
Concat>RandomTemplate,%line%%CR%
//I thnik you can include %CR% in same line
Let>k=k+1
Goto>start

Label>finish
PutClipBoard>%RandomTemplate%,%FileName%
//Not sure what you are doing here, including a comma?
//No definition of %FileName% provided yet, should be FileNo?
//May need to combine before PutClipBoard, like:
//Concat>%RandomTemplate%,,%FileName%
//PutClipBoard>%RandomTemplate%

wait>2
GetClipBoard>CurrentTemplate
//Rather then Put/Get Cllipboard, why not
//Let>CurrentTemplate=%RandomTemplate% or
//Let>CurrentTemplate=%RandomTemplate%,%FileName% ?

wait>2
//Message>%CurrentTemplate%
Goto>BackRandomBody
All comments, questions are thoughts I had when reading, have not tested any of observations.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts