I m creating an app! in which if the user moves the cursor the message should be displayed! But I m using setcursorpos() in my form to set cursor position which display the message! I dont want message to be displayed when mouse is moved through function, I want message to be displayed when user moves the mouse through hardware only (i.e moving mouse with hand)
Andy90 0 Light Poster
Recommended Answers
Jump to PostI followed that tutorial and modified the code, didnt achieve exactly what u wanted but this may help u at some level(code in VB.NET)
What it does is if u drag ur mouse on form within 100ms then PLay stops.
Jump to PostI don't think it's easily done (I bet there's some sort of Win32 function for it, but good luck finding it).
What I would do is wherever SetCursorPos() is being called, set a flag just before it (something like ProgramMovedMouse=true). Then in the Mouse_Move event check this flag before showing …
Jump to PostHi skatamatic,
I helped him with setting flags but what he wants is he want detect mouse movement not just when mouse over form but all the time on whole screen. I tried searching but didnt find any solution.
Is there any way to do this? Means detecting mouse …
All 10 Replies
Mitja Bonca 557 Nearly a Posting Maven
Andy90 0 Light Poster
Sahil89 0 Newbie Poster
dare599z 16 Newbie Poster
Andy90 0 Light Poster
Sahil89 0 Newbie Poster
Andy90 0 Light Poster
skatamatic 371 Practically a Posting Shark
Sahil89 0 Newbie Poster
skatamatic 371 Practically a Posting Shark
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.