Click to See Complete Forum and Search --> : Uhm, Help?
Neczy
07-02-2004, 03:24 PM
heh, Hey everyone.
Alrighty, this may seem confusing, so uh sorry, haha.
Does anyone know of a program that can let me paste something from a text file whenever i hit a certain key on my computer?
That make sense? :confused:
the tree
07-02-2004, 04:32 PM
Well no, but why the hell do you want to do that? cant you just copy it then hit ctrl+v whenever you like?
Neczy
07-02-2004, 04:55 PM
Yes i can, but i want a cool way to do it.
the tree
07-02-2004, 05:06 PM
Well it is possible to do, but I doubt anyone has as of yet been bored enough to write a program that does just that.
Why dont you write it yourself?
Neczy
07-02-2004, 06:09 PM
i dunno how, or what it would take. Any ideas?
Ben Rogers
07-02-2004, 07:15 PM
Do you mean that you want a program to get the contents of a text file, put them into your "clipboard", and then paste them into whatever text field you're focused on? If yes, do you want this to function no matter where you are, on your own site, on a CMM, or on foreign sites?
davidbrent
07-02-2004, 07:50 PM
How lazy we have become! :o :p
Best Wishes,
David
Neczy
07-02-2004, 09:42 PM
yes exactly Omega.
And Im not lazy, Im just curious at how it would work. I dont really want anyone to make me one either, unless the want too, I just wanna know how it would work. I was talking to someone that was talking about like it needing a master hook or something :\
ray326
07-02-2004, 11:31 PM
Every OS has a way to do that hook and every one is different. The basic technique is pretty simple. In GUIs you hook the master event loop watching for keyboard events. When one comes along indicating your "magic key" was pressed, you eat that one and add the appropriate events into the queue to represent your text file being typed in.
Compguy Pete
07-03-2004, 09:53 AM
your best bet would be to go to your local shop and see what they have for expanded keyboards... Many of the newer keyboards have extra keys which you could remap and set to paste or copy as needed.
Neczy
07-04-2004, 12:40 AM
ah ok, i did that, just for the fun of it and I got a keyboard that lets me assign programs to buttons at the top.
Ben Rogers
07-04-2004, 12:01 PM
I can't help you anymore; the only scripting I know of is PHP and JS, and I can barely do those. :p