chelseafc Posted May 16, 2005 Share Posted May 16, 2005 Hi, i m trying to make my script run at startup. The script has been compiled into exe and it takes no installation at all so i cant make it to run at a certain address. Can anyone help me make a startup sript for my file so i can paste the scipt into my existing one. please also tell me where to put it as i m new. Link to comment Share on other sites More sharing options...
steveR Posted May 16, 2005 Share Posted May 16, 2005 Just put a shortcut to the file in your Start Up folder of the Start Menu AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Link to comment Share on other sites More sharing options...
chelseafc Posted May 16, 2005 Author Share Posted May 16, 2005 yeah i m trying to make the user do that. is there a way to make a script to do that? Link to comment Share on other sites More sharing options...
GaryFrost Posted May 16, 2005 Share Posted May 16, 2005 FileCreateShortcut SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted May 16, 2005 Share Posted May 16, 2005 Or even better go to HKCU\Software\Microsoft\Windows\Run, and make a new registry value there with the path to the executable... I don't believe in the Startup folder Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
chelseafc Posted May 16, 2005 Author Share Posted May 16, 2005 thank you for your respond, but i still dont understand since i m trying to force the CPU with my file to run at startup can you also provide me with the script to include in my au3 file. in my case the exe is alarm.exe. Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted May 16, 2005 Share Posted May 16, 2005 If RegRead("HKCU\Software\Microsoft\Windows\Run", "chelseafc's Alarm Program") = "" Then RegWrite("HKCU\Software\Microsoft\Windows\Run", "chelseafc's Alarm Program", "REG_SZ", @ScriptFullPath) That's one line of code, if you separate it, don't forget to add the EndIf. Hopefully that will do it! Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
JSThePatriot Posted May 16, 2005 Share Posted May 16, 2005 This is how I have always done it. If Not(RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IPSend.exe")) Then RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IPSend.exe", "REG_SZ", @ScriptFullPath) EndIF Hope that helps some, JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
chelseafc Posted May 17, 2005 Author Share Posted May 17, 2005 do i change "ipsned.exe" to my program name? do i place this script in my au3 file? at start or end? =D Link to comment Share on other sites More sharing options...
buzz44 Posted May 17, 2005 Share Posted May 17, 2005 Change it to your program name and place it near or at the top. qq Link to comment Share on other sites More sharing options...
chelseafc Posted May 17, 2005 Author Share Posted May 17, 2005 hey i just want to do a check to see if my file path is really there, where is HKCU\Software\Microsoft\Windows\Run? and thx people, my IE is just suddenly fixed. I typed in the path and fixed IE poped up. Autoit3 is powerful =D Link to comment Share on other sites More sharing options...
buzz44 Posted May 17, 2005 Share Posted May 17, 2005 It is a registry key. Open the start menu, click 'Run", type 'regedit' and then find the key. BTW 'HKCU' is 'HKEY_Current_Users'. All verions how windows have this key and it tells what programs to boot on startup. qq Link to comment Share on other sites More sharing options...
chelseafc Posted May 17, 2005 Author Share Posted May 17, 2005 thanks i checked, just to find that my program doesn't show up i will try once more Link to comment Share on other sites More sharing options...
chelseafc Posted May 17, 2005 Author Share Posted May 17, 2005 (edited) i changedIf Not(RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IPSend.exe")) Then RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "IPSend.exe", "REG_SZ", @ScriptFullPath)EndIFand another script someone providedtoIf Not(RegRead("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "myprogram.exe")) Then RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "myprogram.exe", "REG_SZ", @ScriptFullPath)EndIFthen i saw the registry key is this correct? Edited May 17, 2005 by chelseafc Link to comment Share on other sites More sharing options...
JSThePatriot Posted May 18, 2005 Share Posted May 18, 2005 i changedand another script someone providedtothen i saw the registry key is this correct?<{POST_SNAPBACK}>You could use either of those. If you use HKCU you are only making it start up in the current user. If you use HKLM you will startup no matter who logs in.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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