Necromorph Posted March 23, 2010 Share Posted March 23, 2010 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. Link to comment Share on other sites More sharing options...
nf67 Posted March 23, 2010 Share Posted March 23, 2010 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) Link to comment Share on other sites More sharing options...
Necromorph Posted March 23, 2010 Author Share Posted March 23, 2010 (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 March 23, 2010 by redLabel Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 23, 2010 Share Posted March 23, 2010 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 Link to comment Share on other sites More sharing options...
Necromorph Posted March 23, 2010 Author Share Posted March 23, 2010 35 i figured it out, it is because i am using Virtual PC to test my script, it just doesn't work in there. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now