Sign in to follow this  
Followers 0
Vindicator209

another small newbie question : open inputted URL

6 posts in this topic

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]

Share this post


Link to post
Share on other sites



Use IE.au3. Its in latest stable Autoit v3 version(now it's 3.2).

#include <IE.au3>

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

_IECreate($url)

Share this post


Link to post
Share on other sites

This should work:

$url=InputBox("URL?","URL?")
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE " & $url)

BlueBearrOddly enough, this is what I do for fun.

Share this post


Link to post
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

:)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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]

Share this post


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
Sign in to follow this  
Followers 0