I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to wonder even if it is possible in VB? Any help would be much appriciated. Thank you.
Nshark 0 Newbie Poster
Recommended Answers
Jump to PostYou need to set up a low level mouse hook. It will do exactly what you want.
Search Low Level Mouse hook on the Msdn website.
Take a look at this.
http://www.daniweb.com/software-development/vbnet/threads/359374That sets up a low level keyboard hook. It might not make much since but …
Jump to PostThe only way to do it is with the hook.
Here is some code. You should still read up on it. And you will need to go to project / properties / Debug and uncheck enable the visual studio hosting process checkbox.
This code will count all your …
All 5 Replies

Unhnd_Exception
Nshark 0 Newbie Poster
vishalrane 0 Junior Poster in Training

Unhnd_Exception
dionterry 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.