Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Excel user form with a button that plays a wav file using
mciSendString. I am trying to make use of the notify parameter so I can take some action when the file is done playing, but I can't get it to work. Here is my relevant code: Call mciSendString("play WavFile notify", 0, 0, AddressOf mciSendStringProc) This is supposed to send the notify message to a procedure called mciSendStringProc (located in a module). Here is the code for that: Public Function mciSendStringProc(ByVal hWnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long MsgBox uMsg & wParam & lParam mciSendStringProc = True End Function The wav file plays successfully, but I cannot get anything to happen when it's finished. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
what is "Notify before state loss" | Excel Programming | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |