Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > how to record keystrokes and mouse clicks

Reply
Thread Tools Display Modes

how to record keystrokes and mouse clicks

 
 
Jeff
Guest
Posts: n/a

 
      04-01-2009
A friend of mine doesn't have a computer at home, and uses one at the Senior
Center every day. Since they're public computers, all the settings are
reset to defaults when they're rebooted, which happens automatically
overnight even if nobody does it manually. He was talking about having to
change settings to the way he likes them every day -- unlock the taskbar,
show Quick Launch, set the font face and size in WordPad, set the margins on
Page Setup, allow active content to run from local files in IE,... It amused
me to write a little app that changed all these settings to the way he liked
them, using CreateProcess to start up apps, and SendMessage to send
keystrokes and mouse clicks to them. I gave it to him so he could put it on
his flash drive and run it when he got to the Senior Center every morning.
When he watched it running, popping up app windows and changing their
settings, he asked me, "So you have something that records keystrokes, and
now you're just playing them back?"

His question sort of intrigued me. I heard of something like this a few
years ago, somebody I talked to at Yahoo chess was running long joke
messages through the chat area. He said he had something that would record
his keystrokes and save them as "macros", and play them back. Apparently
there's shareware out there that does this kind of thing, but as you might
guess from what I've already said, I write computer programs for fun, and
with shareware, somebody else gets to have all the fun. Besides that, I
never put shareware on my computer anyway, because of the possibility that
it contains viruses or worms or whatever.

I've fiddled around some, trying to figure out how to record keystrokes and
mouse clicks. First I tried to use SetCapture, but as soon as the mouse
clicks on something outside the app window that has the capture, it loses
the capture. Then I tried setting up a transparent window over the whole
screen and passing on all mouse clicks and keystrokes to the window that
would receive it if my transparent window weren't there, but that didn't
work either, because windows react differently to input if they're covered
up by another window, even if it's transparent.

So I'm thinking, I must be going at this from the wrong direction. MSDN
mentions a system message queue, and says that input messages are
distributed from that queue to the individual message queues of threads with
a GUI. It seems like, maybe I need some kind of hook that will let me
record the messages at that time, but I haven't been able to find anything
at all about the system message queue beyond that mention.

So anyway, does anybody know how I can record mouse clicks and keystrokes so
that I can play them back for things that I do frequently, rather than
having to key it all in again myself every time -- or tediously write
hard-coded apps for each task?

Thanks,
Jeff


 
Reply With Quote
 
 
 
 
Richard Urban
Guest
Posts: n/a

 
      04-01-2009
Called macro recorder!

http://www.google.com/search?q=macro...x=&startPage=1

--

Richard Urban
Microsoft MVP
Windows Desktop Experience



"Jeff" <> wrote in message
news:...
> A friend of mine doesn't have a computer at home, and uses one at the
> Senior Center every day. Since they're public computers, all the settings
> are reset to defaults when they're rebooted, which happens automatically
> overnight even if nobody does it manually. He was talking about having to
> change settings to the way he likes them every day -- unlock the taskbar,
> show Quick Launch, set the font face and size in WordPad, set the margins
> on Page Setup, allow active content to run from local files in IE,... It
> amused me to write a little app that changed all these settings to the way
> he liked them, using CreateProcess to start up apps, and SendMessage to
> send keystrokes and mouse clicks to them. I gave it to him so he could
> put it on his flash drive and run it when he got to the Senior Center
> every morning. When he watched it running, popping up app windows and
> changing their settings, he asked me, "So you have something that records
> keystrokes, and now you're just playing them back?"
>
> His question sort of intrigued me. I heard of something like this a few
> years ago, somebody I talked to at Yahoo chess was running long joke
> messages through the chat area. He said he had something that would
> record his keystrokes and save them as "macros", and play them back.
> Apparently there's shareware out there that does this kind of thing, but
> as you might guess from what I've already said, I write computer programs
> for fun, and with shareware, somebody else gets to have all the fun.
> Besides that, I never put shareware on my computer anyway, because of the
> possibility that it contains viruses or worms or whatever.
>
> I've fiddled around some, trying to figure out how to record keystrokes
> and mouse clicks. First I tried to use SetCapture, but as soon as the
> mouse clicks on something outside the app window that has the capture, it
> loses the capture. Then I tried setting up a transparent window over the
> whole screen and passing on all mouse clicks and keystrokes to the window
> that would receive it if my transparent window weren't there, but that
> didn't work either, because windows react differently to input if they're
> covered up by another window, even if it's transparent.
>
> So I'm thinking, I must be going at this from the wrong direction. MSDN
> mentions a system message queue, and says that input messages are
> distributed from that queue to the individual message queues of threads
> with a GUI. It seems like, maybe I need some kind of hook that will let
> me record the messages at that time, but I haven't been able to find
> anything at all about the system message queue beyond that mention.
>
> So anyway, does anybody know how I can record mouse clicks and keystrokes
> so that I can play them back for things that I do frequently, rather than
> having to key it all in again myself every time -- or tediously write
> hard-coded apps for each task?
>
> Thanks,
> Jeff
>
>

 
Reply With Quote
 
Charlie Tame
Guest
Posts: n/a

 
      04-01-2009
Jeff wrote:
> A friend of mine doesn't have a computer at home, and uses one at the
> Senior Center every day. Since they're public computers, all the
> settings are reset to defaults when they're rebooted, which happens
> automatically overnight even if nobody does it manually. He was talking
> about having to change settings to the way he likes them every day --
> unlock the taskbar, show Quick Launch, set the font face and size in
> WordPad, set the margins on Page Setup, allow active content to run from
> local files in IE,... It amused me to write a little app that changed
> all these settings to the way he liked them, using CreateProcess to
> start up apps, and SendMessage to send keystrokes and mouse clicks to
> them. I gave it to him so he could put it on his flash drive and run it
> when he got to the Senior Center every morning. When he watched it
> running, popping up app windows and changing their settings, he asked
> me, "So you have something that records keystrokes, and now you're just
> playing them back?"
>
> His question sort of intrigued me. I heard of something like this a few
> years ago, somebody I talked to at Yahoo chess was running long joke
> messages through the chat area. He said he had something that would
> record his keystrokes and save them as "macros", and play them back.
> Apparently there's shareware out there that does this kind of thing, but
> as you might guess from what I've already said, I write computer
> programs for fun, and with shareware, somebody else gets to have all the
> fun. Besides that, I never put shareware on my computer anyway, because
> of the possibility that it contains viruses or worms or whatever.
>
> I've fiddled around some, trying to figure out how to record keystrokes
> and mouse clicks. First I tried to use SetCapture, but as soon as the
> mouse clicks on something outside the app window that has the capture,
> it loses the capture. Then I tried setting up a transparent window over
> the whole screen and passing on all mouse clicks and keystrokes to the
> window that would receive it if my transparent window weren't there, but
> that didn't work either, because windows react differently to input if
> they're covered up by another window, even if it's transparent.
>
> So I'm thinking, I must be going at this from the wrong direction. MSDN
> mentions a system message queue, and says that input messages are
> distributed from that queue to the individual message queues of threads
> with a GUI. It seems like, maybe I need some kind of hook that will let
> me record the messages at that time, but I haven't been able to find
> anything at all about the system message queue beyond that mention.
>
> So anyway, does anybody know how I can record mouse clicks and
> keystrokes so that I can play them back for things that I do frequently,
> rather than having to key it all in again myself every time -- or
> tediously write hard-coded apps for each task?
>
> Thanks,
> Jeff
>
>



Jeff, as well as Richard's suggestion you might find this site
interesting...

http://www.codeproject.com/
 
Reply With Quote
 
Ian D
Guest
Posts: n/a

 
      04-02-2009

"Jeff" <> wrote in message
news:...
>A friend of mine doesn't have a computer at home, and uses one at the
>Senior Center every day. Since they're public computers, all the settings
>are reset to defaults when they're rebooted, which happens automatically
>overnight even if nobody does it manually. He was talking about having to
>change settings to the way he likes them every day -- unlock the taskbar,
>show Quick Launch, set the font face and size in WordPad, set the margins
>on Page Setup, allow active content to run from local files in IE,... It
>amused me to write a little app that changed all these settings to the way
>he liked them, using CreateProcess to start up apps, and SendMessage to
>send keystrokes and mouse clicks to them. I gave it to him so he could put
>it on his flash drive and run it when he got to the Senior Center every
>morning. When he watched it running, popping up app windows and changing
>their settings, he asked me, "So you have something that records
>keystrokes, and now you're just playing them back?"
>
> His question sort of intrigued me. I heard of something like this a few
> years ago, somebody I talked to at Yahoo chess was running long joke
> messages through the chat area. He said he had something that would
> record his keystrokes and save them as "macros", and play them back.
> Apparently there's shareware out there that does this kind of thing, but
> as you might guess from what I've already said, I write computer programs
> for fun, and with shareware, somebody else gets to have all the fun.
> Besides that, I never put shareware on my computer anyway, because of the
> possibility that it contains viruses or worms or whatever.
>
> I've fiddled around some, trying to figure out how to record keystrokes
> and mouse clicks. First I tried to use SetCapture, but as soon as the
> mouse clicks on something outside the app window that has the capture, it
> loses the capture. Then I tried setting up a transparent window over the
> whole screen and passing on all mouse clicks and keystrokes to the window
> that would receive it if my transparent window weren't there, but that
> didn't work either, because windows react differently to input if they're
> covered up by another window, even if it's transparent.
>
> So I'm thinking, I must be going at this from the wrong direction. MSDN
> mentions a system message queue, and says that input messages are
> distributed from that queue to the individual message queues of threads
> with a GUI. It seems like, maybe I need some kind of hook that will let
> me record the messages at that time, but I haven't been able to find
> anything at all about the system message queue beyond that mention.
>
> So anyway, does anybody know how I can record mouse clicks and keystrokes
> so that I can play them back for things that I do frequently, rather than
> having to key it all in again myself every time -- or tediously write
> hard-coded apps for each task?
>
> Thanks,
> Jeff
>
>


Here's an interesting hardware gadget. It only records
keystrokes though.

http://www.thumbsupuk.com/products/U...prodid=373&cc=


 
Reply With Quote
 
Skyscraper
Guest
Posts: n/a

 
      04-16-2009

Check out 'ProteMac KeyBag' (http://www.actymac.com/ProteMac_KeyBag/).
It must be what you are looking for. The tool records all the keystrokes
typed in any application and runs in a hidden mode. I use it to know if
others do anything with my computer

Sorry, forgot to tell you it's for Mac OS only


--
Skyscraper
Posted via http://www.vistaheads.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse pointer clicks in wrong place Ed Windows Vista General Discussion 19 10-27-2009 02:47 PM
Mouse clicks Wes McMaster Windows Vista Hardware 2 01-07-2009 08:11 PM
Macro program that can record keystrokes or mouseclicks ? markm75 Windows Vista General Discussion 3 03-23-2008 05:56 PM
Vista serious bugs with mouse clicks, explorer and shut down butto Shlomi Windows Vista General Discussion 0 02-22-2008 07:17 PM
My mouse double clicks frequently when I single click it mcrunner1 Windows Vista Hardware 3 07-16-2007 01:12 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59