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 

Start scripts with windows

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



Joined: 10 Jan 2008
Posts: 2

PostPosted: Thu Jan 10, 2008 4:18 pm    Post subject: Start scripts with windows Reply with quote

What is a good way to get AHK scripts to start with windows?

Thanks!
Back to top
View user's profile Send private message
POINTS



Joined: 18 Jan 2006
Posts: 284

PostPosted: Thu Jan 10, 2008 6:12 pm    Post subject: Startup folder Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
framage



Joined: 15 Jan 2008
Posts: 3

PostPosted: Tue Jan 15, 2008 9:33 pm    Post subject: Launch My AHK EXE from a .bat file without pausing? Reply with quote

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



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Tue Jan 15, 2008 9:44 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
tubeyes



Joined: 10 Jan 2008
Posts: 2

PostPosted: Tue Jan 15, 2008 10:55 pm    Post subject: Reply with quote

Sorry it took ages to reply, but thanks for the tip! That was very simple, almost too simple. Hmmmm. Thanks!
Back to top
View user's profile Send private message
widow
Guest





PostPosted: Tue Jan 15, 2008 11:21 pm    Post subject: Re: Launch My AHK EXE from a .bat file without pausing? Reply with quote

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"
Back to top
framage



Joined: 15 Jan 2008
Posts: 3

PostPosted: Wed Jan 16, 2008 3:41 am    Post subject: Reply with quote

>> 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,
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 679

PostPosted: Wed Jan 16, 2008 4:02 am    Post subject: Reply with quote

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
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2558
Location: Australia, Qld

PostPosted: Wed Jan 16, 2008 6:07 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
framage



Joined: 15 Jan 2008
Posts: 3

PostPosted: Wed Jan 16, 2008 7:55 pm    Post subject: Reply with quote

>> 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
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 679

PostPosted: Wed Jan 16, 2008 8:18 pm    Post subject: Reply with quote

even so pushing it to the all users would be better than a batch file
_________________
Read this
Com
Automate IE7 with Tabs
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