| View previous topic :: View next topic |
| Author |
Message |
tubeyes
Joined: 10 Jan 2008 Posts: 2
|
Posted: Thu Jan 10, 2008 4:18 pm Post subject: Start scripts with windows |
|
|
What is a good way to get AHK scripts to start with windows?
Thanks! |
|
| Back to top |
|
 |
POINTS
Joined: 18 Jan 2006 Posts: 284
|
Posted: Thu Jan 10, 2008 6:12 pm Post subject: Startup folder |
|
|
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 |
|
 |
framage
Joined: 15 Jan 2008 Posts: 3
|
Posted: Tue Jan 15, 2008 9:33 pm Post subject: Launch My AHK EXE from a .bat file without pausing? |
|
|
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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
|
| Back to top |
|
 |
tubeyes
Joined: 10 Jan 2008 Posts: 2
|
Posted: Tue Jan 15, 2008 10:55 pm Post subject: |
|
|
| Sorry it took ages to reply, but thanks for the tip! That was very simple, almost too simple. Hmmmm. Thanks! |
|
| Back to top |
|
 |
widow Guest
|
Posted: Tue Jan 15, 2008 11:21 pm Post subject: Re: Launch My AHK EXE from a .bat file without pausing? |
|
|
| 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
|
Posted: Wed Jan 16, 2008 3:41 am Post subject: |
|
|
>> 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 |
|
 |
tank
Joined: 21 Dec 2007 Posts: 679
|
Posted: Wed Jan 16, 2008 4:02 am Post subject: |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Wed Jan 16, 2008 6:07 am Post subject: |
|
|
| 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 |
|
 |
framage
Joined: 15 Jan 2008 Posts: 3
|
Posted: Wed Jan 16, 2008 7:55 pm Post subject: |
|
|
>> 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 |
|
 |
tank
Joined: 21 Dec 2007 Posts: 679
|
Posted: Wed Jan 16, 2008 8:18 pm Post subject: |
|
|
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 |
|
 |
|