Results 1 to 2 of 2

Thread: moving the mouse cursor

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    MFAU
    Posts
    19

    Post

    this has prolly been asked a bazillion times, but what is the simplest what to move the mouse cursor (dont be a smarta$$ and say use the mouse) :P

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    You can use SetCursorPos API.

    Code:
    Private Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long

    Then using this API you would have pass 2 parameters X and Y.

    SetCursorPos 500, 500

    ------------------

    Serge

    Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819


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