DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Not getting keyword modifiers  (Read 6,746 times)

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Not getting keyword modifiers
« on: November 09, 2007, 03:41 PM »
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, 03:43 PM by justice »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Not getting keyword modifiers
« Reply #1 on: November 10, 2007, 11:33 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

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Not getting keyword modifiers
« Reply #2 on: November 10, 2007, 01:26 PM »
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
  • ***
  • Posts: 560
Re: Not getting keyword modifiers
« Reply #3 on: November 11, 2007, 10:15 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

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Not getting keyword modifiers
« Reply #4 on: November 11, 2007, 01:43 PM »
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: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Not getting keyword modifiers
« Reply #5 on: November 11, 2007, 02:30 PM »
I will be making screencasts showing all of the tricks in action, as soon as i get the time  :up:

Original address: https://www.donationcoder.com/forum/index.php?topic=10756.0