Guest Glorpington7 Posted February 27, 2004 Share Posted February 27, 2004 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 Run("SNDREC32.EXE") WinWaitActive("Sound - Sound Recorder") AutoItSetOption("SendKeyDelay", 500) Send("{ALT}{ENTER}{O}{TAB 4}{DOWN}{Z}{ENTER}") send("{tab}{space}{enter}") do send("{alt}{enter}{o}{tab 5}{space}") $a = $a + 1 send("{down $a}") send("{enter}") send("{alt}{enter}{p}{tab}{enter}{c}{enter}{tab}{enter}") Send("{alt}{enter}{s}") until $a = 5 exit >..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? Link to comment Share on other sites More sharing options...
GrahamS Posted February 27, 2004 Share Posted February 27, 2004 The send("{down $a}") should read send("{down " & $a & "}") GrahamS Link to comment Share on other sites More sharing options...
CyberSlug Posted February 27, 2004 Share Posted February 27, 2004 (edited) 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 February 27, 2004 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! Link to comment Share on other sites More sharing options...
Guest Glorpington7 Posted February 28, 2004 Share Posted February 28, 2004 Thank you, wonderful wizards of windows! Good luck with your product and the inquiries of amatuers like me. :iamstupid: Link to comment Share on other sites More sharing options...
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