Jump to content

GoldWave recording shortcut - Help Needed


Icy
 Share

Recommended Posts

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!

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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...