
W::PlaySound("C:\Users\Kyle Biggs\Desktop\NewAudio\FX\Rifle Shot.wav")Į::PlaySound("C:\Users\Kyle Biggs\Desktop\NewAudio\FX\Rifle Bolt Action Cock 0*.wav")Ī::PlaySound("C:\Users\Kyle Biggs\Desktop\NewAudio\FX\Pistol Shot.wav") Q::PlaySound("C:\Users\Kyle Biggs\Desktop\NewAudio\FX\Machine Gun Bursts 0*.wav") I've tried just that and to no great surprise, it doesn't work. Save space, and keep the sound from being too repetitive. If I could do that, I can assign one key for a gun sound, and then make several different sounds of that gun type on one key. Could I just put Machine Gun Bursts 0*.wav? I remember being able to do that when working in some game engines so it seemed like it would work. So how could I call a random sound? For example, I'm using "Machine Gun Bursts 01.wav" right now, and there are versions 02 to 05. I'm learning quite a bit from this I think.

#Wow disable sound effects hotkey code#
Wow! Amazing, that last bit of code works the best so far, but thanks to everyone who's responded. I make websites and do other graphic art projects. I'd even be willing to do work in exchange if anyone is interested in writing this script for me. I'll write in each wave file's path manually.Īny ideas or help for this script would be GREATLY appreciated as this 'little' project is HUGELY important to me, and I can't express that enough. I don't plan on making any type of interface. I'd also love it if I could assign a key to play any one of several sound files randomly (IE Y:: SoundPlay C:\shoot*.wav to play any file with shoot and then a number in the name) It looks like it might even be possible for me to set up controls for pitch shifting, and on the fly volume changing as well, witch would be amazing. I need sound files to overlap each other.Įventually, I'd like to have about 9 keys set to a 'page' of sounds, and two other keys set to flip through these pages to different sets of sounds.

The problem is, as you know soundplay stops any sound that is playing before moving on to the next. Basically, I'm turning the keyboard into a sound board, so I can folly sound effects and things in real time. I want to map keyboard keys to each play a wave file.
#Wow disable sound effects hotkey how to#
I'm only a few hours into this amazing little program, and I don't think I'll have the concentration or dedication to learn how to program scripts for it, though I can grasp the basics. I've searched, and haven't found a real solution to this problem.
