Mouse movement and key press Events

Discussion in 'Software' started by ceal21c, Dec 13, 2007.

  1. ceal21c

    ceal21c Private E-2

    Hey Guys,

    I'm trying to create an inactivity routine (in VB NET) that will minimize an application when there is no mouse movement or keys pressed while the app is maximized and in focus. I would like to know how I can determine when the mouse is moved over a form and when a key is pressed. Thanx alot!
     
  2. Wookie

    Wookie Sergeant Major

  3. ceal21c

    ceal21c Private E-2

    Thanx for your reply. What I needed was the method for detecting if the mouse had moved. This was what I was looking for:

    Private Sub Form_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds