Welcome Guest.   Make a donation to an author on the site October 20, 2014, 10:54:52 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Ability to select multiple windows and send keyboard input to all of them  (Read 8830 times)
gottadoit
Charter Member
***
Posts: 45

View Profile Give some DonationCredits to this forum member
« on: July 16, 2006, 01:09:58 PM »

It would be really nice to be able to have several windows and be able to send all keyboard input to them at the same time
This would be most useful to have several terminal emulation windows open to several hosts and perform the same changes on all
(ie: select a number of windows quickly and easily)

There are other situations where you might also want to have a notepad window open to keep track of everything you type, and in that case you might want to be able to say to send the keyboard input to the foreground window as well as the notepad window.

In both cases it would also be very useful if text pasted from the clipboard also went to the selected destination windows
This is so that I can have something similar to pconsole or fanterm [linux] to use under Windows

There is quite a useful description of functionality for a little tool like this on the Putty website
See http://www.chiark.greenen...list/terminal-fanout.html

It would be great if the windows under control were tagged in a visible way to indicate that they are part of a set

Thanks

NB: A way I have seen other utilities like this work is to have their own "input" window that you can type in so that the keystrokes are directed to all of the child windows
« Last Edit: July 17, 2006, 02:10:45 AM by gottadoit » Logged
gottadoit
Charter Member
***
Posts: 45

View Profile Give some DonationCredits to this forum member
« Reply #1 on: July 25, 2006, 11:23:19 AM »

Seeing as there doesn't seem to be too much interest in doing one for me, can someone that knows a little about AHK give me some pointers on whether this is feasible to do and a pointer or two ?

Thanks
Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: July 26, 2006, 03:00:36 PM »

I'm sorry i can't do this right now.
But i'm sure that if Skrommel comes around, he should do it in no time.
Anyway, if you'd like to give it a try yourself, you could start by the Send command and the Inputbox command. The first will allow you to send text to a specified window, and the latter will allow you to easily input text.
Logged

jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: July 29, 2006, 10:47:00 AM »

After all i did get some time to do this. Lets hope it's what you expected.

MultipleSend v1.0 created 29-07-2006:
Quote
Send the same text to several windows at the same time
[Forum Topic][.ahk Version][.exe Version]
Logged

Rover
Master of Smilies
Charter Member
***
Posts: 628



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: July 29, 2006, 11:06:29 AM »

jgpavia you are beautiful smiley

I just tested your "little script" and it works pretty well.  I used EditPad Lite and evolvED to create new blank documents.  I started you ahk script, selected the two editor windows and started typing. 

There is a slight delay between sending and having control back, which makes sense.

There are two minor things I offer for improvement:
1) Add a "Continue" button on your splash screen.  It took me a while to figure out that I needed to close it to continue.
2) It might be cool to have a checkbox on the text sumission box to allow sending CRLF or not.
I might not want to send that at each line end.... My thought is that it would be check to send CRLF and would be the default.  If I unchecked it, it would just send the text w/o CRLF and I would append the line.

Nice job jg   Thmbsup
Logged

Insert Brilliant Sig line here
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: July 29, 2006, 12:14:22 PM »

There is a slight delay between sending and having control back, which makes sense.
Yes, that's the time it takes to send to all controls, i think i can't make that not happen.

There are two minor things I offer for improvement:
1) Add a "Continue" button on your splash screen.  It took me a while to figure out that I needed to close it to continue.
Oops.. Right, i'll do that!

2) It might be cool to have a checkbox on the text sumission box to allow sending CRLF or not.
Yes, i have to find a way to do that. I think the normal way to do it would be to have it not send the raw text. This would allow you to write `n and it'd work as a CRLF.

I'm glad it works well! cheesy
Logged

jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: July 29, 2006, 02:27:16 PM »

Ok, now it works like this:

If the 2 first characters in the phrase are '\\', it'll send the text using ahk's map. This means that the following phrase:
\\!{f4}
Will close the active window. And the next one:
\\hi there{enter}
Will send "hi there" followed by a {enter} key press.

Notice that with this method, to send a literal '!' or a  literal '%' or a literal '^' or any other characters used by ahk, you'll have to escape them ( `! , `% and `^ ).

As long as the two first characters aren't \\, it'll behave exactly as expected.
For more info about what can be used in the \\ method, check the table on This page.
Logged

Rover
Master of Smilies
Charter Member
***
Posts: 628



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #7 on: July 29, 2006, 07:07:12 PM »

Oh now that IS cool!

I can send special characters, etc. now...

great modification.   Thmbsup Thmbsup Thmbsup
Logged

Insert Brilliant Sig line here
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.03s | Server load: 0 ]