RECORDING VIA SCRIPTING

Bit of a request. Could somebody explain to me how to create a script that will allow me to, via a push of a button, launch a sound recorder (audacity in my case).

Also, is there a way that using scripting, you can get it so that on the push of a button on the keyboard, audacity will load and start recording instantly.

Would really appreciate any help into how i can get this to work as i have no idea about scripting.

Thanks In Anticipation;

:smiley:

Let me begin by saying that the following advice is off the top of my head :).

The first thing you need to find out is the command line to start Audacity in Record mode.
opt rant y q
I confess I loathe Audacity: I am a SoundForge and/or CoolEdit person and I just cannot get my head around Audacity’s peculiar (to me) way of working, nor its apparent need to have 1001 add-ins to do anything beyond Very Basic Editing. OK, so that is probably just the way my mind works, and nothing to do with Audacity which is of course popular because it’s free ;).
opt rant n q
The command you need will look something vaguely like:audacity.exe -r RecordFileName.wav
but no doubt an Audacity expert can correct this and/or tell you whether it’s possible or not. You can test the final command line by opening a Command Prompt window and typing in the command.

When you’re happy that it works correctly …

It’s very easy to instruct mAirList to run ANY other program: you write a script which includes a SHELL statement. I seem to remember writing something about this in the Wiki, so please Search that and come back here if that info. isn’t there. So what you need is to write a simple mAirList script which ‘runs’ Audacity using your command line.

Once that’s written and working, again it should be easy to assign that ‘run Audacity recording’ script to a mAirList hotkey.

Sorry again to be so vague but it definitely sounds possible. Your only problem as I see it would be stopping the Audacity recording, which you would have to do manually in the Audacity window (unless anyone knows differently?).

Hope that at least gives you some ideas!

BFN
CAD

i confess im an audition man myself but for the setup and the recording function im using audacity for, its perfect.

how do i script though.

where do i type that command you gave me and where do i save etc to get it to work?

sorry if i sound stupid but i really havent the foggiest at doing scripting.

cheers cad.

Create a new script (text file) with the following contents:

begin ShellExecuteHidden('c:\path\to\audacity.exe', 'parameters'); end.

Adjust the path and parameters as needed. (Has anyone found out which parameters are needed for instant recording yet?)

Save the file as e.g. C:\record.mls.

In mAirListConfig, add a new hotkey, and in the action/command field, type

RUNSCRIPT C:\record.mls

That’s it.

Hi Torben, its a key command - pressing the letter R if that is any help.

Kind regards tony

Fantastic, Thanks for your help guys

Will give it a go later and see how i get on.

CHEERS :smiley: