Scripting: Copying to and Pasting from String Variables

خرید بک لینک

I am slowly raising my knowledge in the scripting world, yet there are many things I still have yet to lea, even when it comes to seemingly simple bits of coding.

I am trying to write a script in the AccuTerm emulator. For the most part I have what I need down except some code that will allow me to copy and paste in the program. The commands to simply copy a selection is .copy and to paste from the clipboard is .paste "", however, I need something just a bit more flexible. Rather than copy to the clipboard, I need to copy into a string/variable. What I have attempted is this:

With ActiveSession
    .InputMode = 1

Dim Orig As String
Dim Rcvd As String
Dim Rmng As String

    .SetSelection 56,6,64,6
    .Copy = Orig
    .ClearSelection
    Sleep 10
    .SetSelection 67,6,77,6
    .Copy = Rcvd
    .ClearSelection
    Sleep 10
    .SetSelection 67,13,77,13
    .Copy = Rmng
    .ClearSelection
    Sleep 10

'Script continues...... Not needed in question

    .InputMode = 0
End With

But obviously it doesn't like my .copy = %%%%. So how would I copy these as strings? And when I am ready to paste these strings, what would that command be? The two options I can think of are either using the .Paste or .Output commands.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 378 تاريخ: پنجشنبه 31 تير 1395 ساعت: 8:40

صفحه بندی