Jump to content

Recommended Posts

Posted

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.

Posted

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)
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...