DECLARE Sleep IN WIN32API Integer DO WHILE .T. oShell = CREATEOBJEC("Shell.Application") oWIndows = oShell.Windows FOR EACH oWindow IN oWIndows * The windows collection contains both IE instances and explorer instance * you can tell the difference because IE instances have "file..." in the locationURL property IF oWindow.LocationURL = "http" * Do something here ENDIF ENDFOR * Pause for one second =Sleep(1000) ENDDOYou can then compile this prg as an exe and create a registry entry at HKLM/Software/Microsoft/Windows/CurrentVersion/Run of the target machine that runs the app on startup.