Jump to content

AutoIt & IE - Can't trigger ondlbclick


Recommended Posts

I'm happily using AutoIt to export Oracle databases, perform data compares, log into my web application and AutoIt is working beautifully for me until I need to do a double click in the browser.

The following action won't work for me:

_IEAction($o_row, "ondblclick")

I receive:

IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidValue (Invalid Action)

Then I hoped I could just be sneaky and do this but of course not though my row does get selected so I know the object was found...

_IEAction($o_row, "onclick")

_IEAction($o_row, "onclick")

Does anyone have a workaround for this?

Link to comment
Share on other sites

By following the link you will see that ondblclick event can be invoked like this:

Click the left mouse button twice in rapid succession over an object. The user's double-click must occur within the time limit specified by the user's system.

That's different than for onclick:

  • Click the object.
  • Invoke the click method.
  • Press the ENTER key in a form.
  • Press the access key for a control.
  • Select an item in a combo box or list box by clicking the left mouse button or by pressing the arrow keys and then pressing the ENTER key.

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

Hmm... turns out after some digging into the IE.au3 source file, dblclick isn't supported yet so I'll try to add it myself.

(While neither pretty nor efficient, I can trigger the double click by determining the x,y coordinates of the element I need to have doubleclicked, then perform MouseClick("left", x, y) twice. At least I'm not hardcoding the coordinates.)

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