Eppie Posted April 20, 2007 Share Posted April 20, 2007 So, I'm fairly new to AutoIt. I would like to create a program that puts a key in the registry that will make itself startup with Windows. I believe this is the location I would wish to put the value in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices. Will this line of code accomplish this goal: RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices" , "name.exe" , "REG_SZ" ? Thanks for your help. Link to comment Share on other sites More sharing options...
Valuater Posted April 20, 2007 Share Posted April 20, 2007 Welcome to Autoit! You can use @StartupDir (macro) to place a program in start-up folder. Then when Windows starts, your program will start. 8) Link to comment Share on other sites More sharing options...
Eppie Posted April 20, 2007 Author Share Posted April 20, 2007 What I was trying to do was make it run as a service, so as to run before the user even logs in. Is that possible with the macro? Link to comment Share on other sites More sharing options...
Valuater Posted April 20, 2007 Share Posted April 20, 2007 What I was trying to do was make it run as a service, so as to run before the user even logs in. Is that possible with the macro?No, not with the macro... I know there are posts about this topic, use the upper right corner of this page..."Search" and search this area and the Example scripts... ( unless someone here knows the answer you are looking for )... not my area... and i dont teach regwrite to new people8) Link to comment Share on other sites More sharing options...
MHz Posted April 20, 2007 Share Posted April 20, 2007 Look at the top of this forum for FAQ stickies.Look in this forum FAQ sticky link. http://www.autoitscript.com/forum/index.php?showtopic=37289 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