AutoHotkey Community

It is currently May 27th, 2012, 9:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: January 11th, 2007, 8:20 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
How can you set the program to start with windows?

_________________
Autohotkey Just drives me crazy ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:26 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
See FAQ: How do I put my hotkeys and hotstrings into effect automatically every time I start my PC?

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:32 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
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 ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:39 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:41 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
You could add startup registry entries.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:42 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
Maybe have a button that sets it in the registry?

_________________
Autohotkey Just drives me crazy ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:45 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Why not.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:46 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
Thanks Titan, will look at those links right now.

_________________
Autohotkey Just drives me crazy ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 8:57 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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%


:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 9:09 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
That just put a ahk acript in the allusers programs startup folder name autorun?

_________________
Autohotkey Just drives me crazy ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 9:14 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 9:17 pm 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
I will just use a registry file to do it with.

_________________
Autohotkey Just drives me crazy ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2007, 5:24 am 
Offline

Joined: January 12th, 2007, 4:30 am
Posts: 531
Location: Norway
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 12th, 2007, 5:31 am 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
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 ..


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, XstatyK and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group