Amnael Posted October 21, 2008 Share Posted October 21, 2008 What registry key do i have to create/delete to make a program to run as scheduled task each time i open the pc ? Also pls gimme a good code to do it in autoit language or just some hints , i'll figure it . Ready ,,, Steady ,,, Post !!! Link to comment Share on other sites More sharing options...
komalo Posted October 21, 2008 Share Posted October 21, 2008 well if you want to open your program every time the pc open you can put it in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run as for the code , i don't have any ideas now [font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font] Link to comment Share on other sites More sharing options...
Amnael Posted October 21, 2008 Author Share Posted October 21, 2008 I don't want to put the program in start menu . I want to run the program each time i turn on the pc (it's called scheduled task) Link to comment Share on other sites More sharing options...
DaRam Posted October 21, 2008 Share Posted October 21, 2008 What komalo wrote is correct (it is not in the start menu).For current user HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunFor all users HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunI don't want to put the program in start menu . I want to run the program each time i turn on the pc (it's called scheduled task) Link to comment Share on other sites More sharing options...
SoulA Posted October 21, 2008 Share Posted October 21, 2008 This does make the program run every time a user logs in. If you want it to run every time the computer is started you need to make it a service. Read through this its in there somewhere Link to comment Share on other sites More sharing options...
Pain Posted October 21, 2008 Share Posted October 21, 2008 FileCreateShortcut("Path_to_the_file.exe", @StartupDir & '\blabla.lnk') Link to comment Share on other sites More sharing options...
Amnael Posted October 21, 2008 Author Share Posted October 21, 2008 That sounds awesome , but i miss one part ... what function is best to use ? Pls answer this one and the mission is acomplished Go Go Go ! Link to comment Share on other sites More sharing options...
komalo Posted October 21, 2008 Share Posted October 21, 2008 Q11. How can I make my script start every time windows starts? A1. You can use one of the following codes to allow your script to start with windows: CODE: AutoIt RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "MyProgramName", "REG_SZ", @ScriptFullPath) or CODE: AutoIt FileCreateShortcut(@ScriptFullPath, @StartupCommonDir & "\MyProgramName.lnk")http://www.autoitscript.com/forum/index.php?showtopic=37289 [font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font] Link to comment Share on other sites More sharing options...
Amnael Posted October 21, 2008 Author Share Posted October 21, 2008 Ladies , gentlemen and super scripters we have a winner XD !!! Every1 cheer up for autoit forum it is pure gold keep posting if is there something else i have to know . Thx very much for ur time !!! Enjoy ur day guys Link to comment Share on other sites More sharing options...
herewasplato Posted October 21, 2008 Share Posted October 21, 2008 (edited) From the "for what it is worth" department...Q11 is a bit misleading, but the FAQ was not written in legalese"How can I make my script start every time windows starts?"SoulA gave the answer (a service) that should work in most every case.The other methods depend a human to log on or auto log on to "start windows".Running your script as a service is also covered in that same FAQ:http://www.autoitscript.com/forum/index.php?showtopic=37289Q4. How can I run my script as a service? Edited October 21, 2008 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] 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