Vladi243 Posted June 13, 2008 Posted June 13, 2008 I want to make the script run on startup by writing in the registry by the function RegWrite(). What's the keyname of "run on startup"?
Developers Jos Posted June 13, 2008 Developers Posted June 13, 2008 RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RUN", "MyProgram","REG_SZ", "C:\Directory\program.exe") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Vladi243 Posted June 13, 2008 Author Posted June 13, 2008 The last parameter is the directory of the script?
Developers Jos Posted June 13, 2008 Developers Posted June 13, 2008 The last parameter is the directory of the script?suremmm.. not so sure.The last parameter is the fully qualified path and program name to be ran at startup but I would have thought the example is pretty clear. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Vladi243 Posted June 13, 2008 Author Posted June 13, 2008 If I write it: @ScriptFullPath & ".exe" Is it be OK?
d3mon Posted June 14, 2008 Posted June 14, 2008 If I write it: @ScriptFullPath & ".exe" Is it be OK?No because if you write @ScriptFullpath extension will be include so you don't have to add ".exe" No-life of autoit...what could be better ?LAST SCRIPTS WITH AUTO-IT : CLICK HERE
Developers Jos Posted June 14, 2008 Developers Posted June 14, 2008 These type of querstions could be answered without asking. Just test it yourself by using a MSGBOX() to display the result. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
DVHRLD Posted June 15, 2008 Posted June 15, 2008 (edited) You can find a lot of information by looking at the Online DocumentationYou can find exactly what you are looking for here RegWriteBy using the information that you have gotten in the replies and the Help files you should have no problems with the startup.Jos gave a prime example as is. Edited June 15, 2008 by DVHRLD AutoViewer first public AutoIt script
thanhbinh87 Posted July 2, 2008 Posted July 2, 2008 RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RUN", "MyProgram","REG_SZ", "C:\Directory\program.exe")Hello ! I have a scrpt and It don't run at startup. I don't know why ! My script using function Inetget().
Kerros Posted July 2, 2008 Posted July 2, 2008 Hello !I have a scrpt and It don't run at startup. I don't know why ! My script using function Inetget().It's really hard to know why something does not work unless we can see some code. Inetget() downloads a file from the net. It is the file that you are trying to run @ startup? And if so is an exe or a zip? Is the path to the downloaded file correct when you try to run it? Most of the questions you are going to be asked could easily be answered if we could see the code.Also.. you should really start your own thread instead of adding to an old one.Kerros Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.
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