topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday December 13, 2024, 3:31 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: [tip] paste command + %cliptext%  (Read 5013 times)

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
[tip] paste command + %cliptext%
« on: August 15, 2007, 05:16 AM »
the paste command is really nice...

for example you can create the bbcode alias (just call the alias bbcode, no regex...)
with the following result :

paste [quote]%cliptext%[/quote]
paste [url]http://%cliptext%[/url]
paste [b]%cliptext%[/b]
paste [i]%cliptext%[/i]

handy :
invoke FARR with the autocopy
type "bbocde quo"
press enter
that's it you selected text is now surrounded by
[quote][/quote]

@mouser, i did not manage to get the clipboard content in the result display
[i]%cliptext%[/i] | paste [i]%cliptext%[/i]
the first %cliptext% does not show
« Last Edit: August 15, 2007, 05:03 PM by nitrix-ud »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: [tip] paste command + %cliptext%
« Reply #1 on: April 16, 2008, 09:09 PM »
can i use the %cliptext% keyword in turn with the $$1 keyword in an alias? i mean if there is text in the clipboard, then %cliptext% is used but if i typed something then $$1 takes preference.

e.g. to search IMDB, the following contains $$1 as default but i'm looking for a way to merge both keywords.

IMDB - $$1[or %cliptext%] | http://www.imdb.com/find?q=$$1[or %cliptext%] /ICON=icons\imdb.ico

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: [tip] paste command + %cliptext%
« Reply #2 on: April 16, 2008, 09:14 PM »
i think $$a was made for this -- uses $$1 if provided, or cliptext if not.

it's $$c as lanux points out below.
« Last Edit: April 16, 2008, 10:50 PM by mouser »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: [tip] paste command + %cliptext%
« Reply #3 on: April 16, 2008, 10:46 PM »
thanks mouser for pointing in the right direction. it's $$c btw. ;)

ws-farr-alias-clipboard-1.png

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: [tip] paste command + %cliptext%
« Reply #4 on: April 16, 2008, 10:50 PM »
ah yes, $$c it is.