Hello, so I created a little script, which I need to enhance and I hoped that you could help me a little.
What I want this simple program do is to start recording audio when "x" key is pressed (in GoldWave it's Ctrl+F9 combination) and stop recording when the same "x" is pressed (in GoldWave it's Ctrl+F8).
But I want it to work in background. Because GoldWave accepts it's shortcuts only if program is active.
Could you please enhance my script to work just for GoldWave and in background?
Thanks!
What I want this simple program do is to start recording audio when "x" key is pressed (in GoldWave it's Ctrl+F9 combination) and stop recording when the same "x" is pressed (in GoldWave it's Ctrl+F8).
But I want it to work in background. Because GoldWave accepts it's shortcuts only if program is active.
Could you please enhance my script to work just for GoldWave and in background?
Thanks!
[ autoit ]
HotKeySet("x","STST") $F8 = 0 While 1 Sleep (250) WEnd Func STST() $F8 = $F8 + 1 If $F8 = 2 Then $F8 = 0 EndIf If $F8 = 1 Then Send ("{CTRLDOWN}") Sleep (10) Send ("{F9}") Sleep (10) Send ("{CTRLUP}") EndIf If $F8 = 0 Then Send ("{CTRLDOWN}") Sleep (10) Send ("{F8}") Sleep (10) Send ("{CTRLUP}") EndIf EndFunc