Jump to content

Help with MouseMove not working


rethcaw
 Share

Recommended Posts

Hello AutoIT Forums,

I am fairly new to AutoIT and to the Forums.  I did some searching here and with Google and have not been able to solve this problem so I was hoping that you all could help.  I am trying to create an AutoIT script that will rebuild the Windows Index and I just can not seem to get the second mouse click to work.

The first MouseClick works just fine.  After the "Advanced Options" window opens the second MouseClick / MouseMove will not work

AutoItSetOption("MouseCoordMode", 0)
Run('control /name Microsoft.IndexingOptions')

WinWaitActive("Indexing Options","")
MouseClick("primary", 225, 450, 1, 5)

WinWaitActive("","Rebuild")

#MsgBox(0, "found", "found the Rebuild text")

#MouseClick("primary", 508, 408, 1, 5)
MouseMove(508,408,0)

Thanks any help / suggestions would be appreciated.

Rich

Link to comment
Share on other sites

Not tested, but it may be because the advanced menu is behind a security wall (notice the shield symbol). Have you tried adding #RequireAdmin on the top of your script to make sure it attains admin rights?

Also, syntax is right, though using keyboard keystroke sending instead of the mouse is still one of the least desirable ways to control a gui. If you want to go through the GUI at all (instead of directly to the registry, for instance, or maybe some built-in dll that I don't know of, but it may be worth the research), a better option is to identify the buttons individually (use the Tool of Tools "Au3Info", ctrl+F6 in scite4autoit).

Roses are FF0000, violets are 0000FF... All my base are belong to you.

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