Jump to content

Problem with MouseClick


Elku
 Share

Recommended Posts

Ok, so I am making an automatic database entry program and I get this bug

When I tell the program to click at location X,Y, sometimes it will just move to it and NOT click it. I tested it thoroughly and it's pretty much at one X,Y location that it keeps doing that over and over. That location is after the program switched screen (from one internet page to the database).

Link to comment
Share on other sites

Ok, so I am making an automatic database entry program and I get this bug

When I tell the program to click at location X,Y, sometimes it will just move to it and NOT click it. I tested it thoroughly and it's pretty much at one X,Y location that it keeps doing that over and over. That location is after the program switched screen (from one internet page to the database).

Since it happens in a particular app, it is more likely the app is sensitive to the delay options, like: MouseClickDelay, MouseClickDownDelay, MouseClickDragDelay.

Look those up in the help file and try a little tweaking.

Timing could also be involved if the window being clicked was just opened. There might be cause to try things like WinWaitActive, or MouseMove(), followed by a Sleep(), then MouseClick(), etc.

If this is being done in IE, then you want to get sync'd with the browser operations by things like _IELoadWait().

:)

Edited by PsaltyDS
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

Since it happens in a particular app, it is more likely the app is sensitive to the delay options, like: MouseClickDelay, MouseClickDownDelay, MouseClickDragDelay.

Look those up in the help file and try a little tweaking.

Timing could also be involved if the window being clicked was just opened. There might be cause to try things like WinWaitActive, or MouseMove(), followed by a Sleep(), then MouseClick(), etc.

If this is being done in IE, then you want to get sync'd with the browser operations by things like _IELoadWait().

:)

Thank, figured out the MouseClickDownDelay this morning, the 10ms down was too short for firefox, increased it to 100 and it's perfect now, 100% success after 150 database entry.

Edited by Elku
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...