X3TC - Voice control using AutoHotKey Scripts - Dragon, CHP & VLC - Run Hid- SOLVED

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
XForumShadow
Posts: 29
Joined: Sat, 4. May 13, 21:19

X3TC - Voice control using AutoHotKey Scripts - Dragon, CHP & VLC - Run Hid- SOLVED

Post by XForumShadow » Sat, 6. Sep 14, 22:15

This is doing my head in.

I'm using voice control (Dragon) tied with AutoHotkey and I'm trying to run audio in the background.

I used to use CHP to run MPlay32.exe hidden..
- I would say into my headset "Crosshair target"
- This would then launch an Autrohotkey script to "press t"
- Then play a .WAV file WITHOUT WINDOW OR INTERFACE to say "affirmative"

I did the same for loads of programs and games to confirm my voice commands but I cant get MPlay.exe or Mplayer. I guess they're obsolete now.

I've tried to use VLC and Windows Media Player but I just cant get them to play an audio file without them switching to desktop and launching a separate interface.

My old scripts and CHP don't seem to work at all and the command-line options for VLC all appear to be internet related and are indecipherable to me.

I just need a simple solution that will play audio from a command line, then exit.

e.g.
I say "Autopilot" into the headset and it runs an autohotkey script :-


Send, {u},
Run, C:\X3Sounds\BlueDanube.(wav or MP3...)
Exit


XForumShadow
Posts: 29
Joined: Sat, 4. May 13, 21:19

Post by XForumShadow » Sat, 6. Sep 14, 23:05

The problem was spaces in the filename.

I can now dock with Andre Rieu! :)

https://www.youtube.com/watch?v=IDaJ7rFg66A

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”