Jump to content

Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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:


Run(@ComSpec & " /c Start http://somewebpage.com/some/folder%20datab.../folder/" & $myString, "", @SW_HIDE)




Edited by UTA
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...