2011-02-21, 11:33 PM
pBS Wrote:yea, those forums are kinda snobby, makes one appreciate the helpfulness here..Absolutely...
Quote:hmm, add a ",0" to end of ienavigate lines to not wait for page reload,[cuz it isn't reloading actually,just using javascript to alter what shows up]That was the magic catalyst! Wow, THANK YOU pBS! I added that to my script to test. It worked (with one thing that I need to delve deeper into wrt Dates**)
[just javascript navigations, not the first one..]
and can go straight to page with first nav, http://www.setanta.com/HongKong/TV-Listings/
Quote:if you waited about 5 mins your script would continue after page timed out.. that's why nowait works..
Code:
_IENavigate($oIE,"javascript:__doPostBack('ctl00$cphForm$AllCols$tvlHeader$rptDays$ctl03$btnDay','')",0)
SaveTVxBhtml()
Code:
Func SaveTVxBhtml()
sleep(3000)
$SaveDate = @YEAR&@MON&$MDAYALT
$sHTML = _IEDocReadHTML ($oIE)
filewriteline($savedate & ".html",$sHTML)
endfunc
Quote:aha! needed instance 3 not 2 for type, and some other typos etc..uploading working script..I need to check that too, beacuse I found that at work (XP) the Instance for the buttons CHANGED. I am using Vista32 at home and you ",0)" addition alone worked magic.
Be interested in what the other typos are, is there a way to compare scripts where changes are highlighted? Magic ! Made my day, thanks again!
** I need to find a way to harvest the date from the webpage, atthe moment I save using todays date, but Setanta don't change the default page so on the Webpage it says 21st, but I'm saving that date as the 22nd. More to work on, but it's a great start.
Cheers
k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |