C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multiple copy and paste thing in C

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language (Moderated)
View previous topic :: View next topic  
Author Message
TefJlives
Guest





PostPosted: Wed May 09, 2007 10:37 pm    Post subject: Multiple copy and paste thing in C Reply with 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: 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





PostPosted: Thu May 10, 2007 9:11 am    Post subject: Re: Multiple copy and paste thing in C Reply with quote



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





PostPosted: Thu May 10, 2007 9:11 am    Post subject: Re: Multiple copy and paste thing in C Reply with quote



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





PostPosted: Thu May 10, 2007 9:11 am    Post subject: Re: Multiple copy and paste thing in C Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.