Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Points for Ginsonic

Ginsonic,
here ya go. The first half.

Thanks for your help.

Q2
0
quantum2
Asked:
quantum2
  • 9
  • 4
1 Solution
 
ginsonicCommented:
I work now to your request. When finish I will put here a comment.
0
 
ginsonicCommented:
Hmm, problems .

You wish to hook the mouse for your application or for all running programs ?

Because I can now send messages just to my application. If focus another application I lose the connection between dll and my form:(

Still working .
0
 
quantum2Author Commented:
This hook needs to work across all applications, but send the message to my application only. In the previous hook, it worked from the DLL with a simple show message across all apps. That is assuming that I do the processing in the DLL after the event fires. However, that calls for a great deal of duplicate code. This is why I wanted my application to listen for the DLL message saying that it trapped a right and left simultaneous click. So, the DLL could broadcast the message but my app would be the only thing that did anything with the message.

Thanks for the help.

Q2
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ginsonicCommented:
I make it to work now , but with a problem !?!
Somehow look like window lose her handler when is unfocused . So I need to find the new one .
The only way I can fix the problem ( for moment ) is to find the application handler using the title .

In conclusion , to work at this stage with my hook , you need to use a unique title for your mainform .

It's OK ? Still dig on it .

Nick
0
 
ginsonicCommented:
Have an answer ?
0
 
ginsonicCommented:
Sorry if I push you, but I'm a little pressed by time. I must add 3.000 points by month to my account to keep me in KPro and I need the last 50 points. Tomorrow is the last day to acumulate points.
After that the counter is reseted .

So please give me an answer soon.
0
 
quantum2Author Commented:
Sure,
the form name is configure, the application window name is : instant

I am not real sure what focus should have to do with it as the DLL gets called an monitors and then passes a message back to the calling EXE. Then the processing goes from within my application.

Either way, that is the name of the exe.

Thanks

q2
0
 
ginsonicCommented:
In next 15 minutes the project will be on my site . I will notify when done .
0
 
ginsonicCommented:
OK the link is :

http://www.ginsonic.ro/NewHook.zip

Don't test under IDE enviroment . Compile the project and then run it as usual program .

I put in dll the case when you double click on left mouse button . The label count your clicks (in and outside the form).

As comment I add the case when wish to capture the simultaneous left&right clicks .

To work your hook the windows must have the name 'instant'.Or can change in dll your own one .

Still work to a version to skip the title name test .
0
 
ginsonicCommented:
Wait your questions.
0
 
ginsonicCommented:
??
0
 
quantum2Author Commented:
I didnt want to keep you waiting so here is the first 250 points. I am going to go look at the code now. Thanks for everything.

Q2
0
 
quantum2Author Commented:
Ginsonic,
Hey this works great, and I can use it this way if I switch it to the right mouse button. What I was REALLY looking for was if both the right and left mouse buttons were pressed once at the same time. that is ideal. This does indeed work VERY well, and I could use as is.

If you are interested in updating it so that it traps both the left and right mouse buttons being clicked that is great, if not... no problem. I am going to create another question to pass along your other points.

Thanks again

Q2
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 9
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now