Jump to content

Recommended Posts

Posted

Not sure if AutoIt's the program for this but I want to create something that will let me do the following:

Change the device selected in Recording Control from Microphone to Wave Out

Play a small audio clip (wav or mp3)

Change the deviced selected in Recording Control from Wave Out to Microphone

This would be in the form of a gui with buttons for each sound clip (beep, hello, goodbye), pressing one of these buttons would perform the above action and play the sound bite requested.

To configure it I would to add something that would allow the user to edit the name of the button and the file (& it's location).

Sutefan

これは私の署名であり, 私の名前はsutefan である !

Posted (edited)

Yes.

You can do just about ANYTHING in AutoIt...

That script should be pretty small and relatively simple...

And you can make a GUI front end for it if you like...

And you can compile it (SIMPLY) into an exe...

And you can decompile it for the source (with a user defined password)

And lets you run Au3 scripts open sourced once you install AutoIt3!

i think the device selection are reg settings (could be wrong), but you will probably want to just call the settings window (Run), then change the settings (ControlSend), Then play the sound (SoundPlay)... and so on. as for the file selection you can prompt the user with an FileOpenDialog

Check out the following Functions in the AutoIt Help file...

RegRead

RegWrite

SoundPlay

SoundSetWaveVolume

ControlSend

ControlSetText

FileOpenDialog

just mine through the helpfile... it's actually pretty amazing what you will find in there.

I haven't seen a task yet that i couldn't use AutoIt to do. It is a very logical and intuitive lang that i have come to love...

</rant>

Be sure to install AutoIt3 First

P.S. --> if you don't have an Editor yet i recommend SciTe.

I also recomend http://www.autoitscript.com/fileman/users/public/CyberSlug/jan11autobuilder.zip (By CyberSlug) to build your GUI.

Edited by MadSc13ntist
Posted

Thanks for the reply MadSc13ntist,

A lot of things for me to lookup there and the fact you listed them will make it easier for me find the correct ones!

Sutefan

これは私の署名であり, 私の名前はsutefan である !

Posted

:) Glad to be of service! :D

I use Autoit several times a day and i can't say i don't enjoy making scripts just for the heck of it... The abillity to use a scripting lang opens up sooooooo many possibilities. and indeed makes you much much much more useful when it comes to computers in general... Think about it... you can make scripts that will amaze and wow those around you... getting the basics down can be a bear if you are new to scripting all together but the forums are FILLED with useful intelligent mammals that speak Au3 fluently...

The BEST PART:

------------------

We've ALL been there. You have an idea for software, i.e. man... wouldn't it be cool if there was a program that could...

Now you can be the person to offer the solution to others... at the size of a txt file!

</sermon>

If you need any help getting started in Au3 please feel free to PM me and i will get you on your way in no time at all. If you are already adapted to this lang then feel free to ignore this. :">

l8r

Posted

Thanks! I've already done one script for updating anti-virus with the help of somebody else on these forums...I've not got far with this but so far manage to code the following:

RunWait("SNDVOL32.EXE", "C:\Windows", @SW_MAXIMIZE) ; change @SW_MAXIMIZE to HIDE
ControlSend("Volume Control", "Volume Control", "1004", ""); 1004=ControlID for Options

I've not got the second line correct yet.. :)

Sutefan

これは私の署名であり, 私の名前はsutefan である !

Posted

Struggling now... :)

I can get the Volume Control window to open, next I want the select Options then properties.

I've been messing around with values etc for ControlSend but have yet to get it work. No errors just nothing seems to happen. Option is a menu name, when I use Active Window to look info on and move the cursor over Options it comes up with nothing for Text: or Control ID:.

Am I doing something wrong?

Sute...

これは私の署名であり, 私の名前はsutefan である !

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
  • Recently Browsing   0 members

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