Guest Guest Posted June 22, 2004 I have a question regarding WinWait. WinWait "title" "text" So if i have a Setup window, that says Welcome to setup wizard i type: WinWait "Setup", "Welcome to setup wizard" But, if i got a Internet explorer window, and want to wait until the page is loaded, what do i type then? I know what it will say on the loaded page, but when using Spy, it can“t see any text? So in short, how do i wait for a webpage to load until continue script? Share this post Link to post Share on other sites
Guest Guest Posted June 22, 2004 Why is this not working? Run ("C:\Program Files\Internet Explorer\iexplore") Global $SD = @ScriptDir & "\" Opt("WinTitleMatchMode", 2) Opt("WinDetectHiddenText", 1) $x = StatusbarGetText("Utopia") IniWrite($SD & "test.ini", "Options", "test", $x) My "Home Page" is Utopia, it just send a empty value to my ini file. [Options] test= Share this post Link to post Share on other sites
emmanuel 0 Posted June 22, 2004 (edited) But, if i got a Internet explorer window, and want to wait until the page is loaded, what do i type then?check out StatusbarGetText in my IE, when a page is loaded, it says Done in Part 1... winwait("window title", StatusbarGetText ( "title" [, "text" [, part]] ) ="Done")would probably do it... >>>>>>>>>>> Status Bar Text <<<<<<<<<<< (1): Done (2): (3): (4): (5): (6): Internet Edited June 22, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites
Guest Doxie Posted June 22, 2004 Another question, what is the command to open a URL Share this post Link to post Share on other sites
sugi 0 Posted June 23, 2004 (edited) @Doxie: Run(@ComSpec & ' /c start "http://foo/bar"') or in WinNT4+: Run(@ComSpec & ' /c start "" "http://foo/bar"') (untested but should work) Edited June 23, 2004 by sugi Share this post Link to post Share on other sites
midiaxe 0 Posted June 23, 2004 You can try the following code. Works on my WinXP home edition: Run ("C:\Program Files\Internet Explorer\iexplore http://www.yahoo.com") Share this post Link to post Share on other sites
Doxie 0 Posted June 23, 2004 Thanks, ill try both. Were ever i lay my script is my home... Share this post Link to post Share on other sites
sugi 0 Posted June 23, 2004 Run ("C:\Program Files\Internet Explorer\iexplore http://www.yahoo.com")This will make everybody who doesn't like the internet explorer go crazy since they're unable to change the browser without modifying the script. You should also use @ComSpec & " /c start iexplore.exe" instead of the full path. Using the full path will fail on every computer where "Program Files" is called different. So only use this if your script really needs the internet explorer. Share this post Link to post Share on other sites