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: Advanced Aliases  (Read 4,817 times)

dewin

  • Participant
  • Joined in 2012
  • *
  • Posts: 2
Advanced Aliases
« on: September 04, 2012, 01:59 AM »
Quote
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:
Quote
http://www.picsearch.com/search.cgi?q=
and
Quote
http://images.google.com/images?q=

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: Advanced Aliases
« Reply #1 on: September 04, 2012, 03:02 AM »
Quote
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:

Code
"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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Advanced Aliases
« Reply #2 on: September 04, 2012, 04:00 AM »
To be more specific to your inquiry, try this:
Screenshot - 9_3_2012 , 10_57_45 PM.png

To use it, type something like:
Code
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:
Code
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
Re: Advanced Aliases
« Reply #3 on: September 04, 2012, 05:12 AM »
Awesome, thanks guys!  :Thmbsup:
I'll probably edit my aliases manually, as I got a few multisearches.

Quote
<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>

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