Hello,
I would like to play a specific sound file by pressing a keystroke combination like Ctrl+Shift+F11.
Important for me is that the sound file does not get opened, but only played.
(The same as a Windows system sound like Starting windows.)
Is that possible with the AHK function "SoundPlay"?
I haven't installed AHK yet, and probably I'll need some time until my first script will work.
My main aim is to switch between JoyToKey gamepad profiles (using as remote control) by pressing 1 button (which will be the keystroke combination).
The sound file will inform me which profile has been loaded.
The switchting between profiles already works - only the sound is missing.
Regards
Playing a WAV file with a keystroke combination
Playing a WAV file with a keystroke combination
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Re: Playing a WAV file with a keystroke combination
Yes, you can use SoundPlay for that. Your hotkey would be ~^+F11:: it sounds like. The ^ = Ctrl, the + = Shift, and the ~ = pass-through. So if you use Ctrl+Shift+F11 in your game/program, you want to preserve that original function. Without ~, AHK would completely intercept the hotkey and AHK would only play sound, but not let the program change profiles.
Re: Playing a WAV file with a keystroke combination
Ok, I will try it!
Thanks for the super fast answer
Thanks for the super fast answer
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Who is online
Users browsing this forum: Bing [Bot], peter_ahk and 338 guests