Sign in to follow this  

Need help with a visual basic command

This topic is 3845 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
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

This topic is 3845 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this