gameguy999 Posted August 1, 2009 Share Posted August 1, 2009 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? Link to comment Share on other sites More sharing options...
gameguy999 Posted August 1, 2009 Author Share Posted August 1, 2009 Anyone? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 1, 2009 Share Posted August 1, 2009 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 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Info Posted August 1, 2009 Share Posted August 1, 2009 (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 August 1, 2009 by Info Link to comment Share on other sites More sharing options...
Hawkwing Posted August 1, 2009 Share Posted August 1, 2009 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. Link to comment Share on other sites More sharing options...
gameguy999 Posted August 1, 2009 Author Share Posted August 1, 2009 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now