Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,719 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,305 people online right now. Registration is fast and FREE... Join Now!




Mouse Hooking

 
Reply to this topicStart new topic

Mouse Hooking

Mulligun
post 4 Oct, 2006 - 11:53 AM
Post #1


New D.I.C Head

*
Joined: 4 Oct, 2006
Posts: 4


My Contributions


Hello everyone
I have One problem:

I would like to write an aplication that:
1. would capture OnLButtonDown message (event) from an external application (mean - NOT my application) running in another window
(for expl. same game in window mode)
2. that captured event (mouse left "Click" in the game) turns on some function in MY application that would start timer
3. after some specified time My application emulate "Keyboard Key Pressed" (eg. "Enter" key) in such a way that the game would think
that a user just hit "Enter" key in game menu. (and than some action would come, eg. start new race in race simulator)

And another one condition MUST be fulfilled:
that all procedre mustn't affect running game (the game must "run" independently from My application)

If someone would be so nice and give me some solution...
User is offlineProfile CardPM

Go to the top of the page

DeeViLiSh
post 4 Oct, 2006 - 10:08 PM
Post #2


D.I.C Head

Group Icon
Joined: 25 Jul, 2006
Posts: 175



Thanked 1 times

Dream Kudos: 575
My Contributions


AsyncKeyState(VK_LBUTTON)

What are you working on at the moment?

EDIT :
QUOTE
Post the code you have so far using the [code] tags. We can't help you if you don't post your code. We will not do your homework for you. You MUST show some effort.


Please show us what you have so far.

PS : The more I read it, the more it seems you're making an API hack for a game.... lol

This post has been edited by DeeViLiSh: 4 Oct, 2006 - 10:14 PM
User is offlineProfile CardPM

Go to the top of the page

amitjain17
post 13 Oct, 2006 - 09:11 AM
Post #3


New D.I.C Head

*
Joined: 13 Oct, 2006
Posts: 1


My Contributions


I am not sure he is trying to do but I am looking for similar information. The idea is not to hack or something, but just to keep a track of what is happening on my computer when I am not there. smile.gif.

As per the question that might come, "Show me the code"

All I have currently is a form, a box to get started and now I need an eventhandler.
I am not looking for code but for class or functions to do the job.

CHEERS!!!!!!!!!!!!!
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/20/08 10:05AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month