CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    California, USA
    Posts
    40

    How do you make the mouse pointer move every minute?

    i have alladvantage on my computer and the thing becomes inactive if the mouse hasn't moved in like 2 minutes so i want to make a program that moves the mouse for you. how do i do that?

    PanasonicSubz

  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How do you make the mouse pointer move every minute?

    There is an API SetCursorPos. You can try it.
    From Api viewer:

    Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (byval x as Long, byval y as Long) as Long




    Call this in a loop of every 1min say.

    RK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured