Hotkey for Push-to-Talk + Delay Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
TallgeeseIV
Posts: 2
Joined: 18 May 2018, 08:47

Hotkey for Push-to-Talk + Delay

18 May 2018, 08:56

So I've written this script that auto-detects my mic that I keep at 97% volume (for this purpose) and allows me to hold a mouse button to temporarily un-mute. What I'm trying to add is a 750ms delay before it re-mutes because I have a tendency in hectic combat to let it go before I'm fully finished speaking. The issue is, adding a sleep command prevents me from repressing it until it has completed the sleep, so I need some way of adding that delay, but making it interuptible if I press the button again. I played with SetTimer a bit with no results but there's a good chance I was using it incorrectly. Any ideas?

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

Nightwolf85
Posts: 295
Joined: 05 Feb 2017, 00:03

Re: Hotkey for Push-to-Talk + Delay  Topic is solved

18 May 2018, 09:24

Does using SetTimer like this work how you want?

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

TallgeeseIV
Posts: 2
Joined: 18 May 2018, 08:47

Re: Hotkey for Push-to-Talk + Delay

18 May 2018, 09:32

It sure does, thank you very much!

Return to “Ask For Help”

Who is online

Users browsing this forum: potscrubber, s-ve-n and 82 guests