I am writing a virtual desktop type program, and want to detected when the mouse hits the edges of the screen, no matter what program currently has focus. That way i can flip the desktop to another virtual desktop.
Does anybody know how?
v0.1 of my program is available at http://asmsource.8k.com/source32.htm <-fixed link(stupid fullstop)
Does anybody know how?
v0.1 of my program is available at http://asmsource.8k.com/source32.htm <-fixed link(stupid fullstop)
Off hand hooking comes to mind, but its a skill im not well versed in.
As well you link is broken...
:alright:
NaN
As well you link is broken...
:alright:
NaN
You can do it with basic api calls. Here's a demo by Lazarus that checks for the cursor position and wraps to the other side of the screen if you go past the edge.
Perfect! Thanks grv575.
Actually i thought about doing it this way, but was worried about using timers, would slow the system down too much.
Actually i thought about doing it this way, but was worried about using timers, would slow the system down too much.
here you go
it's an example how to use mouse hook. i've changed a little MouseHook.dll. hope that Iczelion won't mind that i borrow and changed it :)
hope this will help
it's an example how to use mouse hook. i've changed a little MouseHook.dll. hope that Iczelion won't mind that i borrow and changed it :)
hope this will help
Talk about Iczelion's MHook.dll....
Could anyone please try this:
Run mhook.exe (the one packaged with Masm32) two times
Click Hook on one instance
then click Hook on the other instance
It crashed my Win98 computer.... :grin: :grin:
I'm hoping it crashes yours! And that you spread it to others! Bwa ha ha virus!
(Just kidding... But why does it crash??)
Could anyone please try this:
Run mhook.exe (the one packaged with Masm32) two times
Click Hook on one instance
then click Hook on the other instance
It crashed my Win98 computer.... :grin: :grin:
I'm hoping it crashes yours! And that you spread it to others! Bwa ha ha virus!
(Just kidding... But why does it crash??)