monte Posted February 3, 2006 Share Posted February 3, 2006 Hello. I have two questions. 1) I do not know how to navigate to a web page using internet explorer and 2) do you have to have autoit installed in order to run a script complied with autoit (ie .exe)? Thanks in advance for any help you may be able to provide.Here's my sample code:run("C:\progra~1\intern~1\iexplore.exe http://somewebpage.com/some/folder%someOther/folder/")If I remove the http refernece I can get iexplore.exe to run, however I want to navigate to a particular webpage. Thanks again. Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2006 Share Posted February 3, 2006 1 First you might want to look into Dale's IE.au3 Library... here http://www.autoitscript.com/forum/index.php?showtopic=13398# then look into the IE.au3 Builder.... here http://www.autoitscript.com/forum/index.php?showtopic=19368# 2 Run(@ComSpec & " /c Start http://www.autoitscript.com", "", @SW_HIDE) 8) Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 Thank you very much for you're help. That works, but now when trying to access this web site I get: error in expression. Run(@ComSpec & " /c Start http://somewebpage.com/some/folder%20datab.../folder/"& $myString &, "", @SW_HIDE) Thanks very much for your quick reply Valuater, you have really helped me! Link to comment Share on other sites More sharing options...
Valuater Posted February 3, 2006 Share Posted February 3, 2006 this part is incorrect & $myString & 1 the last "&" for sure 2 what is $myString ??? 8) Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 I apologise, $myString is a string variable. Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 You can ignore the second part of my question, the compile faq I found states that the exe created is standalone. No need for autoit to be installed. Thanks. Link to comment Share on other sites More sharing options...
monte Posted February 3, 2006 Author Share Posted February 3, 2006 ok, I've found a work-a-round. I'm using replace() and simply replacing my variable with another. However, that brings me to a new problem:run($myVariable &)fails with: error in regular expression$myVariable contains the variable of the run(). ie @ComSpec &....the rest of the url.Things that make you go hmmmmm....... Link to comment Share on other sites More sharing options...
UTA Posted February 3, 2006 Share Posted February 3, 2006 (edited) I'm not really sure If I really understood the problem but what I know ist that the character "&" (Without quotes!) is used to merge any strings or variables.So If you have two strings ($string1 = "Text1", $string2 = "Text2") and you are writing following line of code:$Result = $string1 & $string2...than the result-variable is "Text1Text2".But if you are writing a line of code like this:$Result = string1 &...than there is missing the second expression. Perhaps that is your problem.Try this instead:1)Run(@ComSpec & " /c Start http://somewebpage.com/some/folder%20datab.../folder/" & $myString, "", @SW_HIDE)2)run($myVariable)UTA Edited February 3, 2006 by UTA Link to comment Share on other sites More sharing options...
flaxcrack Posted February 3, 2006 Share Posted February 3, 2006 So did you decided to use IE.AU3? [quote] Gilbertson's Law: Nothing is foolproof to a sufficiently talented fool.Sandro Alvares: Flaxcrack is please not noob! i can report you is stop stupid. The Post[/quote]I made this: FWD & MD5PWD() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now