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, 1:46 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

Author Topic: I need simple alias help  (Read 6840 times)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
I need simple alias help
« on: April 03, 2008, 10:43 PM »
I am trying to convert my launchy commands to FARR. I tried to read the doc and look at the forum but yet I cannot achieve what I need.

I have a command line timer that I can pass a timecode like 00:15:00 that is use to countdown. I am using this with launchy however I cannot do it withFARR

here is what I have

alias name = countdown
Results = countdown $$1 | E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\1Time\1Time.exe /t"$$1" /n  (t and n are 1time.exe arguments)

Farr finds the alias but when I put my time code in FARR line, program does not launch at all. It looks like I cannot pass the arguments to 1time.exe
« Last Edit: April 03, 2008, 10:45 PM by kartal »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #1 on: April 03, 2008, 10:53 PM »
enclose the path in quotes. try it like this:
Results = countdown $$1 | "E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\1Time\1Time.exe" /t"$$1" /n

or

Results = countdown $$1 | "E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\1Time\1Time.exe" /t$$1 /n

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #2 on: April 03, 2008, 11:01 PM »
Lanux that does not work either.

In Farr input line if I type " countdown 00:15:00 " does not even start the program. But in  launchy same arguments would start timer that will countdown from 15 min.

here is the screenshot

http://stashbox.org/...Edit-Group-Alias.jpg
« Last Edit: April 03, 2008, 11:04 PM by kartal »

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #3 on: April 04, 2008, 12:41 AM »
It says that "regular expression pattern" is optional but, it seems like nothing works without them ?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #4 on: April 04, 2008, 01:18 AM »
It says that "regular expression pattern" is optional but, it seems like nothing works without them ?

i'm not sure about that but just in case put these in the "reg-ex pattern" box: ^countdown (.*)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #5 on: April 04, 2008, 01:19 AM »
Yes I figured that. But it says optional with capitals. It does not make sense really. Once that box is filled everything works fine

tinjaw

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #6 on: April 04, 2008, 05:23 AM »
I'm guessing here but...

I think you should be using

countdown $$1 | E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\1Time\1Time.exe /t$$1 /n

and I would suggest trying

countdown $$1 | E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\1Time\1Time.exe /t$$1

and see if that works. Mouser's code may be interpreting the /n as a newline.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: I need simple alias help
« Reply #7 on: April 04, 2008, 05:28 AM »
regular expression is optional in the sense that if you make an alias which doesnt take any expressions, you don't need it.
as soon as you want to have it match what you type with some parameters then you need to use a regular expression.

you might think that FARR could simply be smart enough to know that when you type "countdown BLAH" that the "BLAH" part should be treated like a parameter -- but FARR can't tell if the BLAH is supposed to be a parameter or more words to narrow down the search more, which is what it is assuming.

one thing we could add which addresses someone else's request for a way to easily pass commandline arguments is to add a special character meaning everything after this should be considered an argument, like if you type: "notepad & test.text"
then FARR would know that everything after the & should not be used for searching but should be passed as an argument to the triggered program.

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #8 on: April 04, 2008, 09:56 AM »
Mouser thanks for explanation. Since I use Launchy a lot I can tell you that "tab" works as command line starter in Launchy. So if you are searcjing for 2 words you would not use tab to start your second word, most likely you would type your 1st word then space and type your second word.

Your suggestion sounds fine as well. At the end of the day I personally would like FARR to pass arguments to any executable even if they are not defined as alias

d4ni

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 129
    • View Profile
    • Donate to Member
Re: I need simple alias help
« Reply #9 on: April 05, 2008, 01:52 PM »
one thing we could add which addresses someone else's request for a way to easily pass commandline arguments is to add a special character meaning everything after this should be considered an argument, like if you type: "notepad & test.text"
then FARR would know that everything after the & should not be used for searching but should be passed as an argument to the triggered program.

That would be nice.