Monitoring the mouse

Reply

Join Date: Sep 2006
Posts: 36
Reputation: sendoshin is an unknown quantity at this point 
Solved Threads: 1
sendoshin sendoshin is offline Offline
Light Poster

Monitoring the mouse

 
0
  #1
Feb 11th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Monitoring the mouse

 
0
  #2
Feb 11th, 2007
This might work...

Set the form to transparent background and maximize the window.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 36
Reputation: sendoshin is an unknown quantity at this point 
Solved Threads: 1
sendoshin sendoshin is offline Offline
Light Poster

Re: Monitoring the mouse

 
0
  #3
Feb 11th, 2007
Only problem with that is that it requires VB.NET... Good ole' VB6 doesn't have an opacity setting on the forms.

- Sen
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Monitoring the mouse

 
0
  #4
Feb 12th, 2007
Originally Posted by sendoshin View Post
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
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 36
Reputation: sendoshin is an unknown quantity at this point 
Solved Threads: 1
sendoshin sendoshin is offline Offline
Light Poster

Re: Monitoring the mouse

 
0
  #5
Feb 12th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC