🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1534

Re: Gioco in Vbasic

#1534
From: G. Sanna
Date: Mon, 19 Apr 2004 12:05
34 lines
2127 bytes
"Andreij" <andreijlontanoff(hai visto mai?)@katamail.com> ha scritto nel
messaggio news:HJxgc.70288$hc5.3058313@news3.tin.it...
> Ciao, sto tentando di creare un piccolo gioco per mio figlio. Ho messo una
> serie (tre)di image che raffigurano animali. Vorrei che quando ci passa su
> con il mouse (o ci clicca) fosse possibile ascoltare la voce di
> quell'animale (file wav che ho nella cartella C:\documenti\suoni).
>
> Qualcuno pu� indirizzarmi almeno?
>
> Ciao e grazie
>
> Andreij
>
>
Un'altra soluzione potrebbe essere, dopo aver inserito il componente
Microsoft Multimedia Control dall'elenco dei componenti:
'**** imposta questa sub su generale dichiarazioni della Form1
Sub play_wav(nfile As String)
Form1.MMControl1.FileName = nfile & ".wav"
Form1.MMControl1.Command = "close"
Form1.MMControl1.Command = "open"
Form1.MMControl1.Command = "Play"
End Sub

Private Sub Picture1_Click()
'*** il comando richiama l'esecuzione del file.wav dal nome "cane.wav"
Form1.play_wav ("cane")
End Sub

Private Sub Form_Load()
'*** questa istruzione, nascondel'oggetto mmcontrol all'avvio
Form1.MMControl1.Visible = False
End Sub
Technical Details
Message-ID: <mgPgc.102299$rM4.4050546@news4.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
References: <HJxgc.70288$hc5.3058313@news3.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,cd1e7a28c1a07bce
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-04-19 05:05:39 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
From: "G. Sanna" <gavsan@tin.it>
Newsgroups: free.it.visual-basic
References: <HJxgc.70288$hc5.3058313@news3.tin.it>
Subject: Re: Gioco in Vbasic
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <mgPgc.102299$rM4.4050546@news4.tin.it>
Date: Mon, 19 Apr 2004 12:05:38 GMT
NNTP-Posting-Host: 80.181.36.227
X-Complaints-To: newsmaster@tin.it
X-Trace: news4.tin.it 1082376338 80.181.36.227 (Mon, 19 Apr 2004 14:05:38 MET DST)
NNTP-Posting-Date: Mon, 19 Apr 2004 14:05:38 MET DST
Organization: TIN