AutoHotkey - an exercise in futility?

I use this macro 20-30 times a day and it always works for me except when I go into the menus manually first which of course screws it up because the menus remember where you are:

; Request docking
^d::
setkeydelay, 50, 50
send, 1ee s qq1
exit

EDIT: I wonder if it's the class you're specifying? Those classes can relate to specific windows and not just the whole application which may be your issue. I just do:

#IfWinActive, Elite - Dangerous

The class I use is what AHK reports ED's window class to be - first I tried with just how you do it but it didn't work at all (not even for chat window).

I've not tried running AHK with admin privileges though, so there's that avenue to check still... I rarely give anything admin privileges if I can avoid doing so.
 
Last edited:
Don't you guys find Voice Attack to be quite a slow way to command your ship?
I had been struggling to make a macro in VA so i could say "target power plant" and have the voice attack simply press a key to scroll to previous sub system six times (works on most ships with 6), and with speaking out the words, untargetting to keep shooting when they use Chaff, making sure to speak clearly... i just recorded a macro on my corsair mouse (naga copy cat) instead.

I get that some people use joysticks, maybe VA is a better option for them. but for me I find it very slow and clunky. Also I never could get half the macros to work.
 
The class I use is what AHK reports ED's window class to be - first I tried with just how you do it but it didn't work at all (not even for chat window).

I've not tried running AHK with admin privileges though, so there's that avenue to check still... I rarely give anything admin privileges if I can avoid doing so.

Oh poo, one other thing I have in the script which I suspect is quite important is:

SetTitleMatchMode, 2

Which goes at the beginning of the file.
 
I use the G510s gamer keyboard for programmed key macros with the left hand and an Extreme 3d pro joystick for the right hand.

Three keys programmed for pips management.
One key each for 50, 75 and 100% throttle.
One key for "instant boost" (max engine pips, 100% throttle, boost) macro.
One key for "combat mode" (50% throttle, max pips to weapons).

I wouldnt mind making a macro for docking too :) That Voice Attack knockoff looks fun. I might try it.

Talking to my ship is one more 'living universe' kinda thing to give the game life. Button pressing, meh, not so much. :) Thanks for the information, thread people. :)
 
Personally, I use AHK for such things mainly because I don't have a headset on all the time, nor do I want to. AHK is also quite a bit more flexible, and I use it for tasks in other things like VMs so I'm used to it. I have a task other than docking that I use AHK for quite a bit, though, and found the following at the top of the file to be most effective. I don't even have to run it with administrator privileges.

Code:
#NoEnv
#Persistent
#UseHook
#Warn  ; Enable warnings to assist with detecting common errors.
#SingleInstance force
SetKeyDelay, 40, 40
#IfWinActive, Elite - Dangerous (CLIENT)

The keys seem to be UseHook and especially using the exact window title. If you're not a Horizons user, that may be slightly different. To find that, simply set yourself to be borderless window, minimize things and then hover over the icon in the taskbar. You'll see the window title pop up with the preview.
 
Don't you guys find Voice Attack to be quite a slow way to command your ship?
I had been struggling to make a macro in VA so i could say "target power plant" and have the voice attack simply press a key to scroll to previous sub system six times (works on most ships with 6), and with speaking out the words, untargetting to keep shooting when they use Chaff, making sure to speak clearly... i just recorded a macro on my corsair mouse (naga copy cat) instead.

I get that some people use joysticks, maybe VA is a better option for them. but for me I find it very slow and clunky. Also I never could get half the macros to work.

I mumble a lot. lol. But I found a freebie VA clone today at https://www.reddit.com/r/EliteDange...ocals_open_source_and_free_voice_attack_clone

and created my own vocal responses for some commands using http://www.fromtexttospeech.com. The Emma from England voice seems pretty nice.

"Vocals", the VA clone seems to work really good even amidst my mumbling. I got most of the macros I want programmed. Hard to tell if speaking will be slower than looking for a key on the keyboard and pushing it. Whether it's worth it in the long run, I guess we'll find out during the next CG. :)
 
Back
Top Bottom