 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
TefJlives Guest
|
Posted: Wed May 09, 2007 10:37 pm Post subject: Multiple copy and paste thing in C |
|
|
Hi all,
For my job, I often have a group of about 10 strings that I need to
type very often. I am thinking that it would be nice to rig up a
program(unless there already is one) where I could enter a bunch of
strings, and then when I press RightShift-r it would enter one
string, then RightShift-q for another, etc, up to 26 possible
strings. Just like copy and paste, but with many different
possibilities. I thought, if possible, I could make it use the right
shift because I never use that key. So, does anyone know if
something like that is doable in C? I don't know how to isolate the
right shift, I also don't know how to make it paste it where the
cursor is. I have no idea whether this is possible, but if anyone has
any suggestions that would be great. Also, maybe C isn't the right
language, but I don't know what is.
Greg
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
Hans-Bernhard Bröker Guest
|
Posted: Thu May 10, 2007 9:11 am Post subject: Re: Multiple copy and paste thing in C |
|
|
TefJlives wrote:
| Quote: | Hi all,
For my job, I often have a group of about 10 strings that I need to
type very often. I am thinking that it would be nice to rig up a
program(unless there already is one)
|
There almost certainly is one already (things like this are often called
"macro recorders" or "hotkey utilities"), but that's beside the topic of
this newsgroup, because the main issue for such a program is not which
language you write it in, but which platform you want it to work on. So
please take this to a newsgroup about tools for that platform.
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
Shilu Guest
|
Posted: Thu May 10, 2007 9:11 am Post subject: Re: Multiple copy and paste thing in C |
|
|
On May 9, 10:37 pm, TefJlives <gmarkow...@gmail.com> wrote:
| Quote: | Hi all,
For my job, I often have a group of about 10 strings that I need to
type very often. I am thinking that it would be nice to rig up a
program(unless there already is one) where I could enter a bunch of
strings, and then when I press RightShift-r it would enter one
string, then RightShift-q for another, etc, up to 26 possible
strings. Just like copy and paste, but with many different
possibilities. I thought, if possible, I could make it use the right
shift because I never use that key. So, does anyone know if
something like that is doable in C? I don't know how to isolate the
right shift, I also don't know how to make it paste it where the
cursor is. I have no idea whether this is possible, but if anyone has
any suggestions that would be great. Also, maybe C isn't the right
language, but I don't know what is.
Greg
--
comp.lang.c.moderated - moderation address: c...@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|
Hi,
As i know you can capture keystroks and do whatever you want but I
have know idea about cursor position.
Thanks
Shailendra
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
Jack Klein Guest
|
Posted: Thu May 10, 2007 9:11 am Post subject: Re: Multiple copy and paste thing in C |
|
|
On 09 May 2007 17:37:36 GMT, TefJlives <gmarkowsky (AT) gmail (DOT) com> wrote in
comp.lang.c.moderated:
| Quote: | Hi all,
For my job, I often have a group of about 10 strings that I need to
type very often. I am thinking that it would be nice to rig up a
program(unless there already is one) where I could enter a bunch of
strings, and then when I press RightShift-r it would enter one
string, then RightShift-q for another, etc, up to 26 possible
strings. Just like copy and paste, but with many different
possibilities. I thought, if possible, I could make it use the right
shift because I never use that key. So, does anyone know if
something like that is doable in C? I don't know how to isolate the
right shift, I also don't know how to make it paste it where the
cursor is. I have no idea whether this is possible, but if anyone has
any suggestions that would be great. Also, maybe C isn't the right
language, but I don't know what is.
|
It is quite possible that you could do this in C, but you would need
non-standard and platform specific extensions beyond the standard C
language and beyond the scope of this group.
Standard C knows nothing at all about keys. If it receives the
character 'R' from an input stream, it does not know whether that
stream is connected to a keyboard, a serial port, a disk file, or a
remote computer halfway around the world on a network.
Even if the input does come from a keyboard, the standard C library
only knows it received the character 'R', and not whether it was
produced with the left shift key, the right shift key, or from some
unusual keyboard that happens to have a key that produces 'R' without
the use of a shift key.
So you really need to ask this question in a group that supports your
particular compiler/operating system combination, to see what
extensions it provides that could be used to do what you want.
news:comp.os.ms-windows.programmer.win32 is a good group to ask for
doing this on Windows. news:comp.os.linux.development.apps would be
the best choice for doing this on that operating system.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
--
comp.lang.c.moderated - moderation address: clcm (AT) plethora (DOT) net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|