Code: Select all
on mouseUp pMouseButton
repeat for each line tUrl in field "URLS"
set the url of widget "Browser" to tUrl
wait 60 ticks
put the htmltext of widget "Browser" into tText
--parse tText to get the data I want
end repeat
end mouseUp
Since I would like to have the retrievals of data be as close as possible (i.e. No wasted ticks) I tried a different approach. I have created a custom variable in the widget called cBusy and made some code modifications to now look like the following.
I added this code to the browser widget:
Code: Select all
on browserNavigateBegin pUrl
set the cBusy of me to true
end browserNavigateBegin
on browserNavigateComplete pUrl
set the cBusy of me to false
end browserNavigateComplete
Code: Select all
on mouseUp pMouseButton
repeat for each line tUrl in field "URLS"
if tUrl="ALL" then next repeat
set the cBusy of widget "Browser" to false
set the url of widget "Browser" to tUrl
repeat
wait 5 ticks
put the cBusy of widget "Browser" into tFlag
if tFlag is false then exit repeat
end repeat
put the htmltext of widget "Browser" into tText
--parse the text to get the data I want
end repeat
end mouseUp
Any ideas?
Thanks,
Larry