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 03, 2016, 03:38:21 AM
  • 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: Alias - Display <string> in description?  (Read 1553 times)

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 112
    • View Profile
    • Donate to Member
Alias - Display <string> in description?
« on: June 24, 2015, 04:12:35 AM »
One of my aliases uses:
Dictionary - <string> | http://dict.leo.org/...?lp=ende&search=$$1 /ICON=icons\dictionary.ico

When I invoke it by entering e.g. "dic"
The description right from the icon states:
dict (Dictionary - )

So:
<string> is resolved to nothing

How do I escape it properly that <string> isn't resolved at all and I get instead:
dict (Dictionary - <string>)
« Last Edit: June 26, 2015, 02:36:15 PM by highend01 »

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 231
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #1 on: June 26, 2015, 09:52:15 AM »
You can use $$1 instead of <string> that will resolve to the string in the input field
It is impossible to make anything foolproof because fools are so ingenious.

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 112
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #2 on: June 26, 2015, 11:19:00 AM »
How do I escape it properly that <string> isn't resolved at all and I get instead:
dict (Dictionary - <string>)
« Last Edit: June 26, 2015, 02:36:02 PM by highend01 »

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 231
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #3 on: June 26, 2015, 11:50:13 AM »
Ah, sorry, the <string> is evaluated because it is recognised as an html tag. I had a similar problem when writing a plugin for FARR some years back. As I remember, you can use regular html codes. so &lt; instead of < should do it
It is impossible to make anything foolproof because fools are so ingenious.

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 112
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #4 on: June 26, 2015, 02:45:35 PM »
Thanks but unfortunately html tags don't work either.

Dictionary - &lt;string&gt; | http://dict.leo.org/...?lp=ende&search=$$1 /ICON=icons\dictionary.ico

get's displayed without interpreting them:
dict (Dictionary - &lt;string&gt;)

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: Alias - Display <string> in description?
« Reply #5 on: June 26, 2015, 07:22:07 PM »
how strange.. i might have to look into this.

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 112
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #6 on: June 27, 2015, 02:22:43 AM »
I'd appreciate this :)