Jump to content

Registry addict


Amnael
 Share

Recommended Posts

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

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]
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...