Results 1 to 4 of 4

Thread: Moving mouse cursor in code [solved]

  1. #1

    Thread Starter
    New Member blue_rabbit's Avatar
    Join Date
    May 2004
    Location
    Behind enemy lines
    Posts
    9

    Question Moving mouse cursor in code [solved]

    Is there a way to set the mouse location in .NET? I remember the old API calls, but i want to avoid that. Grrr....
    Last edited by blue_rabbit; May 17th, 2004 at 05:01 AM.
    //END_TRANSMISSION

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    You can use the Cursor object.

    Like this :
    VB Code:
    1. Cursor.Location=New point(X,Y)
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  3. #3

    Thread Starter
    New Member blue_rabbit's Avatar
    Join Date
    May 2004
    Location
    Behind enemy lines
    Posts
    9

    Uh...

    Ok great, now i feel like an idiot. Thanks though. I'll get the hang of the new architecture soon enough.
    //END_TRANSMISSION

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    You may also want to investigate Cursor.Clipping()
    I don't live here any more.

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