Sign in to follow this  
Followers 0
MaritimeGirl

AutoIt & IE - Can't trigger ondlbclick

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



If you take a look in help file you'll see it's _IEAction($oObj,"click"). I suppose for double click you can use it twice.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Firing _IEAction($oObj,"click") does not equate to a double click, it runs click twice.

Share this post


Link to post
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

Share this post


Link to post
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.)

Share this post


Link to post
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
Sign in to follow this  
Followers 0