Results 1 to 2 of 2

Thread: Set cursor position. And using SendKeys function.

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    5

    Set cursor position. And using SendKeys function.

    How do I set the cursor position on a form,
    and how do I use the SendKeys function in vb .NET

    I need to know how to set the coordinates for my mouse, make it click, and use api or whatever to simulate (like in SendKeys function) pressing keys on keyboard
    Captain Pilot

  2. #2
    New Member
    Join Date
    Aug 2002
    Location
    FRANCE
    Posts
    4
    Hello,

    Try that :

    Dim a As Point
    a.X = 100 'or whatever you want
    a.Y = 100 'or whatever you want
    Cursor.Position = a

    I don't know how to henerate the mouse click !
    Hope it helps

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