Jump to content

Recommended Posts

Posted

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 !!!

Posted

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 :P

[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]
Posted

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)

Posted

What komalo wrote is correct (it is not in the start menu).

For current user HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

For all users HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

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)

Posted

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

Posted

That sounds awesome , but i miss one part ... what function is best to use ?

Pls answer this one and the mission is acomplished :P

Go Go Go !

Posted

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]
Posted

Ladies , gentlemen and super scripters we have a winner XD !!! Every1 cheer up for autoit forum it is pure gold :P keep posting if is there something else i have to know :idea: .

Thx very much for ur time !!! Enjoy ur day guys :(

Posted (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=37289

Q4. How can I run my script as a service?

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...