NegativeNrG Posted December 29, 2005 Share Posted December 29, 2005 (edited) Im receiving an error message when i open my script. its for playing .mid files. heres my code: Func PlayMidi($Midi) $dll = DllOpen("PlayMidi32.dll") $call = Dllcall($dll,"str","PlayMIDI","str",$midi) EndFunc it DOES play the file, but , i get an error msg. its "Autoit3.exe has encountered a problem and needs to close" Dont send/send error report etc.. ive uploaded the dll. Playmidi32.dll Edited December 29, 2005 by NegativeNrG [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 29, 2005 Developers Share Posted December 29, 2005 Im receiving an error message when i open my script. its for playing .mid files. heres my code: Func PlayMidi($Midi) $dll = DllOpen("PlayMidi32.dll") $call = Dllcall($dll,"str","PlayMIDI","str",$midi) EndFunc it DOES play the file, but , i get an error msg. its "Autoit3.exe has encountered a problem and needs to close" Dont send/send error report etc.. ive uploaded the dll. Playmidi32.dll Try: $call = Dllcall($dll,"long","PlayMIDI","str",$midi) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
NegativeNrG Posted December 29, 2005 Author Share Posted December 29, 2005 nope, it doesnt work, with that, it doesnt play the file, it just closes quickly. [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 29, 2005 Developers Share Posted December 29, 2005 nope, it doesnt work, with that, it doesnt play the file, it just closes quickly.Are you keeping your script running ? This example plays a mid file for 10 seconds... PlayMIDI("SONG.MID") sleep(10000) Func PlayMidi($Midi) $dll = DllOpen("PlayMidi32.dll") $call = Dllcall($dll,"long","PlayMIDI","str",$midi) EndFunc SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
NegativeNrG Posted December 29, 2005 Author Share Posted December 29, 2005 oops, ma bad, forgot to keep my script running. [size=20]My File Upload[/size]Register at my site and upload. 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