Jump to content
Sign in to follow this  
Guest Glorpington7

I'm Sure This Simple Stuff, But...

Recommended Posts

Guest Glorpington7

Ok, perhaps I'm not a a real programmer, but here goes:

I'd like to use AutoIT to automate the formatting of .wavs to PCM format using windows sound recorder, on my win 98se machine.

I have about a few hundred .wavs (all short sound effects, etc.), and I need them all to be in PCM (CD Quality) format for me play with them. They're all in a folder on my desktop titled "z". If you have a win 98 machine with soundrec.exe, you can replicate my problem by creating a "Z" folder on your desktop and putting 5 short .wavs therein.

$a = 1


WinWaitActive("Sound - Sound Recorder")

AutoItSetOption("SendKeyDelay", 500)

Send("{ALT}{ENTER}{O}{TAB 4}{DOWN}{Z}{ENTER}")



send("{alt}{enter}{o}{tab 5}{space}")

$a = $a + 1

send("{down $a}")




until $a = 5


>..It just won't hit that DOWN key in an incremental fashion; stalls on the second one until the "until" conditions are met. But all else works. (sorry about the crudeness and clunkiness of this script..I'll clean it up after I solve this prob.)

This could be a bug, but I think it's just me and my limited knowledge of scripting.

Little help, here?

Share this post

Link to post
Share on other sites

The send("{down $a}") should read

send("{down " & $a & "}")


Share this post

Link to post
Share on other sites

Also, use !{Enter} if you mean Alt+Enter.

"{AltDown}{Enter}{AltUp}" might also work.

I'm pretty sure "{Alt}{Enter}" means Alt followed by Enter.

Edit: By the way, ordinary letters do not need to be in braces. Send("!{ENTER}o{TAB 4}{DOWN}z{ENTER}")

Also note that you should typically use lowercase letters. For example ^a means Ctrl+A while ^A might be interpreted as Ctrl+Shift+A.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
Share on other sites
Guest Glorpington7

Thank you, wonderful wizards of windows!

Good luck with your product and the inquiries of amatuers like me.


Share this post

Link to post
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
Sign in to follow this