Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Set app to start at windows startup


  • Please log in to reply
14 replies to this topic
Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
How can you set the program to start with windows?
Autohotkey Just drives me crazy ..

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
See FAQ: How do I put my hotkeys and hotstrings into effect automatically every time I start my PC?

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
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 ..

jonny
  • Members
  • 2951 posts
  • Last active: Feb 24 2008 04:22 AM
  • Joined: 13 Nov 2004
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.

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
You could add startup registry entries.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
Maybe have a button that sets it in the registry?
Autohotkey Just drives me crazy ..

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Why not.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
Thanks Titan, will look at those links right now.
Autohotkey Just drives me crazy ..

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
This will force any script to autostart with windows next time, once it has been run:

SplitPath, A_Scriptname, , , , OutNameNoExt 
LinkFile=%A_StartupCommon%\%OutNameNoExt%.lnk 
IfNotExist, %LinkFile% 
  FileCreateShortcut, %A_ScriptFullPath%, %LinkFile% 
SetWorkingDir, %A_ScriptDir%

:)

Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
That just put a ahk acript in the allusers programs startup folder name autorun?
Autohotkey Just drives me crazy ..

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

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.

Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
I will just use a registry file to do it with.
Autohotkey Just drives me crazy ..

Murp-e
  • Members
  • 531 posts
  • Last active: Sep 27 2011 11:44 AM
  • Joined: 12 Jan 2007
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.

Candle
  • Members
  • 326 posts
  • Last active: May 17 2010 03:04 PM
  • Joined: 19 Aug 2004
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 ..

heyabbottb
  • Members
  • 1 posts
  • Last active: Feb 20 2013 09:19 PM
  • Joined: 19 Feb 2013

I fell upon this forum as I was looking for the same thing. Turns out, if you put your script.ahk file in the "startup" folder it will run automatically. To access the startup folder you need to go to 

 

Computer --> Local Disc (C:) --> Users --> "yourusername" --> AppData (hidden folder)  --> Roaming --> Microsoft --> Windows --> Start Menu --> Programs --> Startup

 

If you paste your script in here, it will run when you log on.

 

This topic appears to be pretty old so just fyi I'm using Windows 7.