Jump to content
  • Advertisement
Sign in to follow this  
iscream3

Need help with a visual basic command

This topic is 4060 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have just recently started to make scripts in visual basic 2005 and have been stuck on a problem for the past 2 days. I am wondering if there is a command or script that allows the mouse to move automatically for you. I have also seen other scripts that move the mouse automatically using cordinates. Is it possible to use cordinates in VB and also how do you find out what the coordinates are? If you could post or tell me the command that would be awsome. Thanks for all your help!

Share this post


Link to post
Share on other sites
Advertisement
You could try integrating the win32 commands into your source, like this:

Declare Function GetCursorPos Lib "user32.dll" (lpPoint As POINTAPI) As Long

Declare Function SetCursorPos Lib "user32" _
(ByVal x As Long, ByVal y As Long) As Long


... and just use those as you see fit.

I know this works for VB6, haven't done it with VB 2005.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!