Sign in to follow this  
Followers 0
gameguy999

Help with my first script

6 posts in this topic

Hi for my first script i want to run firefox close and click delete cookies and then hit clear history but the problem is I cant get firefox to run. my command to run firefox is Run("firefox.exe") but it won't run anyone got any ideas?

Share this post


Link to post
Share on other sites



Anyone?

Share this post


Link to post
Share on other sites

Hi and Welcome to the forum!

First of all you have to calm down, the rule is to wait a minimum of 24 hours before bumping!

Now about your problem, was that all of your code? Then your problem is that you didn't give any path to the exe. AutoIt is no mindreader!

Try it like this instead:

Run("C:\Program Files\Firefox\Firefox.exe") ;Change the path to wherever your Firefox.exe is

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try ShellExecute() instead of Run().

Also, deleting you cookies by mouse clicks commands isn't something I recommend.

Try to FileDelete() your cookies' folder and recreate it with DirCreate() under the same name.

Edited by Info

Share this post


Link to post
Share on other sites

You can also use shellexecute to open a webpage in the default browser.

ShellExecute("http:\\www.google.com\")

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites

Hi and Welcome to the forum!

First of all you have to calm down, the rule is to wait a minimum of 24 hours before bumping!

Now about your problem, was that all of your code? Then your problem is that you didn't give any path to the exe. AutoIt is no mindreader!

Try it like this instead:

Run("C:\Program Files\Firefox\Firefox.exe") ;Change the path to wherever your Firefox.exe is

Thank you for the help also I wasn't sure about the bumping rules. My bad for not reading rules.

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