View Single Post
  #2  
Old 11-12-2007, 07:42 PM
Xanderz Xanderz is offline
Senior Member
 
Join Date: Oct 2007
Posts: 230
Default Re: Frustrated AHK noob.

if %ErrorLevel% = 0
should be
if (ErrorLevel == 0)

Your script is probably getting stuck at
WinWait, , Network Status
As I don't think this window comes up unless you are experiencing lag. The script will wait indefinately at the line if the window never appears. Also the lines that follow:

Loop {
IfWinNotExist , , Network Status
break
}

make no sense and the script could be getting stuck in that loop if not stuck at the prior command. Also all If[a-z]+ commands are deprecated (may be totally eliminated in a future release), Use if (!WinExist()) etc.
Reply With Quote