poohsdad
08-17-2009, 08:52 PM
Hi. I'm trying to pull the URl from a web object and while it is "Site_1" continue to watch it. If that changes, the proceed to the if statement. Problem is, it seems to hang on the "Repeat" loop. In Vista i get a "Not Responding and the app just hangs, even the web object doesn't auto refresh as written in the code. Would someone mind checking the code to see if I'm missing something stupid? Thanks!
Web.LoadURL("Web1", "http://SITE_1.html");
Dialog.TimedMessage("Please Wait...", "Loading Content...", 3000, MB_ICONINFORMATION); -- gives web obj time to load
current_URL = Web.GetURL("Web1");
repeat
current_URL = Web.GetURL("Web1");
until current_URL ~= "http://SITE_1.html";
if current_URL == "http://SITE_2.html" then
adios = Dialog.Message("Notice", "We're sorry. It's too late to join this week's feed. The program will now close. Please check back next week.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit();
else
--basic timer stuff here
end
Web.LoadURL("Web1", "http://SITE_1.html");
Dialog.TimedMessage("Please Wait...", "Loading Content...", 3000, MB_ICONINFORMATION); -- gives web obj time to load
current_URL = Web.GetURL("Web1");
repeat
current_URL = Web.GetURL("Web1");
until current_URL ~= "http://SITE_1.html";
if current_URL == "http://SITE_2.html" then
adios = Dialog.Message("Notice", "We're sorry. It's too late to join this week's feed. The program will now close. Please check back next week.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit();
else
--basic timer stuff here
end