ileandros Posted December 18, 2012 Share Posted December 18, 2012 Hello,I am trying 2 hours now to find the controlID of a button and i cant get it.I 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 I managed finding it getting the properties-outerText of the site but i could get its id. I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
DaleHohm Posted December 18, 2012 Share Posted December 18, 2012 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 Link to comment Share on other sites More sharing options...
ileandros Posted December 18, 2012 Author Share Posted December 18, 2012 (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 December 18, 2012 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2012 Share Posted December 18, 2012 P.s. i could push some other buttons on the flash onject.Show how you do that, and you're in with a chance. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ileandros Posted December 18, 2012 Author Share Posted December 18, 2012 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. Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2012 Share Posted December 18, 2012 I must misunderstand. You got the control ID of an element of a flash object and used controlclick? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ileandros Posted December 18, 2012 Author Share Posted December 18, 2012 _IEGetObjectById / _IEAction($controlID, "click") I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2012 Share Posted December 18, 2012 I don't get it. Never mind. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2012 Share Posted December 18, 2012 Maybe if you give an example of clicking the mute volume control on this page http://www.tellyads.com/show_movie.php?filename=TA15167 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ileandros Posted December 19, 2012 Author Share Posted December 19, 2012 (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 December 19, 2012 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
Bowmore Posted December 19, 2012 Share Posted December 19, 2012 @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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now