Valik Posted July 6, 2004 Posted July 6, 2004 Without even having a clue where character 38 is, I see instantly that there is a quotation mark missing around the URL. Pasting into SciTE and having just a curious glance, character 38 is at the end of the line which contains the missing quote.
warsur Posted July 7, 2004 Posted July 7, 2004 I have a suggestion. For IE user, when load completed, most web site have a "Done" at the status bar, if make a loop to check wheather "Done" exists for say three times in a loop of 0.2sec? ok?
tutor2000 Posted July 7, 2004 Posted July 7, 2004 Without even having a clue where character 38 is, I see instantly that there is a quotation mark missing around the URL. Pasting into SciTE and having just a curious glance, character 38 is at the end of the line which contains the missing quote.Excellent thanksI will still thrown from not needing a wend so missed the quote due to lack of experienceThank youRick
tutor2000 Posted July 7, 2004 Posted July 7, 2004 (edited) I have a suggestion.For IE user, when load completed, most web site have a "Done" at the status bar, if make a loop to check wheather "Done" exists for say three times in a loop of 0.2sec? ok?Good suggestionMany already use it I believe. The new submission proggy I'm writing will loop for about two minutes. If I just use a counter I'll use maybe about 1000 loops - just guessing right now or I could put in a sleep(1000) and run the counter let's see 120 x 60 whatever. I'm using the mouse cursor as wellOh I'm not using =="Done" I'm looking for done in a string since the page might load Done, but with ErrorsRick Edited July 7, 2004 by tutor2000
WLGades Posted July 7, 2004 Posted July 7, 2004 Yeah, that's how I've been doing it. I realized that it's not a good solution, though, because not all versions of IE seem to say "Done". When I tab to a link and click on it, it just displays the text of that link forever--I'm not exactly sure why. Anyone have ideas? My guess is either some setting (since it works on two of my computers), or ... something else.
tutor2000 Posted July 7, 2004 Posted July 7, 2004 Yeah, that's how I've been doing it. I realized that it's not a good solution, though, because not all versions of IE seem to say "Done". When I tab to a link and click on it, it just displays the text of that link forever--I'm not exactly sure why. Anyone have ideas? My guess is either some setting (since it works on two of my computers), or ... something else.There's always my old method of continuly copying text to the clipboard and looking for certain text or just text lengthYou can then use the clipboard to check for problems with loading by running common Pageload errors through an ini file. I do that with an old submission proggy I wrote in au2My status bar check loops so check the status bar as it's loading then as it's loading start tabbing no wait if it tabs out of the load onto the search bar the status bar will changeMaybe something there thoughRick
WLGades Posted July 7, 2004 Posted July 7, 2004 Yeah, but that runs much slower, then, and is more complex too. What do you mean by running the errors through an ini file, though? And no, I don't think tabbing will work. A MouseMove would, but you have to guarantee that you're not moving it onto a link.
modeler2us Posted July 8, 2004 Author Posted July 8, 2004 Folks, For all of the suggestions, comments, feedback, etc.... This is what I currently use with Mozilla: -------------------------------------------- ; Set the size of the window WinMove("Mozilla", "", 0, 0, 900, 902) ;insert code to do something here... ; Pause while Mozilla is busy $Val = PixelGetColor(875,59) While $Val <> 13349529 Sleep(100) $Val = PixelGetColor(875,59) WEnd ; the above only works on a resolution of 1280x1024 xTrue Color (32bit) ; also, still working on the math to handle any size window/color --------------------------------------------- Last - The above was only possible with input from the posters on this thread, the thanks goes to them, not I.
warsur Posted July 9, 2004 Posted July 9, 2004 ;insert code to do something here...; Pause while Mozilla is busy$Val = PixelGetColor(875,59)While $Val <> 13349529 Sleep(100) $Val = PixelGetColor(875,59)WEndThanks modeler2us,I modified your code a bit for my IE. The modification is aim for repeat occurance of "Done" during loading url. $Counter = 0$OK = StatusbarGetText ( "Microsoft Internet Explorer")While $OK <> "Done" or $Counter <> 5Sleep(100)$OK = StatusbarGetText ( "Microsoft Internet Explorer")IF $OK = "Done" Then$Counter = $Counter + 1Else$COunter =0EndIfWend
tutor2000 Posted July 9, 2004 Posted July 9, 2004 Thanks modeler2us,I modified your code a bit for my IE. The modification is aim for repeat occurance of "Done" during loading url. $Counter = 0$OK = StatusbarGetText ( "Microsoft Internet Explorer")While $OK <> "Done" or $Counter <> 5Sleep(100)$OK = StatusbarGetText ( "Microsoft Internet Explorer")IF $OK = "Done" Then$Counter = $Counter + 1Else$COunter =0EndIfWendOnly suggestion I'd make is use stringinstrif stringinstr(OK,"Done") thenblahendifthat way if you get get Done, but with errors it will still know it's loadedRick
tutor2000 Posted July 9, 2004 Posted July 9, 2004 What do you mean by running the errors through an ini file, though?Kinda Hokey using the clipboard But I copy the page to the clipboard then loop an ini file with texts of page load errors Page not found for example [section] 1=page not found 2=repeat url if stringinstr ($clipboard,$var) then go to next submission page endif ;Rick
WLGades Posted July 9, 2004 Posted July 9, 2004 Thanks modeler2us,I modified your code a bit for my IE. The modification is aim for repeat occurance of "Done" during loading url. $Counter = 0$OK = StatusbarGetText ( "Microsoft Internet Explorer")While $OK <> "Done" or $Counter <> 5Sleep(100)$OK = StatusbarGetText ( "Microsoft Internet Explorer")IF $OK = "Done" Then$Counter = $Counter + 1Else$COunter =0EndIfWendAlso, you're not always guaranteed to get 5 "Done"s, are you? Are you loading a page with frames? If you are, the loads can overlap and you can miss one of them.
modeler2us Posted July 9, 2004 Author Posted July 9, 2004 WLGades, That was my problem exactly, one frame had a java applet in it, and focus could change in what appeared to be load time of the VM in not yet loaded, or if for whatever the reason, decided not to load.... All, Also - another for all of those who have commented, posted on this thread (aside from the experts I've learned much from ... (a secret i found out about in Mozilla, when you have focus on a link, after say - searching for it, perform a Shift+F10 to get a right mouse click context menu, without engaging the mouse... mouse bad, very very bad Thanks Again All
tutor2000 Posted July 9, 2004 Posted July 9, 2004 WLGades,That was my problem exactly, one frame had a java applet in it, and focus could change in what appeared to be load time of the VM in not yet loaded, or if for whatever the reason, decided not to load....All,Also - another for all of those who have commented, posted on this thread (aside from the experts I've learned much from ...(a secret i found out about in Mozilla, when you have focus on a link, after say - searching for it, perform a Shift+F10 to get a right mouse click context menu, without engaging the mouse...mouse bad, very very bad Thanks Again AllYou still get the link in the status bar when you tab to the linkRick
WLGades Posted July 9, 2004 Posted July 9, 2004 In fact, you have to tab to it, I'm pretty sure. Since there's no way to find the link after using Ctrl + F.
modeler2us Posted July 10, 2004 Author Posted July 10, 2004 ^l or CTRL-L gets you to the page link, however only the shift F10 gets you to a context menu for a link found in a page - which when frames are used, are probably different... Cheers!
modeler2us Posted July 10, 2004 Author Posted July 10, 2004 opps - sorry about the above if the status bar can be read when a link is found using either CTRL-F or 'any_text... if it can, I'd greatly appreciate knowing how...
warsur Posted July 10, 2004 Posted July 10, 2004 Also, you're not always guaranteed to get 5 "Done"s, are you? Are you loading a page with frames? If you are, the loads can overlap and you can miss one of them.ar..........I currently focusing on a particular website, and I saw the "Done" appeared and gone when something else is downloading, and a final "Done" appeared, so I used $Counter to check this real "Done".maybe delete {Sleep(100)} before {While $OK <> "Done" or $Counter <> 5} even better.
tutor2000 Posted July 10, 2004 Posted July 10, 2004 opps - sorry about the above if the status bar can be read when a link is found using either CTRL-F or 'any_text...if it can, I'd greatly appreciate knowing how...Well you can read the status bar just by tabbing to the linkIt's fairly simple and in the help fileRick
tutor2000 Posted July 10, 2004 Posted July 10, 2004 Well you can read the status bar just by tabbing to the linkIt's fairly simple and in the help fileRickSorry read the last post not the whole threadRick
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