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: %cliptext% then ENTER/RETURN  (Read 6,787 times)

mcquicker

  • Participant
  • Joined in 2012
  • *
  • Posts: 7
%cliptext% then ENTER/RETURN
« on: December 11, 2019, 03:44 PM »
Is there a command to ENTER or RETURN after a SEARCH %cliptext% , so the action is carried out automatically?

Many thanks in advance,
Peter

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: %cliptext% then ENTER/RETURN
« Reply #1 on: December 11, 2019, 03:45 PM »
Can you elaborate a little, I'm not sure I fully understand what you are asking.

mcquicker

  • Participant
  • Joined in 2012
  • *
  • Posts: 7
Re: %cliptext% then ENTER/RETURN
« Reply #2 on: December 11, 2019, 03:52 PM »
Thanks for the quick reply.

I have a macro that executes an internet FRR search after text is pasted from the clipboard. I'd like to make it so once the text is pasted, for FRR to execute the search. Usually, I have to hit "enter" or "return" for it to happen.

Many thanks in advance,
P

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: %cliptext% then ENTER/RETURN
« Reply #3 on: December 11, 2019, 10:56 PM »
Ok, yes this can be done in a couple of ways.. I just need to wake up first and remember how :)

Can you tell me how you are triggering the search in FARR from your macro? Is it from the commandline or are you sending keystrokes, etc?

mcquicker

  • Participant
  • Joined in 2012
  • *
  • Posts: 7
Re: %cliptext% then ENTER/RETURN
« Reply #4 on: December 11, 2019, 11:12 PM »
My keyboard -- Logitech K350 keyboard has several extra keys -- on the side. One key I assign Ctrl-Shift-X to execute a "Search %cliptext%" on FRR. I'd like it to run without me having to hit "enter" or "return."

I have several FRR search macros, mostly to look up words, etc. It's a fantastic help.

Many thanks,
Peter

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: %cliptext% then ENTER/RETURN
« Reply #5 on: December 11, 2019, 11:50 PM »
I think you should just be able to add "\n" to the end of the string you are sending to FARR to simulate pressing enter, so send "Search %cliptext%\n"  like that?

mcquicker

  • Participant
  • Joined in 2012
  • *
  • Posts: 7
Re: %cliptext% then ENTER/RETURN
« Reply #6 on: December 12, 2019, 02:58 AM »
Thanks for the suggestion. It is copying the text into tie dialogue box, and its executing the search, but not on the web or even in my PC. It gives a 0 find in each case. You're on the right track, though.

Many thanks.

Peter

mcquicker

  • Participant
  • Joined in 2012
  • *
  • Posts: 7
Re: %cliptext% then ENTER/RETURN
« Reply #7 on: December 12, 2019, 03:18 AM »
Sorry. It is working! Many thanks....  I had a problem with the aliases and the search engines. Fixed it and the \n works exactly as I want it to work.

Many, many thanks. FRR is a great program. I wished I had more time to really get into it.

Peter

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: %cliptext% then ENTER/RETURN
« Reply #8 on: December 12, 2019, 03:55 AM »
Glad to hear it  :up:

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