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: Farr strecthed idea, send key strokes  (Read 14,685 times)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
Farr strecthed idea, send key strokes
« on: May 15, 2009, 04:53 AM »
I have been thinking about this for a while. It might be interesting if Farr could send key strokes-combinations to focused application. We could use it as a like shorthand macro tool, for small tasks for apps that support wide range of shortcuts.

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: Farr strecthed idea, send key strokes
« Reply #1 on: May 15, 2009, 04:56 AM »
FARR can paste text into the application that had focus before it was triggered.
I can actually quite easily add the ability to send arbitrary keystrokes/hotkeys as well if people want, or of course a plugin could do this.

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
Re: Farr strecthed idea, send key strokes
« Reply #2 on: May 15, 2009, 05:00 AM »
I knew about copying and pasting and that is how I got the idea actually.

If the shortcut format could be close to ahk that would even be greater. I am also hoping that Farr could accept sequence of keys and key combinations.

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: Farr strecthed idea, send key strokes
« Reply #3 on: May 15, 2009, 05:06 AM »
you can always launch an ahk script and pass it the active window handle from farr -- in fact i think someone already did this.

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 560
Re: Farr strecthed idea, send key strokes
« Reply #4 on: May 15, 2009, 08:36 AM »
Quote
I can actually quite easily add the ability to send arbitrary keystrokes/hotkeys as well if people want, or of course a plugin could do this.

you should do it ;) but not as a plugin as a core feature

Rocketboy

  • Participant
  • Joined in 2008
  • *
  • Posts: 19
Re: Farr strecthed idea, send key strokes
« Reply #5 on: November 18, 2020, 04:36 PM »
Bringing topic back from the dead..

I looked around, and I couldn't find if this was done yet... I'm hoping to replace ControlPad https://sector-seven.com/software/controlpad , as the standard launch methods (press and hold * or F12) randomly act like some sort of weird undocumented sticky key.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: Farr strecthed idea, send key strokes
« Reply #6 on: November 18, 2020, 10:00 PM »
You can create alias actions that send keys to the window that was active before FARR started
Code
example | sendkeys abc
https://www.donationcoder.com/Software/Mouser/findrun/help/using_sendkeys_to_simulate_keypresses.htm
https://www.donationcoder.com/Software/Mouser/findrun/help/virtual_launch_strings.htm

Note to mouser: I noticed that if we chain sleep and sendkeys commands then FARR sleeps, sends the keys and reopens and refocuses FARR. If we don't have the sleep command FARR doesn't reopen after sending the keys. Bug?
Code
example | sleep 2000 ;;; sendkeys abc

Rocketboy

  • Participant
  • Joined in 2008
  • *
  • Posts: 19
Re: Farr strecthed idea, send key strokes
« Reply #7 on: November 19, 2020, 01:45 PM »
Thanks for the tip!

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