| View previous topic :: View next topic |
| Author |
Message |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Thu Jan 11, 2007 8:20 pm Post subject: Set app to start at windows startup |
|
|
How can you set the program to start with windows? _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Thu Jan 11, 2007 8:32 pm Post subject: |
|
|
Yes know how to do it that way. was looking more at doing it from the script it's self if I could. _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Thu Jan 11, 2007 8:39 pm Post subject: |
|
|
| How could the script do anything before it was started? I'm afraid you have to do something outside of AutoHotkey to get it to automatically start. It's not that difficult. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Thu Jan 11, 2007 8:41 pm Post subject: |
|
|
You could add startup registry entries. _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Thu Jan 11, 2007 8:42 pm Post subject: |
|
|
Maybe have a button that sets it in the registry? _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Thu Jan 11, 2007 8:45 pm Post subject: |
|
|
Why not. _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Thu Jan 11, 2007 8:46 pm Post subject: |
|
|
Thanks Titan, will look at those links right now. _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5880
|
Posted: Thu Jan 11, 2007 8:57 pm Post subject: |
|
|
This will force any script to autostart with windows next time, once it has been run:
| Code: | SplitPath, A_Scriptname, , , , OutNameNoExt
LinkFile=%A_StartupCommon%\%OutNameNoExt%.lnk
IfNotExist, %LinkFile%
FileCreateShortcut, %A_ScriptFullPath%, %LinkFile%
SetWorkingDir, %A_ScriptDir% |
 |
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Thu Jan 11, 2007 9:09 pm Post subject: |
|
|
That just put a ahk acript in the allusers programs startup folder name autorun? _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5880
|
Posted: Thu Jan 11, 2007 9:14 pm Post subject: |
|
|
| Candle wrote: | | That just put a ahk acript in the allusers programs startup folder name autorun? |
It actually puts a shortcut there .. and thats it.
That script should run everytime windows boots up
Edit: Those are the beginning lines.. you should type the rest of the script, ofcourse. |
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Thu Jan 11, 2007 9:17 pm Post subject: |
|
|
I will just use a registry file to do it with. _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
Murp|e
Joined: 12 Jan 2007 Posts: 240 Location: Norway
|
Posted: Fri Jan 12, 2007 5:24 am Post subject: |
|
|
| Putting a link or copying the file itself to the common startup folder -like Skan recommended- is a nice way to do this if you want to allow the user/users to easily remove it, since most users don't even know what the registry is. Then again, you might not want that. |
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Fri Jan 12, 2007 5:31 am Post subject: |
|
|
Well after asking around a little I found that most don't like it done so will not go down that route . _________________ Autohotkey Just drives me crazy .. |
|
| Back to top |
|
 |
|