Sign in to follow this  
Followers 0
Necromorph

Mouse Move

5 posts in this topic

when use a MouseMove(x,y,_) it actually, move the mouse, the pointer just stays there. im trying to make a demo video for a customer so the ability to see the mouse "move" is crucial. thanks for you help.

Share this post


Link to post
Share on other sites



when use a MouseMove(x,y,_) it actually, move the mouse, the pointer just stays there.

Despite the fact that I'm not quite sure about what you're trying to say, I checked it and the following works fine for me:

$RandomX=Random(0,@DesktopWidth,1)
$RandomY=Random(0,@DesktopHeight,1)
MsgBox(0,"MouseMove()","Pressing OK will result in your mouse being moved to " & $RandomX & " , " & $RandomY)
MouseMove($RandomX, $RandomY)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

basically i'm trying to do a demo of some software for a video, so i want to "see" the mouse pointer move.

i have this thus far

WinActivate("My Software") ; makes "My Software" the focused window

Sleep(1000) ;pauses the script, start record here, adjust the sleep time in seconds

WinWaitActive("My Software")

MouseMove(400, 345, 0) ; sets the starting positon in the middle of the screen
MouseMove(85, 405, 35) ; moves to the "sales order" tab,

ControlClick("My Software", "", "[NAME:expMain]", "primary", 1, 84, 405) ; clicks the "sales order" tab

MouseMove(65, 60, 35)

ControlClick("My Software", "", "[NAME:expMain]", "primary", 1, 65, 60) ; clicks the "sales order" link

but when i use the MouseMove() the pointer doesn't "move", i want to see it moving about the screen.

your script does work, im just not sure why mine doesn't

Edited by redLabel

Share this post


Link to post
Share on other sites

And you still haven't posted any example code to show your problem. For example, did you notice the third parameter in MouseMove()? What values did you use for speed?

:(


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

35

i figured it out, it is because i am using Virtual PC to test my script, it just doesn't work in there.

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