Jump to content
Macro Express Forums

Recommended Posts

Posted

Here's what I have so far:

 

Contol Key Down

Text Type: c

Contol Key Up

Variable Set String %T1% from Clipboard

Variable Set Integer: %N1% from Position of Text in Variable %T1%

Variable Set Integer: %N1% = %N1% - 4

Variable Modify String: Delete Part of %T1%

Variable Modify String: "External - SecureCRT"

Text Type: z -os <CTRLD>v<CTRLU> -s

 

I'm trying to get a number from the cliboard. Copy to it, parse out the piece I need (xxx-xxxxxxx-xxxxxxx), switch to my CRT window and run a command with what I copied out. Where am I going wrong? I run the macro and it switches to the CRT window and copies the wrong thing, looks like random text.

 

Thanks!

Posted

Yes, you should stick to the same thread.

 

You are pasting from the clipboard. You need to play back the text of the variable. If the number sequence is saved to variable T1, then you need to enter %T1% in the Text Type command rather than <CTRLD>v<CTRLU>.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...