Jump to content

another small newbie question : open inputted URL


Recommended Posts

I have an input box named $url so this is the rest

$url=InputBox("URL?","URL?")

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE $url")

appearantly, it doesnt work, is there another way to get the same effect without doing this?

$url=InputBox("URL?","URL?")

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE")

WinWait("Microsoft Internet Explorer")

sleep(1000)

send($url)

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Link to comment
Share on other sites

I have an input box named $url so this is the rest

$url=InputBox("URL?","URL?")

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE $url")

appearantly, it doesnt work, is there another way to get the same effect without doing this?

$url=InputBox("URL?","URL?")

Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE")

WinWait("Microsoft Internet Explorer")

sleep(1000)

send($url)

Hello :whistle:

Your command is misformatted

It shouldn't be "C:\Program Files\Internet Explorer\IEXPLORE.EXE $url" but :

"C:\Program Files\Internet Explorer\IEXPLORE.EXE" & $url

So if the user wants to open google.fr :

the command interpreted by Run will be : C:\Program Files\Internet Explorer\IEXPLORE.EXE google.fr

and not :

C:\Program Files\Internet Explorer\IEXPLORE.EXE $url

:)

Link to comment
Share on other sites

ahh! thanks! thanks! thanks!

Edited by MethodZero

[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...