Sign in to follow this  
Followers 0
PoojaKrishna

Working with iTunes WebViewWindowClass

13 posts in this topic

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=8

and after loading iTunes I want to click on the [Free] button displayed on the Itunes.

Please help.

Posted Image

Share this post


Link to post
Share on other sites



You may need to read this: http://www.autoitscript.com/forum/index.php?app=forums&module=extras&section=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
happy.png

Share this post


Link to post
Share on other sites

I'm sorry, if I have broken any rules. What I have to do to remove the post if it is against the rules?

Share this post


Link to post
Share on other sites

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? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (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? :huh:

M23

ups, didn't notice that almost hidden report link

if it was a question, by this:

Automation of software/sites contrary to their EULA (see Reporting bullet below).

Edited 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
happy.png

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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

I'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
happy.png

Share this post


Link to post
Share on other sites

DiOgO,

seems to be a download automator

And where does it say in the Forum rules that download automators are not permitted?

I'm not judging anyone

Yes 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

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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
happy.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
happy.png

Share this post


Link to post
Share on other sites

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.

;#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

Share this post


Link to post
Share on other sites

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.

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