The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
Alternative to Session.Copy |
Post Reply |
Author | ||||
kbdav
Newbie Joined: July 12 2016 Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: January 22 2019 at 7:37am |
|||
I use
However, I am now in the need of grabbing multiple lines from a session, and the only way I know to do this is by using
as there is an option for top and bottom arguments (in .getText(), there is only the argument for a single line). Is there any method that would effectively do something like this (without the syntax error):
I do not like to use the clipboard because I have had issues in the past with AccuTerm locking the clipboard up and me having to add extra code to restore the original clipboard's contents before the .Copy, such as:
and is rather inconvenient, especially considering that getText() only requires a single line. I've tried to find better documentation of session.getBlock(), but doesn't appear to do what I need or I just can't find the proper way to use it. Btw, I am (still) using AccuTerm 2K2
|
||||
kbdav
Newbie Joined: July 12 2016 Status: Offline Points: 23 |
Post Options
Thanks(0)
|
|||
In the meantime, I created this function to mimic what I am wanting to do, but if someone knows of a native way to accomplish this I am all ears!
(pubSession is essentially just a global variable / Session obj I use so I don't have to pass the session as an argument between Subs)
|
||||
PSchellenbach
Admin Group Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(2)
|
|||
Another alternative would be to select the area you want to get, then use the Selection property:
|
||||
kbdav
Newbie Joined: July 12 2016 Status: Offline Points: 23 |
Post Options
Thanks(0)
|
|||
Ahh, a method without a loop, nice!
Thanks for the response
|
||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |