b**********y 发帖数: 2718 | 1 请问VB高手们,如何能够实现在播放audio file的同时还能detect mouse click呢?如
果不放audio,能够检测到点击鼠标。但一旦开始放audio file,再点鼠标就没反应了。
Here's the audio play code:
retVal& = sndPlaySound(wave_frm_name$, SND_ASYNC Or SND_NODEFAULT)
, where sndPlaySound is defined as :
Declare Function sndPlaySound32 Lib "winmm.dll" _
Alias "sndPlaySoundA" (ByVal lpszSoundName _
As String, ByVal uFlags As Long) As Long
Many thanks! | b**********y 发帖数: 2718 | 2 搞错了,上面的code没有问题,是我自己搞错了。
【在 b**********y 的大作中提到】 : 请问VB高手们,如何能够实现在播放audio file的同时还能detect mouse click呢?如 : 果不放audio,能够检测到点击鼠标。但一旦开始放audio file,再点鼠标就没反应了。 : Here's the audio play code: : retVal& = sndPlaySound(wave_frm_name$, SND_ASYNC Or SND_NODEFAULT) : , where sndPlaySound is defined as : : Declare Function sndPlaySound32 Lib "winmm.dll" _ : Alias "sndPlaySoundA" (ByVal lpszSoundName _ : As String, ByVal uFlags As Long) As Long : Many thanks!
| k***r 发帖数: 4260 | 3 这个MM还在用VB呀。现在什么样的项目用VB呢?以为都消失很多年了
【在 b**********y 的大作中提到】 : 请问VB高手们,如何能够实现在播放audio file的同时还能detect mouse click呢?如 : 果不放audio,能够检测到点击鼠标。但一旦开始放audio file,再点鼠标就没反应了。 : Here's the audio play code: : retVal& = sndPlaySound(wave_frm_name$, SND_ASYNC Or SND_NODEFAULT) : , where sndPlaySound is defined as : : Declare Function sndPlaySound32 Lib "winmm.dll" _ : Alias "sndPlaySoundA" (ByVal lpszSoundName _ : As String, ByVal uFlags As Long) As Long : Many thanks!
|
|