how would i go to make Every time a specific sound is played press something script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
DirtyLion12
Posts: 1
Joined: 14 Apr 2021, 14:51

how would i go to make Every time a specific sound is played press something script

14 Apr 2021, 15:08

hello i want to make it soo every time the program i made plays a sound (in this case its a 1 second song) (also have it in mp3) AHK will press on a key,

How would i make ahk detect that, that spesific sound/music is playing?


thankyou!
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: how would i go to make Every time a specific sound is played press something script

14 Apr 2021, 16:30

the program i made plays a sound
If that program only plays that sound you could check for its :arrow: process (means when it's active).
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: how would i go to make Every time a specific sound is played press something script

16 May 2021, 09:41

well, since u say its a program you made, change the program and implement some sort of IPC(eg a window message is broadcasted whenever audio is queued -> ahk registers an OnMessage() handler to monitor said message and act accordingly)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 171 guests