DonationCoder.com Forum

DonationCoder.com Software => Mouser's Zone => Find And Run Robot => Topic started by: putnum on August 15, 2011, 10:20 AM

Title: Using FARR to Issue a Control F Command
Post by: putnum on August 15, 2011, 10:20 AM
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?
Title: Re: Using FARR to Issue a Control F Command
Post by: Ath on August 15, 2011, 10:26 AM
You could try WinSendKeys (https://www.donationcoder.com/forum/index.php?topic=26516.0), if FARR can't do it directly for you (I'm no FARR user, so can't help in that corner)
Title: Re: Using FARR to Issue a Control F Command
Post by: mouser on August 15, 2011, 10:44 AM
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..
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on August 15, 2011, 12: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?
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on August 20, 2011, 02:50 PM
Any update on this mouser?
Title: Re: Using FARR to Issue a Control F Command
Post by: mouser on August 22, 2011, 10:49 AM
I will add this feature.  I already have a SendKeys system for this in place in my other program Clipboard Help and Spell (https://www.donationcoder.com/forum/index.php?topic=15914.msg139864#msg139864) that allows you to send arbitrary keypresses, and i will just use that code.
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on August 24, 2011, 07:47 AM
awesome thx mouser!
Title: Re: Using FARR to Issue a Control F Command
Post by: mouser on October 03, 2011, 09:15 AM
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.
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on October 07, 2011, 09:18 AM
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?
Title: Re: Using FARR to Issue a Control F Command
Post by: mouser on October 07, 2011, 10:08 AM
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).
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on October 07, 2011, 10:23 AM
awesome that works! What about sending clipboard data as well?
Title: Re: Using FARR to Issue a Control F Command
Post by: mouser on October 07, 2011, 10:25 AM
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}
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on October 07, 2011, 10:29 AM
dude you rock!!! Thanks. I am going to find that donation button now :)
Title: Re: Using FARR to Issue a Control F Command
Post by: putnum on October 07, 2011, 01: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
Title: Re: Using FARR to Issue a Control F Command
Post by: mouser on October 07, 2011, 02: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}