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
'clipboard not open' -urgent pls
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
details
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
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
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Where are you getting message?
I have provided some red observations, and a blue question.
I have provided some red observations, and a blue question.
All comments, questions are thoughts I had when reading, have not tested any of observations.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
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!