topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday April 18, 2024, 5:20 am
  • 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: Advanced Aliases  (Read 3247 times)

dewin

  • Participant
  • Joined in 2012
  • *
  • Posts: 2
    • View Profile
    • Donate to Member
Advanced Aliases
« on: September 03, 2012, 08:59 PM »
You can now specify multiple programs to launch within one alias by separating them with ;;;
How would the syntax look, AND can this be used for web-searches too?
One search term launching multiple searches in different tabs.


Example imgx searches:
http://www.picsearch.com/search.cgi?q=
and
http://images.google.com/images?q=

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: Advanced Aliases
« Reply #1 on: September 03, 2012, 10:02 PM »
You can now specify multiple programs to launch within one alias by separating them with ;;;
How would the syntax look

As an example, made an alias with the following in the "Result(s)" field:

"c:\Program Files\Internet Explorer\iexplore.exe" http://reddit.com;;;"c:\Program Files\Internet Explorer\iexplore.exe" https://donationcoder.com

It brought up two IE windows here.  When I tried with Firefox, I got two tabs.

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: Advanced Aliases
« Reply #2 on: September 03, 2012, 11:00 PM »
To be more specific to your inquiry, try this:
Screenshot - 9_3_2012 , 10_57_45 PM.png

To use it, type something like:
des mouser
to open two web pages at the same time which perform the searches at the different sites.



You can import this into your aliases by going to the myaliases.alias alias and right clicking and choosing import, and then pasting:
1000>>>des>->http://www.picsearch.com/search.cgi?q=$$u1;;;http://images.google.com/images?q=$$u1>+>^des (.*)$



Notes:
  • We could have used $$1 instead of $$u1, but $$u1 will do some replacements that are useful in some browser urls (like spaces into +).
  • In ewemoa's example he specified the explicit path to internet explorer, but you can leave that out if you want default browser to be used.

dewin

  • Participant
  • Joined in 2012
  • *
  • Posts: 2
    • View Profile
    • Donate to Member
Re: Advanced Aliases
« Reply #3 on: September 04, 2012, 12:12 AM »
Awesome, thanks guys!  :Thmbsup:
I'll probably edit my aliases manually, as I got a few multisearches.

<AliasEntry>
        <AliasText>xpic</AliasText>
        <Score>1000</Score>
        <Regex>^xpic(.*)$</Regex>
        <Results>
            <Result>http://images.google.com/images?q=$$u1;;;http://www.webshots.com/search?query=$$u1</Result>
        </Results>
    </AliasEntry>