AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Set app to start at windows startup

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Thu Jan 11, 2007 8:20 pm    Post subject: Set app to start at windows startup Reply with quote

How can you set the program to start with windows?
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Thu Jan 11, 2007 8:26 pm    Post subject: Reply with quote

See FAQ: How do I put my hotkeys and hotstrings into effect automatically every time I start my PC?
_________________

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
View user's profile Send private message Visit poster's website
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Thu Jan 11, 2007 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Jan 11, 2007 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Thu Jan 11, 2007 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Thu Jan 11, 2007 8:42 pm    Post subject: Reply with quote

Maybe have a button that sets it in the registry?
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Thu Jan 11, 2007 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Thu Jan 11, 2007 8:46 pm    Post subject: Reply with quote

Thanks Titan, will look at those links right now.
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5880

PostPosted: Thu Jan 11, 2007 8:57 pm    Post subject: Reply with quote

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%


Smile
Back to top
View user's profile Send private message
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Thu Jan 11, 2007 9:09 pm    Post subject: Reply with quote

That just put a ahk acript in the allusers programs startup folder name autorun?
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5880

PostPosted: Thu Jan 11, 2007 9:14 pm    Post subject: Reply with quote

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

Smile

Edit: Those are the beginning lines.. you should type the rest of the script, ofcourse.
Back to top
View user's profile Send private message
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Thu Jan 11, 2007 9:17 pm    Post subject: Reply with quote

I will just use a registry file to do it with.
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
Murp|e



Joined: 12 Jan 2007
Posts: 240
Location: Norway

PostPosted: Fri Jan 12, 2007 5:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Fri Jan 12, 2007 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group