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: two little steps - Paste and Go  (Read 14,236 times)

kikon

  • Participant
  • Joined in 2010
  • *
  • Posts: 19
two little steps - Paste and Go
« on: February 07, 2011, 02:32 PM »
how to add these steps to lunching selected text with FARR
for example when lunching Windows help (Win+F1)

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: two little steps - Paste and Go
« Reply #1 on: February 07, 2011, 03:49 PM »
im not sure what you are asking.. can you elaborate?

kikon

  • Participant
  • Joined in 2010
  • *
  • Posts: 19
Re: two little steps - Paste and Go
« Reply #2 on: February 07, 2011, 04:55 PM »
FARR can send   selected text as a parameter   to any other programs, if this program support command line parameters.

many programs, such as Windows Help Center, do not support comm. parameters.

maybe someone can write script for
adding "PASTE" and "Enter" key pressing after lunching such programs
« Last Edit: February 07, 2011, 04:57 PM by kikon »

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: two little steps - Paste and Go
« Reply #3 on: February 07, 2011, 05:02 PM »
you can tell farr to paste text into the current program.

as an example, type into farr: paste

i cant remember if farr pasting supports \n for simulating Enter, probably not.. but i could add that if needed.

kikon

  • Participant
  • Joined in 2010
  • *
  • Posts: 19
Re: two little steps - Paste and Go
« Reply #4 on: February 07, 2011, 05:26 PM »
sorry mouser me for spending your time with my bad English...

I have created in Hotkey section :
run paste %cliptext% C:\WINDOWS\pchealth\helpctr\binaries\HelpCtr.exe \n

yes \n supported in FARR edit box, but can FARR send Enter-pressing to HelpCtr.exe

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: two little steps - Paste and Go
« Reply #5 on: February 07, 2011, 05:28 PM »
the built-in paste command in farr won't send text to an arbitrary window -- for that may i suggest that the solution is to find a commandline tool that can do this, and just invoke it from farr.

perhaps someone can suggest such a commandline tool that could be run from farr?

kikon

  • Participant
  • Joined in 2010
  • *
  • Posts: 19
Re: two little steps - Paste and Go
« Reply #6 on: February 07, 2011, 05:43 PM »
thank you,
I'l try to find such tool

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: two little steps - Paste and Go
« Reply #7 on: February 07, 2011, 07:13 PM »
perhaps someone can suggest such a commandline tool that could be run from farr?

I can add that to WinSendKeys, I'm away for about an hour now, and then I'll have a look at it.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

kikon

  • Participant
  • Joined in 2010
  • *
  • Posts: 19
Re: two little steps - Paste and Go
« Reply #8 on: February 07, 2011, 07:24 PM »
I can add that to WinSendKeys, I'm away for about an hour now, and then I'll have a look at it.
thanks a lot ! I'm looking forward !

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: two little steps - Paste and Go
« Reply #9 on: February 07, 2011, 10:25 PM »
Added -c, -cc and -cn options and released WinSendKeys 2.6

I updated the other thread (at the end, but the rest is important enough to at least see) with all the relevant info and an updated download.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

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