Jump to content
Sign in to follow this  
rskusa26

Script to open a particular URL

Recommended Posts

rskusa26

Hi ,

I am a brand new user of AutoIt and am trying to write a script to open a website using firefox. Can you please point out what is wrong with the below script

Run("C:\Program Files (x86)\Mozilla Firefox\firefox.exe " -new "http://www.yahoo.com/")

Thanks in advance for your help

Share this post


Link to post
Share on other sites
somdcomputerguy

Welcome to the Forum!

Is FireFox the default browser? Try ShellExecute("http://www.yahoo.com/") if it is.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
hannes08

Run("C:\Program Files (x86)\Mozilla Firefox\firefox.exe " -new "http://www.yahoo.com/")

==>

Run("C:\Program Files (x86)\Mozilla Firefox\firefox.exe -new http://www.yahoo.com/")
Edited by Hannes123

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

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  

×