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: Using FARR to Issue a Control F Command  (Read 12,417 times)

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Using FARR to Issue a Control F Command
« on: August 15, 2011, 03:20 PM »
I am looking to see if FARR can by the use of a hot key send "control f". I am wanting to be able to search for something using a web browser but using FARR.

Any Ideas?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Using FARR to Issue a Control F Command
« Reply #1 on: August 15, 2011, 03:26 PM »
You could try WinSendKeys, if FARR can't do it directly for you (I'm no FARR user, so can't help in that corner)
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

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: Using FARR to Issue a Control F Command
« Reply #2 on: August 15, 2011, 03:44 PM »
Can you elaborate how you would want to use farr to do this?

Do you really mean that rather than hitting Ctrl+F you would rather hit break key, type something like "search" into farr window, then hit enter, and have FARR send the Ctrl+F? Seems a bit counter-productive..

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #3 on: August 15, 2011, 05:08 PM »
Mouser,

Sure I would like the ability to hit a hotkey and FARR issue the control f command. If possiable I would like it to paste what I copied in the clipboard into the find window. Internet Explorer would already be open...

Does this make since?

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #4 on: August 20, 2011, 07:50 PM »
Any update on this mouser?

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: Using FARR to Issue a Control F Command
« Reply #5 on: August 22, 2011, 03:49 PM »
I will add this feature.  I already have a SendKeys system for this in place in my other program Clipboard Help and Spell that allows you to send arbitrary keypresses, and i will just use that code.

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #6 on: August 24, 2011, 12:47 PM »
awesome thx mouser!

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: Using FARR to Issue a Control F Command
« Reply #7 on: October 03, 2011, 02:15 PM »
This has now been added -- see the help files for help on using the "sendkeys" command in an alias result.  You can send things like Ctrl+F, function keys, etc.

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #8 on: October 07, 2011, 02:18 PM »
Mouser thanks for adding this. I have been trying to get it to work and can't.

How would you do it if you wanted to do a control F?

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: Using FARR to Issue a Control F Command
« Reply #9 on: October 07, 2011, 03:08 PM »
the result would like look this:

sendkeys ^f

for example:

send a control F to the last window| sendkeys ^f

NOTE: it's important the f be lowercase (other wise it's like sending a Ctrl+Shift+f which you dont want).

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #10 on: October 07, 2011, 03:23 PM »
awesome that works! What about sending clipboard data as well?

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: Using FARR to Issue a Control F Command
« Reply #11 on: October 07, 2011, 03:25 PM »
just use $$c to send clipboard contents, so:
sendkeys ^f$$c

if you wanted to trigger the enter key automatically you could make it:
sendkeys ^f$$c{ENTER}

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #12 on: October 07, 2011, 03:29 PM »
dude you rock!!! Thanks. I am going to find that donation button now :)

putnum

  • Participant
  • Joined in 2010
  • *
  • Posts: 68
Re: Using FARR to Issue a Control F Command
« Reply #13 on: October 07, 2011, 06:51 PM »
Does this work for you in IE 7 by chance? I get the find window but nothing gets transferred to the window?? This works fine in google chrome.

Adam

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: Using FARR to Issue a Control F Command
« Reply #14 on: October 07, 2011, 07:00 PM »
works in my IE 8.

what you might try is sticking in a delay between the Ctrl+F and the clipboard text, like so:

send a control F to the last window| sendkeys ^f{SLEEP 500}$$c{ENTER}

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