BitByteBit Posted December 17, 2009 Share Posted December 17, 2009 (edited) Hi there, thanks again for opening my post. I'm having some trouble working with a webpage. I need to download the mp3 by clickin on the Download MP3 link, however the html/java code on the page is not something I have encountered before. I have tried: IELinkClickByText with no luck. I thought about IEFormElementGetObjByName() but realized this was a no go due to how the page is coded. Here is my script: expandcollapse popupOpt("WinTitleMatchMode", 2) #include<ie.au3> $IE = _IECreate("http://www.video2mp3.net/", 1, 1) ;Create window hidden (not hidden here,but that is my intention!) $Form = _IEFormGetCollection($IE, 0) $Url = _IEFormElementGetObjByName($Form, "url") ;Find url entry box ClipPut("http://www.youtube.com/watch?v=BLU60CD-Poo") ; Will be obtained using a different method $Clip = ClipGet() _IEFormElementSetValue($Url, $Clip) ;put url into box _IEFormElementRadioSelect($Form , "1", "quality", 1,"byValue") ;select high quality button $Submit = _IEGetObjByName ($IE, "submit") _IEAction ($Submit, "click") _IELoadWait ($IE) Sleep(50) ;$Name = _IEPropertyGet ($IE,"title") While _IEPropertyGet ($IE,"title") = "Video2mp3 - Converting..." ToolTip("Converting.") Sleep(75) ToolTip("Converting..") Sleep(75) ToolTip("Converting...") Sleep(75) ToolTip("Converting..") Sleep(75) ToolTip("Converting.") Sleep(75) ToolTip("Converting") Sleep(75) WEnd ToolTip("") _IELinkClickByText ($IE, "Download MP3") ; Here is the problem <a href='" + response[2] + "' onclick='clearTimeout(downloadTimer)'><b>Download MP3</b></a> ;Sleep(2500) ;ControlClick("Video2mp3 - Finished: ","","[CLASS:Button; INSTANCE:1]") ; Click security box ;Sleep(250) ;ControlSend("Video2mp3 - Finished: ","","[CLASS:Button; INSTANCE:1]","d") Is there any hope? Edited December 17, 2009 by BitByteBit 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