944,164 Members | Top Members by Rank

Ad:
Feb 11th, 2007
0

Monitoring the mouse

Expand Post »
I suppose it's about time I ASKED a question for a change.

I'm attempting to write a program that records the location of the mouse cursor every time it is clicked. Getting the location of the cursor at any given moment is simple. However, knowing WHEN to get that location is another matter entirely. In order to do what I'm attempting to do, I need to know every time the mouse is clicked, no matter what window or area of the screen it happens to be in at the time. Once I have that covered, I can handle the rest easily.

I thought a similar question had been asked in here once already, but as I can't find it again, I'm posing my variation now. Hopefully someone out there knows the answer and it will be immortalized here for all time. ^.=.^

- Sen
Similar Threads
Reputation Points: 16
Solved Threads: 1
Light Poster
sendoshin is offline Offline
39 posts
since Sep 2006
Feb 11th, 2007
0

Re: Monitoring the mouse

This might work...

Set the form to transparent background and maximize the window.
Moderator
Reputation Points: 3281
Solved Threads: 896
Posting Sage
WaltP is offline Offline
7,749 posts
since May 2006
Feb 11th, 2007
0

Re: Monitoring the mouse

Only problem with that is that it requires VB.NET... Good ole' VB6 doesn't have an opacity setting on the forms.

- Sen
Reputation Points: 16
Solved Threads: 1
Light Poster
sendoshin is offline Offline
39 posts
since Sep 2006
Feb 12th, 2007
0

Re: Monitoring the mouse

Click to Expand / Collapse  Quote originally posted by sendoshin ...
Only problem with that is that it requires VB.NET... Good ole' VB6 doesn't have an opacity setting on the forms.

- Sen
Sorry. My psychic powers weren't tuned in, I guess
Moderator
Reputation Points: 3281
Solved Threads: 896
Posting Sage
WaltP is offline Offline
7,749 posts
since May 2006
Feb 12th, 2007
0

Re: Monitoring the mouse

However, upon further inspection of the Windows API, an Opacity value can be simulated. Imma write a small control and post it on my website, with a link from here, because this is a COOL feature to have, and I think this might work. As long as the opacity isn't = 0, the mouse events get passed to the form.

Now I just have to figure out how to pass the events to whatever is directly below my form so as to keep the system working properly...

- Sen
Reputation Points: 16
Solved Threads: 1
Light Poster
sendoshin is offline Offline
39 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Please help me in making code for browsing button
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VBA Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC