Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-01-2009
Member
 
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?
Reply With Quote
  #2  
Old 14-01-2009
Member
 
Join Date: Oct 2008
Posts: 33
Re: Move the Mouse with the Keyboard - VisualBasic

Quote:
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 ...
Reply With Quote
  #3  
Old 14-01-2009
Member
 
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?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Move the Mouse with the Keyboard - VisualBasic"
Thread Thread Starter Forum Replies Last Post
Unable to move mouse pointer of Logitech Mouse M510 Dipanwita Hardware Peripherals 7 31-12-2011 12:23 PM
Computer freezes but i can move mouse Yancy Operating Systems 4 31-03-2009 04:29 PM
Move Cursor without using a Mouse Itronix Tips & Tweaks 2 14-03-2009 01:38 PM
Game lag each time i move mouse Questioner Video Games 2 05-03-2009 05:58 PM
gaming mouse/keyboard or normal mouse/keyboard ? Gazaway_w Hardware Peripherals 1 30-07-2008 07:35 PM


All times are GMT +5.5. The time now is 04:46 PM.