Jump to content
Sign in to follow this  
SniperSA

Startup

Recommended Posts

SniperSA

Having a script run at startup? How can I include that in my script?

Share this post


Link to post
Share on other sites
Generator

You can't include that. But you can do that by editing the registery.

Under:

\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Share this post


Link to post
Share on other sites
SniperSA

could i make like a key that would add to someone's registry if they ran the script

Share this post


Link to post
Share on other sites
Achilles

could i make like a key that would add to someone's registry if they ran the script

you could... something like:

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Script name", "REG_SZ", "{your script dir}") ;Untested!

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites
SniperSA

that untested method works amazing. now, that i have that, how can i make the script check it's in the C:\Script.au3 directory

Edited by SniperSA

Share this post


Link to post
Share on other sites
SniperSA

Thanks, it's just I know the quick in's and out's of au3 but some more advanced things like this I am trying to learn.

Share this post


Link to post
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
Sign in to follow this  

×