Jump to content
Sign in to follow this  
Au3Builder

Internet Explorer -double click

Recommended Posts

Au3Builder

Hi. How do I perform double click on specific element? 

alternatively drag&drop

Edited by Au3Builder

Share this post


Link to post
Share on other sites
Au3Builder

I meant normal double click, 

my scheme

IEGetObjById

_ie action(click)

but it clicks once (and I want two clicks)

 

Do u know any alternative to $oElement.fireEvent("ondblclick")

because doesn't work for me

Edited by Au3Builder

Share this post


Link to post
Share on other sites
JLogan3o13

What is the control you're trying to doubleclick (not much in IE needs a doubleclick, that I can think of). Again, you're not providing a wealth of information. How about a working reproducer script to show the issues you're encountering?


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Danp2

You need to figure out what actions take place when you manually double click on the item, ie: what Javascript function gets executed. Once you know that, then you should be able to simulate the double click with Autoit.

Share this post


Link to post
Share on other sites
Au3Builder

here's the task for tough guys only (2x click on the button using ie library)   :x

I prepared the website with the little hint below (for those who don't know that this button can  be clicked by tagname only)  ...so you can make attempts as many times as you wish and post your solution here  :rambo:

#include <MsgBoxConstants.au3>
 
#include<ie.au3>
 
 
 
Local $oElements = _IETagNameAllGetCollection($dbl)
For $oElement In $oElements
   ; If $oElement.id Then MsgBox($MB_SYSTEMMODAL, "Element Info", "Tagname: " & $oElement.tagname & @CRLF & "id: " & $oElement.id & @CRLF & "innerText: " & $oElement.innerText)
If $oElement.tagname = "button"   then _IEAction($oElement,'disable')
Next
 
 

 

 

Edited by Au3Builder

Share this post


Link to post
Share on other sites
Danp2

Suggest that you go back and review the initial link that I posted as this should be the solution to your issue. The fact that it didn't work for you is indicative that you probably did it wrong. o:)

Post your code that doesn't work and then maybe someone will jump in and help you.

Share this post


Link to post
Share on other sites
Au3Builder

Well. This is not really I want to achieve (firevent example works on this website  :thumbsup: ).However topic can be closed because I want to click on one 'img-item' ingame what breaks the forum rulez

 

PS. If anyone's willing to help me out,pm me.

Edited by Au3Builder

Share this post


Link to post
Share on other sites
JLogan3o13

So, you admit your request breaks the forum rules, but ask (albeit privately) for help anyway? I see a long and illustrious forum career ahead of you... ;)


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

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  

×