الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف اقوم بتشغيل ملف صوتي بدون استخدام اي ادوات عن طريق الكود

مغلق
بدأه mega_soft في 16 ديسمبر 2007 · 3 رد · 631 مشاهدة · في لغة Ms Visual Basic 6 وما قبلها من إصدارات
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

كيف اقوم بتشغيل ملف صوتي بدون استخدام اي ادوات عن طريق الكود


msgbox "WELCOME",vbokonly,""
else
msgbox "YOU ARE LOSER",vbokonly,""
end if
if text1.text="www.arabteam2000.com" then

megasoft.jpg
#2

يرجى تعديل العنوان

جرب الكود التالي :

'Add a module to your project (In the menu choose Project -> Add Module, Then click Open)
'Insert this code to the module :

Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ 
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

'Insert this code to your form:

Private Sub Form_Load()
'replace c:\music\myfile.wav with the WAV file you want to play
sndPlaySound "c:\music\myfile.wav", 1
'the '1' following the file means that the program should not stop to play the file. 
'The sound will play and other events can be happening. 
'If you want the whole program to stop while the sound is playing, just change the '1' to '0'.
End Sub

ولكني لم أجربه ,

ويمكنك استخدام أداة Microsoft Multimedia Control

اقتباس
If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut

Albert Einstein

مدخل إلى برمجة وتصميم الألعاب : كيف أبدأ ؟

#3

الاخ الفاضل ...

يمكن استخدام دول API مثل الدالة PlaySound

Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long

راجع أيضاً: /index.php?showtopic=120523

شكراً

Eng. Usama El-Mokadem

Nothing is impossible, the word impossible itself says that: I M - Possible

#4

شكرا علي المجهود ولكن بدون استخدام ادوات اضافية اي ادوات خارجية


msgbox "WELCOME",vbokonly,""
else
msgbox "YOU ARE LOSER",vbokonly,""
end if
if text1.text="www.arabteam2000.com" then

megasoft.jpg

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…