topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 8:33 pm
  • 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: Alias - Display <string> in description?  (Read 4783 times)

highend01

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 188
    • View Profile
    • Donate to Member
Alias - Display <string> in description?
« on: June 24, 2015, 04:12 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 PM by highend01 »

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #1 on: June 26, 2015, 09:52 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: 188
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #2 on: June 26, 2015, 11:19 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 PM by highend01 »

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #3 on: June 26, 2015, 11:50 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: 188
    • View Profile
    • Donate to Member
Re: Alias - Display <string> in description?
« Reply #4 on: June 26, 2015, 02:45 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: 40,896
    • 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 PM »
how strange.. i might have to look into this.

highend01

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