AutoHotkey Community

It is currently May 26th, 2012, 2:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: January 10th, 2008, 4:18 pm 
Offline

Joined: January 10th, 2008, 4:16 pm
Posts: 2
What is a good way to get AHK scripts to start with windows?

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Startup folder
PostPosted: January 10th, 2008, 6:12 pm 
Offline

Joined: January 18th, 2006, 12:37 am
Posts: 290
You can create a shortcut to your Startup folder in C:\Documents and Settings\USERNAME\Start Menu\Programs\Startup.

_________________
My AutoHotkey Program for Warcraft III:
Warkeys
http://warkeys.sourceforge.net/

Remap your hotkeys
Healthbars always on
Remap inventory


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 15th, 2008, 9:33 pm 
Offline

Joined: January 15th, 2008, 9:30 pm
Posts: 3
I use a startup .bat file to launch a +compiled+ AHK .exe

When the batch runs my .exe, that batch +pauses+ and waits for my AHK .exe to exit before continuing.

Do you know a work-around for this behavior?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2008, 9:44 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 15th, 2008, 10:55 pm 
Offline

Joined: January 10th, 2008, 4:16 pm
Posts: 2
Sorry it took ages to reply, but thanks for the tip! That was very simple, almost too simple. Hmmmm. Thanks!


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 15th, 2008, 11:21 pm 
framage wrote:
I use a startup .bat file to launch a +compiled+ AHK .exe

When the batch runs my .exe, that batch +pauses+ and waits for my AHK .exe to exit before continuing.

Do you know a work-around for this behavior?

In batch file, use "start ahk.exe" instead of "ahk.exe"


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 3:41 am 
Offline

Joined: January 15th, 2008, 9:30 pm
Posts: 3
>> In batch file, use "start ahk.exe" instead of "ahk.exe"

Actually thought of and tried that... no cigar. Tried the /B option, too

Note that I'm using a compiled exe script (not the AHK.exe), if that makes any difference...

Thanks,


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 4:02 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
oh wow dude thats bad
maybe you should in your batch file put something like
start compiled.exe

actually
the correct answer while the above will work is as titan posted earlier
i mean no one on this forum can make it any more clear than that

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 6:07 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
Why use a batch file? Anything you can double-click to launch, you can have auto-run by placing in Startup. If you don't have AutoHotkey installed, you could even write and a compile script to start your other compiled scripts...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 7:55 pm 
Offline

Joined: January 15th, 2008, 9:30 pm
Posts: 3
>> Why use a batch file?

It's essentially a domain login script...

I narrowed down the behavior to paths that contain spaces:

START "\\SERVER\The AutoHotKey Folder\MY_COMPILED_SCRIPT.exe"

...will hang the batch until .exe is exited

START \\SERVER\The_AutoHotKey_Folder\MY_COMPILED_SCRIPT.exe

... works fine.

Live and learn...

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 8:18 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
even so pushing it to the all users would be better than a batch file

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Alpha Bravo, coinman, Google Feedfetcher, kwfine, Yahoo [Bot], zj403 and 12 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