Sign in to follow this  
Followers 0
Xantrax

Problem with MouseMove function

2 posts in this topic

Hi there!

I'm very happy to write my first post on the forums. I have been around for a while, but didn't really need to ask for help untill now as most questions are already answered.

This time however, I was not able to find a solution to my issue on the boards nor on google.

I think it's rather simple but I can't manage it.

Im working in a 3D environment (Maya for those who know what that is.), and want to automate a presentation for my students.

The script-fragment looks like this:

Sleep(1000)
MouseMove ( 900, 550, 0 )
Sleep(1000)
MouseDown("right")
Sleep(1000)
MouseMove ( 1000, 550, 10 )
Sleep(1000)
MouseUp("right")

When my camera is tilted to "point of view"-straight forward and I use this script, it moves to the right pixel in X-axis. The problem is that the camera gets rotated downwards about 20px's or something. When I do this by hand its moving fine. Also when I try to use it in paint it does the right move from 900, X to 1000, X with no rotation/tilting downwards.

Does anyone have any experience with such stuff? I personally believe it might have something to do with the cameras default tilt, but I can't move it as it's current tilt/position has to stay the way it is at the moment.

All feedback is deeply appreciated. ;)

Share this post


Link to post
Share on other sites



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  
Followers 0