Jump to content

Recommended Posts

Posted

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.

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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?

Posted

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 thanks

I will still thrown from not needing a wend so missed the quote due to lack of experience

Thank you

Rick

Posted (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 suggestion

Many 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 well

Oh I'm not using =="Done" I'm looking for done in a string since the page might load Done, but with Errors

Rick

Edited by tutor2000
Posted

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.

Posted

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 length

You 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 au2

My 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 change

Maybe something there though

Rick

Posted

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.

Posted

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.

Posted

;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

Thanks modeler2us,

I modified your code a bit for my IE. The modification is aim for repeat occurance of "Done" during loading url. :ph34r:

$Counter = 0

$OK = StatusbarGetText ( "Microsoft Internet Explorer")

While $OK <> "Done" or $Counter <> 5

Sleep(100)

$OK = StatusbarGetText ( "Microsoft Internet Explorer")

IF $OK = "Done" Then

$Counter = $Counter + 1

Else

$COunter =0

EndIf

Wend

Posted

Thanks modeler2us,

I modified your code a bit for my IE. The modification is aim for repeat occurance of "Done" during loading url.  :ph34r:

$Counter = 0

$OK = StatusbarGetText ( "Microsoft Internet Explorer")

While $OK <> "Done" or $Counter <> 5

Sleep(100)

$OK = StatusbarGetText ( "Microsoft Internet Explorer")

IF $OK = "Done" Then

$Counter = $Counter + 1

Else

$COunter =0

EndIf

Wend

Only suggestion I'd make is use stringinstr

if stringinstr(OK,"Done") then

blah

endif

that way if you get get Done, but with errors it will still know it's loaded

Rick

Posted

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

Posted

Thanks modeler2us,

I modified your code a bit for my IE. The modification is aim for repeat occurance of "Done" during loading url.  :ph34r:

$Counter = 0

$OK = StatusbarGetText ( "Microsoft Internet Explorer")

While $OK <> "Done" or $Counter <> 5

Sleep(100)

$OK = StatusbarGetText ( "Microsoft Internet Explorer")

IF $OK = "Done" Then

$Counter = $Counter + 1

Else

$COunter =0

EndIf

Wend

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.
Posted

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 :ph34r:...

(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 :lol:

Thanks Again All

Posted

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 :ph34r:...

(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 :lol:

Thanks Again All

You still get the link in the status bar when you tab to the link

Rick

Posted

^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!

Posted

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

Posted

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.

Posted

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 link

It's fairly simple and in the help file

Rick

Posted

Well  you can read the status bar just by tabbing to the link

It's fairly simple and in the help file

Rick

Sorry read the last post not the whole thread

Rick

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...