Results 1 to 3 of 3

Thread: Move the Mouse with the Keyboard - VisualBasic

  1. #1
    Join Date
    Jan 2009
    Posts
    92

    Move the Mouse with the Keyboard - VisualBasic

    Unless, if we are not being familiar with other languages we could not even know how to relate with the VisualBasic ..
    shifting a bit for the network I saw that with this visual basic you can achieve what we seek:
    ie a program that allow me to click the buttons to match the movement of the mouse and adjust the speed (win xp).
    Vb for a programmer should not be hard to believe ... .. help me?

  2. #2
    Join Date
    Oct 2008
    Posts
    33

    Re: Move the Mouse with the Keyboard - VisualBasic

    sifting a bit for the network I saw that with this vb you can achieve what we seek:
    ie a program that allow me to click the buttons to match the movement of the mouse and adjust the speed (win xp).
    Assuming you're using VB NET, the thing you can do so fairly easily (and VB6, VBA code will be very similar)

    1. First of all the functions that allow you to read / code set by the X and Y coordinates of the mouse pointer. Can be done with the use of 2 simple API calls and a "Punto" custom:

    Code:
     'Point Type: 
      Private Type PT 
          X As Long 
          Y As Long 
      End Type 
    
     Read pointer position: 
      Private Declare Function GetCursorPos Lib "User32" (As lpPoint PT) As Long 
    
     Set pointer position: 
      Private Declare Function SetCursorPos Lib "user32.dll" (ByVal X As Long, ByVal Y As Long) As Long
    2. Ensure that the application is listening to press the keys you want, that should be given the movement of the pointer.
    Typically you can use the arrow keys of 8 numeric keypad ...

  3. #3
    Join Date
    Jan 2009
    Posts
    92

    Re: Move the Mouse with the Keyboard - VisualBasic

    the only thing that I understand is that this seems more visual basic language pseudocode that genuine

    The fact remains that I can not write one line,and i don't want to practice for fun to do this program?

Similar Threads

  1. Unable to move mouse pointer of Logitech Mouse M510
    By Dipanwita in forum Hardware Peripherals
    Replies: 7
    Last Post: 31-12-2011, 12:23 PM
  2. Computer freezes but i can move mouse
    By Yancy in forum Operating Systems
    Replies: 4
    Last Post: 31-03-2009, 04:29 PM
  3. Move Cursor without using a Mouse
    By Itronix in forum Tips & Tweaks
    Replies: 2
    Last Post: 14-03-2009, 01:38 PM
  4. Game lag each time i move mouse
    By Questioner in forum Video Games
    Replies: 2
    Last Post: 05-03-2009, 05:58 PM
  5. gaming mouse/keyboard or normal mouse/keyboard ?
    By Gazaway_w in forum Hardware Peripherals
    Replies: 1
    Last Post: 30-07-2008, 07:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,883,596.88219 seconds with 17 queries