|
-
Aug 4th, 2001, 03:58 PM
#1
Thread Starter
Junior Member
Mousemove anywhwere on screen (not just over form)?
I would like to have a mousemove event that works no matter where the mouse is. I also need an event for any kind of keypress. basically I want the same sort of trigger that deactivates a screensaver, but a screensaver wont be on and the mouse may not be over the form. (keypress also needs to work when form does not have focus, is not active, whatever)
Does this neccesarily require API calls? Because
<understatement>
I am somewhat of a novice with API
</understatemnt>
If anyone could help I would really apprieciate it.
____________________
DoubleDown
" ... so I ask him how old 'brother' is. And he says to me, ... this f***ing guy, he says 'Eleven' " - "And you said DoubleDown"
-
Aug 4th, 2001, 04:16 PM
#2
PowerPoster
I think the TrackMouseEvent API should help you...
VB Code:
Declare Function TrackMouseEvent Lib "user32" (lpEventTrack As TRACKMOUSEEVENTTYPE) As Long
Public Type TRACKMOUSEEVENTTYPE
cbSize As Long
dwFlags As Long
hwndTrack As Long
dwHoverTime As Long
End Type
· lpEventTrack
[in/out] Pointer to a TRACKMOUSEEVENT structure that contains tracking information.
-
Aug 4th, 2001, 04:46 PM
#3
Thread Starter
Junior Member
I guess I need more help
Do you make a call to that function in a timer? I couldn't seem to get your code to work.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|