iamcowdrunk Posted February 8, 2007 Share Posted February 8, 2007 Easy script to start off... installing firefox. I right clicked on the script and compiled it but when i run the new firefox.exe it doesnt stop opening.... whats wrong? Script is ; This will install Firefox run ("firefox.exe") ; Welcome WinWaitActive ("Mozilla Firefox Setup", "Welcome") ControlClick ("Mozilla Firefox Setup", "" , "Button2") ; License Agreement WinWaitActive ("Mozilla Firefox Setup", "License") ControlClick ("Mozilla Firefox Setup", "" , "Button4") ControlClick ("Mozilla Firefox Setup", "" , "Button2") ; Setup Type WinWaitActive ("Mozilla Firefox Setup", "Setup") ControlClick ("Mozilla Firefox Setup", "" , "Button2") ; Finish WinWaitActive ("Mozilla Firefox Setup", "Completing") ControlClick ("Mozilla Firefox Setup", "" , "Button4") ControlClick ("Mozilla Firefox Setup", "" , "Button2") Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 8, 2007 Moderators Share Posted February 8, 2007 Might be easier to just use the command line arguements ... http://wiki.mozilla.org/Installer:Command_Line_Arguments Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 true but after i get that to work fine i have a list of other programs that i want to automatically install... ive been looking through all these posts but i cant seam to find out whats the problem... it just keeps opening the .exe untill my computer freezes because of all the processes... Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 anyone? some help please? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 8, 2007 Moderators Share Posted February 8, 2007 (edited) anyone? some help please?Do you expect answers 20 minutes apart from posts? You may need to wait days for them, especially for needless bumps.The only way I can see this thing opening itself over and over is if you named your executable ... firefox.exe (and you probably did since you are calling it from the directory you have the compiled executable installed to, and not from where the actual installer probably is.) Edited February 8, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 sorry... I just saw other people responding to threads so i knew people were here... And i dont know all that much about coding either, im taking a java class when i get to high school but untill then i dont know alot at all... Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 (edited) run ("firefox.exe")I bet for a bottle of beer, you named your script firefox.au3? Right?EDIT: damn, did not read SmOke_N's post... Edited February 8, 2007 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 yea... that was the problem actually... thanks guys.. Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 yea... that was the problem actually... thanks guys..o.k., so where is my bottle of beer??? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 it depends... how do i import a .reg key?first i tried run ("regfile.reg") obviously didnt work...then i changed it to ShellExecute ("regedit /s " & "regfile.reg") but that didnt work either it gives me an error saying it cant find the file. What is going wrong with it? Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 it depends... how do i import a .reg key?first i tried run ("regfile.reg") obviously didnt work...then i changed it to ShellExecute ("regedit /s " & "regfile.reg") but that didnt work either it gives me an error saying it cant find the file. What is going wrong with it?what has that to do with my beer??? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 if you know the answer ill give you a beer.... when im 21 and able to get it...? Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 if you know the answer ill give you a beer.... when im 21 and able to get it...?Sorry, I can't wait for > 10 years !!! __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
iamcowdrunk Posted February 8, 2007 Author Share Posted February 8, 2007 well then for the personal gratitude of helping a 12 year old with his dreams? Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 $regfile = "c:\whereever\you\stored\it\regfile.reg" Run("regedit /s " & $regfile)BTW: You should look for some better dreams than reading windows registry files !!!! __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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