Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 02, 2016, 10:38:07 PM
  • Proudly celebrating 10 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: Not getting keyword modifiers  (Read 2721 times)

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Not getting keyword modifiers
« on: November 09, 2007, 09:41:13 AM »
I've got an alias that I want to use as a keyword modifier. How do I go about?? All the examples in the FARR helpfile are incomplete as they don't suply the actual alias used. (see +audio)
I have an alias that works like this:

Quote
stt2 d:\stt2\program.txt
it would run stt2 with the parameter the program.txt.

Now i want to run it like this:
Quote
+stt2 d:\stt2\.txt program              or if this is easier         d:\stt2\.txt program +stt2
Instead of passing the program.txt to stt2 instead it launches the textfile with the associated app (notepad). any of the two syntaxes given is fine.

How do I have to change alias?
the code of the alias is as follows:
Quote
1000>>>Switch To Task++ Launch>->+stt2 $$1 |D:\scripts\SwitchToTask\SwitchToTask++.exe $$1>+>^stt2 (.*)
« Last Edit: November 09, 2007, 09:43:46 AM by justice »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Not getting keyword modifiers
« Reply #1 on: November 10, 2007, 05:33:45 AM »
I'm not sure what you mean, but if it's alias-related, i'm sure nitrix can be of assistance, he can bend those better than mouser ;)
If he doesn't stop by here, send him a pm!

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Not getting keyword modifiers
« Reply #2 on: November 10, 2007, 07:26:08 AM »
I've had a helpful chat with mouser over IRC and i'm clued up now :) Tip: don't use an adapted regex alias lol. just name it stt2 in my case and put the path to the program in the bottom textarea and it works.

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 516
    • View Profile
    • Donate to Member
Re: Not getting keyword modifiers
« Reply #3 on: November 11, 2007, 04:15:39 AM »
Quote
I'm not sure what you mean, but if it's alias-related, i'm sure nitrix can be of assistance, he can bend those better than mouser
that's too much jgpaiva  :-[

Quote
I've had a helpful chat with mouser over IRC and i'm clued up now  Tip: don't use an adapted regex alias lol. just name it stt2 in my case and put the path to the program in the bottom textarea and it works.
glad you made it work, i guess it would be helpful to add a screenshot in the help file showing some exemples of alias tricks : action keyword, noresults keyword, etc.

since it's hard sometimes to differentiate alias name, from alias regex mask, from results...

cheers, nitrix

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Not getting keyword modifiers
« Reply #4 on: November 11, 2007, 07:43:02 AM »
yes i said to mouser that the examples don't show the setup of the alias that is used, for example +audio

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,405
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Not getting keyword modifiers
« Reply #5 on: November 11, 2007, 08:30:10 AM »
I will be making screencasts showing all of the tricks in action, as soon as i get the time  :up: