LarryDalooza Posted October 16, 2007 Share Posted October 16, 2007 Download Scite install. Add ResHacker.exe to the Scite\AutoIt3Wrapper folder. Use Scite's "Tool" menu to compile this... #AutoIt3Wrapper_Res_File_Add=C:\WINDOWS\Media\tada.wav,SOUND,MYWAVE Global Const $SND_RESOURCE = 0x00040004 Global Const $SND_ASYNC = 1 DllCall("winmm.dll","int","PlaySound","str","MYWAVE","hwnd",0,"int",$SND_RESOURCE) DllCall("winmm.dll","int","PlaySound","str","MYWAVE","hwnd",0,"int",BitOr($SND_RESOURCE,$SND_ASYNC)) For $n = 1 to 100 Sleep(15) ToolTip("Asynch! " & $n) Next Off the top of my head. No sound card in my dev pc at work. Hope it works... Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Zedna Posted October 16, 2007 Share Posted October 16, 2007 (edited) Yes. It works fine!!Thanks for sharing Larry.I will add this into my resource UDF examplesNote: for MP3 it don't work - PlaySound API supports only WAV Edited October 16, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
LarryDalooza Posted October 16, 2007 Author Share Posted October 16, 2007 For mp3 you may be able to use the resource with MCISendString() in winmm.dll any volunteers to do this? Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
LarryDalooza Posted October 16, 2007 Author Share Posted October 16, 2007 For mp3 you may be able to use the resource with MCISendString() in winmm.dllany volunteers to do this?Lar.OK.. this is a a stupid idea, and a virtual "no go" without an interim temp file.Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
GtaSpider Posted October 16, 2007 Share Posted October 16, 2007 Hello Very very nice, thnanks For sharing Larry! Bad, that it doesnt work for mp3 Mfg / Best Regards Spider www.AutoIt.de - Moderator of the German AutoIt Forum Link to comment Share on other sites More sharing options...
Zedna Posted October 16, 2007 Share Posted October 16, 2007 Thanks Larry.I added this functionality into my resource UDF.Look here Resources UDF ResourcesEx UDF AutoIt Forum Search 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