PoojaKrishna Posted February 9, 2013 Share Posted February 9, 2013 Hi friends,I'm new to iTunes and I'm working on script to download free ipa to windows machine. Is there any way to get the handle to an IE form elements displayed on a iTunes in the WebViewWindowClass control?I have searched the whole forum but I couldn't find any post related to downloading on iTunes.My script executes the following cmd to goto the downloading page:C:\Program Files (x86)\Internet Explorer>iexplore itmss://itunes.apple.com/us/app/ibooks/id364709193?mt=8and after loading iTunes I want to click on the [Free] button displayed on the Itunes.Please help. Link to comment Share on other sites More sharing options...
Kyan Posted February 9, 2013 Share Posted February 9, 2013 You may need to read this: http://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there'sĀ InetReadĀ and WinHTTP, way better Link to comment Share on other sites More sharing options...
PoojaKrishna Posted February 9, 2013 Author Share Posted February 9, 2013 I'm sorry, if I have broken any rules. What I have to do to remove the post if it is against the rules? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 9, 2013 Moderators Share Posted February 9, 2013 DiOgO, You have not bothered to report this thread so I have stumbled on it by chance. Why do you feel it is against the Forum rules? M23 Ā AnyĀ of myĀ own codeĀ posted anywhere on the forumĀ isĀ available for use by others without any restrictionĀ of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSortĀ ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- AĀ highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort,Ā edit and colourĀ ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Ā Link to comment Share on other sites More sharing options...
Kyan Posted February 9, 2013 Share Posted February 9, 2013 (edited) DiOgO,You have not bothered to report this thread so I have stumbled on it by chance. Why do you feel it is against the Forum rules? M23ups, didn't notice that almost hidden report linkif it was a question, by this:Automation of software/sites contrary to their EULA (see Reporting bullet below). Edited February 9, 2013 by DiOgO Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there'sĀ InetReadĀ and WinHTTP, way better Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 9, 2013 Moderators Share Posted February 9, 2013 DiOgO,And the "Reporting bullet" goes on to say:"If you suspect a EULA violation, do not expect the Moderating team to do all the work - please provide some evidence in the report such as a copy of (or link to) the EULA in question, as well as the section you believe has been violated"Over to you. M23 Ā AnyĀ of myĀ own codeĀ posted anywhere on the forumĀ isĀ available for use by others without any restrictionĀ of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSortĀ ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- AĀ highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort,Ā edit and colourĀ ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Ā Link to comment Share on other sites More sharing options...
Kyan Posted February 9, 2013 Share Posted February 9, 2013 DiOgO,And the "Reporting bullet" goes on to say:"If you suspect a EULA violation, do not expect the Moderating team to do all the work - please provide some evidence in the report such as a copy of (or link to) the EULA in question, as well as the section you believe has been violated"Over to you. M23I'm not judging anyone, but seems to be a download automator, if there's no problem to it (or there is) no change is made in my mood Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there'sĀ InetReadĀ and WinHTTP, way better Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 9, 2013 Moderators Share Posted February 9, 2013 DiOgO, seems to be a download automatorAnd where does it say in the Forum rules that download automators are not permitted? I'm not judging anyoneYes you are, by posting as you did above. We are very grateful to those who help us keep the forum a pleasant place to visit, but we do ask that if they believe there is a problem that is not immediately obvious that they take the time to tell us why. Please do not take this as any form of admonition, but I hope you can see why we have that extra bullet in there: if you think it is a problem, then you need to explain why - the Mods just do not have the time to research every possible EULA. PoojaKrishna, On a quick search I can find no restriction on automation in the iTunes EULA - unless DiOgO (or someone else) comes up with chapter and verse, i am happy for this thread to continue. M23 Underdogger 1 Ā AnyĀ of myĀ own codeĀ posted anywhere on the forumĀ isĀ available for use by others without any restrictionĀ of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSortĀ ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- AĀ highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort,Ā edit and colourĀ ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Ā Link to comment Share on other sites More sharing options...
Kyan Posted February 9, 2013 Share Posted February 9, 2013 On a quick search I can find no restriction on automation in the iTunes EULA - unless DiOgO (or someone else) comes up with chapter and verse, i am happy for this thread to continue. Speaking that way seems that I'm trying to close this thread lol------To answer to the question of this thread, why you don't grab source code and download it directly (without be need itunes open) Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there'sĀ InetReadĀ and WinHTTP, way better Link to comment Share on other sites More sharing options...
PoojaKrishna Posted February 9, 2013 Author Share Posted February 9, 2013 Melba23, Thank you for allowing this thread to continue. --------------------------------------------------------------------- DiOgO, How can we get source code of that page? I believe ipa downloads are only possible through iTunes, ipad etc not directly using IE. Link to comment Share on other sites More sharing options...
Kyan Posted February 9, 2013 Share Posted February 9, 2013 DiOgO,How can we get source code of that page? I believe ipa downloads are only possible through iTunes, ipad etc not directly using IE.it uses https IDK how do decrypt it Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there'sĀ InetReadĀ and WinHTTP, way better Link to comment Share on other sites More sharing options...
PoojaKrishna Posted February 11, 2013 Author Share Posted February 11, 2013 Hi Friends, No solutions yet . Anyway I have used MouseClick to click on the button for now and the code is below. If anyone else have a better idea, then please help. expandcollapse popup;#Function#------------------------------------------------------------------------------------------------------------------ ;Name.........: _ClickFreeButton ;Description..: Click on the [Free] button in iTune's page with given offset ;Syntax.......: _ClickFreeButton($nFreeButtonOffsetX,$nFreeButtonOffsetY) ;Parameters...: $nFreeButtonOffsetX -> X offset ; $nFreeButtonOffsetY -> Y offset ;Return Values: Success-> returns 1 @error to 0 ; Error-> Sets @Error and returns 0 ; 1-> Time out ; 2-> Win not found ; 3-> Invalid click parametrs ;Sample Call..: _ClickFreeButton(120, 380) ;Remarks......: None ;---------------------------------------------------------------------------------------------------------------------------- Func _ClickFreeButton($nFreeButtonOffsetX = 131, $nFreeButtonOffsetY = 387) $h_iTunes = WinWaitActive("iTunes","",180);Wait for the iTunes window If $h_iTunes = 0 Then ;TimeOut $sError = "Starting iTunes Timed out" ;Set error message SetError(1) ;Set error Return(0) ;return 0 EndIf $aITunesWinPos = WinGetPos ( "iTunes") ;iTunes win position If @Error Then $sError = "iTune win not found." ;Set error message SetError(2) ;Set error Return(0) ;return 0 EndIf $nRet = MouseClick ( "left" , $nFreeButtonOffsetX + $aITunesWinPos [0], $nFreeButtonOffsetY + $aITunesWinPos [1]) ;Click free button If $nRet = 0 Then $sError = "Invalid parameters used for mouse click." ;Set error message SetError(3) ;Set error Return(0) ;return 0 EndIf Return(1) EndFunc;=>_ClickFreeButton Link to comment Share on other sites More sharing options...
malmoores Posted July 1, 2014 Share Posted July 1, 2014 Has anybody been able to read buttons or text in an iTunes window yet? I have the same issue has above with a script for creating apple id's for multiple ipad's I am struggling to register window updates as the script runs, simply adding sleep (10000) etc is inefficient and fails when a window does not load for an extended period of time. Any help would be greatly appreciated. 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