Icy Posted December 17, 2012 Posted December 17, 2012 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
Mat Posted December 17, 2012 Posted December 17, 2012 We can point you in the right direction: Look at ControlSend in the helpfile. AutoIt Project Listing
Icy Posted December 20, 2012 Author Posted December 20, 2012 Well, I know about that, though it didn't work... On top of a program I used the: "AutoItSetOption ("WinTitleMatchMode",3)" and then used the "ControlSend" command, but it didn't work properly. =/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now