Sign in to follow this  
Followers 0
ileandros

IE find objects' ID

11 posts in this topic

Hello,

I am trying 2 hours now to find the controlID of a button and i cant get it.

Posted ImageI want to get the controlID of the button in the picture. It is from the google maps. If anyone can help me find it please do :D

I managed finding it getting the properties-outerText of the site but i could get its id.


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites



The whole thing is a flash object - there is no DOM access to the components.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Dale,

Ok i understand that. Is there another way to push that button.

If you tried it you will see that pressing it opens the map fullscreen.

P.s. i could push some other buttons on the flash onject.

Edit: i tried navigating the site and scrolling on the flash object but it didnt focus on that item.

Edited by ileandros

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

Show how you do that, and you're in with a chance.

Just got the controlID of it and clicked it nothing special...


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

_IEGetObjectById / _IEAction($controlID, "click")


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

I think this one might be ur flash player there, this is what i drugged out of it. If it is this one though:

#include <IE.au3>
$oie = _IECreate("http://www.tellyads.com/show_movie.php?filename=TA15167")
Local $id
Local $olinks = _IETagNameGetCollection($oie, "param")
For $olink In $olinks
ConsoleWrite($olink.outerhtml & @CRLF) ; Edit: This will give you what exactly is written in source code
Next

I dont think you could click it with _IEAction()

Maybe you could do it with other click but not with ie click

Edit: ControlClick would work

Edited by ileandros

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

@JohnOne

This script can reliably run and control that video in my default browser Opera. Something similar should work with other browsers.

ShellExecute("http://www.tellyads.com/show_movie.php?filename=TA15167")
WinActivate("Flash '50 Years Of Shine' TV ad - 30 sec advert")
$hWin = WinWaitActive("Flash '50 Years Of Shine' TV ad - 30 sec advert")
Sleep(5000)
Controlclick($hWin,"","[CLASS:aPluginWinClass; INSTANCE:1]","Left",1,17,314)
Sleep(10000)
Controlclick($hWin,"","[CLASS:aPluginWinClass; INSTANCE:1]","Left",1,368,314)
Sleep(5000)
Controlclick($hWin,"","[CLASS:aPluginWinClass; INSTANCE:1]","Left",1,385,314)
Sleep(5000)
Controlclick($hWin,"","[CLASS:aPluginWinClass; INSTANCE:1]","Left",1,336,314)
Sleep(5000)
Controlclick($hWin,"","[CLASS:aPluginWinClass; INSTANCE:1]","Left",1,336,314)
Sleep(3000)
Controlclick($hWin,"","[CLASS:aPluginWinClass; INSTANCE:1]","Left",1,17,314)

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

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