Jump to content
Sign in to follow this  
ken82m

Loop Stuck...Solved

Recommended Posts

ken82m

I think this just needs a fresh set of eyes :)

The loop itself is fine syntax wise, but when I use it in my script it gets stuck.

It will just bounce back and forth between 12 and 11.

I've tried Do...Until, While...Wend and none of them work right.

I've tried different variable names for the loop but nothing.

I attached the au3 and Array2.au3 which is an include you'll need to run it.

To test:

Enter thw URL: http://epguides.com/StargateAtlantis

Select: "S00E00 Name"

Click: "Download Episode Data"

Here's the section with the problem:

;Starts at line 233
$Count = 0
SplashOff()
For $z = 12 To 1 Step -1
     If StringInStr($Line, "   ", 0, $z) > 0 Then
          $Count = $z
          ExitLoop
     EndIf
     MsgBox(0,"Loop",$z)
Next
MsgBox(0,"End Loop","End Loop")

Thanks,

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites
ken82m

Sh**......I think It's find I'm just tired

EDIT: Yeah I got it working, I guess just taking my eyes off it for a while helped.

Sorry about that.

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

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  

×