Jump to content

Mouse Movement Help


Recommended Posts

I've got a script where I need the mouse to move, yet I keep running into one problem. I have to click the script, and run through it with me controlling the mouse, then next time I click the script it does it itself. Why doesn't it automate on the first try??? Can somebody please help me with this. I use AutoIt v.3

Link to comment
Share on other sites

AutoItSetOption ("TrayIconHide", 1)

MsgBox(52, "Welcome.", "Continue?")

If WinWaitActive("Welcome.", "Yes") Then

MouseGetPos()

MouseClick ("left", 460, 431, 1, 25)

EndIf

;WinWaitClose ("Welcome.", "Continue?")

Link to comment
Share on other sites

Well, is there a way to where I can interact with my own message box?  Are there anyways around this???

There is never a need to click on your own box. If you want the script to pause and wait for user input, use a message box. If not, then don't use one, because using one will wait for the user to click something. It's that simple.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

If you want the MsgBox to drop out after a little bit of time, use the msgbox timeout feature. See the Help file for more info in it.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Link to comment
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
 Share

  • Recently Browsing   0 members

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