topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 3:53 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jolleyjoe [ switch to compact view ]

Pages: [1]
1
Find And Run Robot / Re: How to copy command line output in an alias?
« on: February 03, 2016, 07:10 PM »
ok good question..

heres what i THINK should work, an alias result that looked something like this:

appcap "path/to/script 20 ft to yards";;; copyclip %lastappcap%

i have not tested that, so i can't be entirely sure, and if you can't get that to work i will make sure it can be done somehow.

but here's how that's SUPPOSED to work:
The appcapp command should launch the specified program, and capture it's output in %lastappcap%.
Then the ;;; separates the next command to run, which tells farr to copy the contents of %lastappcap% to clipboard.

If that is all too messy, i might add a new appcap like appcclip to run an app and copy result to clipboard.

And, before you try making that work, you might try the simpler:
appcapappendmemo path/to/script 20 ft to yards

See here for an example: https://www.donation...ndex.php?topic=28136

All of them gave me the same error:

Trying appcapappendmemo with double quotes:
Code: Text [Select]
  1. appcapappendmemo "path/to/script $$1"

and appcapappendmemo without double quotes:
Code: Text [Select]
  1. appcapappendmemo path/to/script $$1

Trying appcap:
Code: Text [Select]
  1. appcap "C:\path\to\script $$1";;; copyclip %lastappcap%

In the results, it would show me (note unmatched double-quote):
Code: Text [Select]
  1. script $$1";;; copyclip

I tried sending:

Code: Text [Select]
  1. alias time in taiwan

All of the above shows displays this error:

Code: Text [Select]
  1. Error launching redirected commandline program: ("path\to\script time in taiwan")

For reference, this command works fine in cmd.exe:
Code: Text [Select]
  1. path\to\script time in taiwan

Please let me know if you have any other suggestions!

2
Find And Run Robot / Re: How to copy command line output in an alias?
« on: February 03, 2016, 01:05 PM »
I'm going to have to look into the escaping of pipe character -- i thought that putting it in double quotes should work, but it's definitely possible I'm wrong.

But getting back to what you are trying to do..

Can you elaborate a little more on exactly what you are trying to do .. FARR does have commands for copying things to the clipboard, etc.

I have a script that will fetch results of a query, for example:

Code: Text [Select]
  1. > path/to/script 20 ft to yards
  2. 20 feet = 6.6 yards

I'd like to get that output into my clipboard without adding the clipping functionality to the script itself. Please let me know if I can help clarify further.

3
Find And Run Robot / Re: How to copy command line output in an alias?
« on: February 03, 2016, 12:04 PM »
try using double quotes to surround the commandline.

Thanks for the lightning fast response!

Trying this as the alias:

Code: Text [Select]
  1. "echo $$1 | clip"

Running `test` shows `echo $$1` without the `| clip` part, so it seems that it may still not be escaping the pipe ("|") symbol properly. Any other suggestions?

4
Find And Run Robot / How to copy command line output in an alias?
« on: February 03, 2016, 11:44 AM »
Hi everyone! Loving FARR.

I am having some issues using a pipe ("|") within an alias:

echo test |clip

but the pipe has a special meaning within an alias.

Is there a way I can escape the pipe?
Is there another way I can easily copy the output of a command within an alias? I looked into copyclip "Special/Virtual Launch Strings/Commands", but could not figure out a solution.

Thanks in advance for any help!

Pages: [1]