Visual Basic Forum

Visual Basic Forum
für VB6 und VB.NET Programmierer
 
RegistrierenRegistrieren  LoginLogin

Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Fragen - Antworten
Autor
Nachricht
BlAcKfINAl.aT
Poster
Poster

Anmeldedatum: 26.07.2008
Beiträge: 162

Speichern?
Verfasst am: 28.07.2008, 12:38

Ich habe eine .ShowSave gemacht, für mein MP3 Dings da , zum Pfad auswählen, doch dsa funktioniert nicht
Im mom:

With Commondialog
.CancelError = True
.FileName = "bla.wav"
.ShowOpen
End With


Wie kann ich machen , das ich da was AUSWÄHLEN kann , nich saven?

Ach , sry, das schon wieder so ne scheiß Frage kommt -.-
_________________
 
bla
Coder
Coder

Anmeldedatum: 02.05.2008
Beiträge: 267


Verfasst am: 28.07.2008, 12:42

Visual Basic: [code] With Commondialog
.CancelError = True
.FileName = "bla.wav"
.ShowOpen
txt_eingabe = .filename
End With

[/code]
 
BlAcKfINAl.aT
Poster
Poster

Anmeldedatum: 26.07.2008
Beiträge: 162


Verfasst am: 28.07.2008, 12:56

(bla;6162)
Visual Basic: [code] With Commondialog
.CancelError = True
.FileName = "bla.wav"
.ShowOpen
txt_eingabe = .filename
End With

[/code]



Ja soweit war ich ja schon...aber dan wirds nich in meine List1 getan
also das Ausgewählte ding^^
 
bla
Coder
Coder

Anmeldedatum: 02.05.2008
Beiträge: 267


Verfasst am: 28.07.2008, 13:01

Visual Basic: [code]
With Commondialog
.CancelError = True
.FileName = "bla.wav"
.ShowOpen
list1.additem (.filename)
End With


[/code]

was für n verf****es script habt ihr da -.-

With Commondialog
.CancelError = True
.FileName = "bla.wav"
.ShowOpen

list1.additem (.filename)
End With

 
BlAcKfINAl.aT
Poster
Poster

Anmeldedatum: 26.07.2008
Beiträge: 162


Verfasst am: 28.07.2008, 14:26

Visual Basic: [code]
Private Const KeyPressed As Integer = -32767

'MP3
'######################
'######################
'######################
'######################
'######################
'API deklarieren^^

Private Declare Function mciSendString Lib "winmm.dll" _
Alias "mciSendStringA" ( _
ByVal lpszCommand As String, _
ByVal lpszReturnString As String, _
ByVal cchReturnLength As Long, _
ByVal hwndCallback As Long) As Long
'MP3
'######################
'######################
'######################
'######################
'######################
'fertig
'als nächste wave
'und das mit Tasten


Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal nVirtKey As Long) As Integer
Private Declare Function playa Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
'wav fertig^^
'Tasten fertig xD


Public Sub PlayWav(sFile As String)
If Dir(sFile$) <> "" Then Call playa(sFile, SND_FLAG)
End Sub

Private Sub cmd_add_Click()

tmr_read.Enabled = False


With cdlg
.CancelError = True
.FileName = "bla.wav"
.ShowOpen

txt_pfad.Text = .FileName
End With




End Sub

Private Sub Command1_Click()
tmr_read.Enabled = True

End Sub

Private Sub Form_Load()
tmr_read.Interval = 20
tmr_read.Enabled = True
End Sub

Private Sub tmr_read_Timer()
Dim HotKey As Long
HotKey = vbKeyF12

If GetAsyncKeyState(HotKey) = KeyPressed Then
Call PlayWav(txt_pfad.Text)
End If


' MCI öffnen
If GetAsyncKeyState(HotKey) = KeyPressed Then
' MP3 abspielen
mciSendString "play MyMP3 'ich will hier das er dsa LIED ABSPIELT , sobald die f12 gedrückt is , die ich aus dem SHowOpen dialog ausgewählt hab...wird aber ncih >.> fuck >Also dsa ichs dan mit f12 abrufen kann , so weis bis jetz mit wav geht -.-", 0, 0, 0, 0

'ES GEHT NICH =/
'HILFE -.-


End If


End Sub
[/code]


Funzt nich -.-
 
bla
Coder
Coder

Anmeldedatum: 02.05.2008
Beiträge: 267


Verfasst am: 28.07.2008, 16:54

Visual Basic: [code]Private Sub tmr_read_Timer()
Dim HotKey As Long
HotKey = vbKeyF12

If GetAsyncKeyState(HotKey) = KeyPressed Then
Call PlayWav(txt_pfad.Text)
End If

If GetAsyncKeyState(HotKey) = KeyPressed Then
Dim sFile As String
sFile = txt_eingabe.Text

If mciSendString("open " & sFile & _
" type MPEGVideo alias MyMP3", 0, 0, 0) = 0 Then
' MP3 abspielen
mciSendString "play MyMP3 from 0", 0, 0, 0
End If

'mit den beiden befehlen beendest du das... -.-
'mciSendString "stop MyMP3", 0, 0, 0
'mciSendString "close MyMP3", 0, 0, 0
End If

End Sub
[/code]

bitte benutz das nächste mal
Visual Basic: [code][/code]


das is das rautezeichen über der textbox (das 2. von rechts)

 
BlAcKfINAl.aT
Poster
Poster

Anmeldedatum: 26.07.2008
Beiträge: 162


Verfasst am: 28.07.2008, 17:11

Den code hatte ich schon , durch n Link.
ABER , ich will das er den MP3 Abspielt , dessen pfad in txt_pfad ist...geht das?


also wen ich ja mit dem showopen common dialog n mp3 auswähl , kommt der pfad des mp3´s in die txtbox Txt_pfad .. will das der dan wen ich f12 drücke, das MP3 LIED abspielt , statt wie es jetzt schon funktioniert, das wav...also einfach das es so mit mp3 geht [img]http://www.vb-x.org/aolbart:/1024/id/30696371536D696C65795365743033/3B2D29[/img]
Einfach statt f12 -> wav in txt_pfad play, das es auch mp3s von da playt... also ich will nur f12 drücken müssn , dan komt das lied, in txt_pfad .. weiste was ich mein?

*PUSH* is eilig =(
 
bla
Coder
Coder

Anmeldedatum: 02.05.2008
Beiträge: 267


Verfasst am: 28.07.2008, 17:51

schau dir doch mal einen post über dir -.-

so spielst du ne mp3 ab:

Visual Basic: [code]Dim sFile As String
sFile = "C:test.mp3"

If mciSendString("open " & sFile & _
" type MPEGVideo alias MyMP3", 0, 0, 0) = 0 Then
' MP3 abspielen
mciSendString "play MyMP3 from 0", 0, 0, 0
End If
[/code]

so beendest du die:

Visual Basic: [code]mciSendString "stop MyMP3", 0, 0, 0
mciSendString "close MyMP3", 0, 0, 0[/code]

bau das doch einfach ein -.-
 
BlAcKfINAl.aT
Poster
Poster

Anmeldedatum: 26.07.2008
Beiträge: 162


Verfasst am: 28.07.2008, 18:43

Visual Basic: [code]
Private Const KeyPressed As Integer = -32767

'MP3
'######################
'######################
'######################
'######################
'######################
'API deklarieren^^

Private Declare Function mciSendString Lib "winmm.dll" _
Alias "mciSendStringA" ( _
ByVal lpszCommand As String, _
ByVal lpszReturnString As String, _
ByVal cchReturnLength As Long, _
ByVal hwndCallback As Long) As Long
'MP3
'######################
'######################
'######################
'######################
'######################
'fertig
'als nächste wave
'und das mit Tasten


Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal nVirtKey As Long) As Integer
Private Declare Function playa Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
'wav fertig^^
'Tasten fertig xD


Public Sub PlayWav(sFile As String)
If Dir(sFile$) <> "" Then Call playa(sFile, SND_FLAG)
End Sub

Private Sub cmd_add_Click()

tmr_read.Enabled = False


With cdlg
.CancelError = True
.FileName = "bla.wav"
.ShowOpen

txt_pfad.Text = .FileName
End With




End Sub

Private Sub Command1_Click()
tmr_read.Enabled = True


End Sub

Private Sub Form_Load()
tmr_read.Interval = 20
tmr_read.Enabled = True
End Sub

Private Sub tmr_read_Timer()
Dim HotKey As Long
HotKey = vbKeyF12

If GetAsyncKeyState(HotKey) = KeyPressed Then
Dim sFile As String
sFile = (txt_pfad.Text)


If mciSendString("open " & sFile & _
" type MPEGVideo alias MyMP3", 0, 0, 0) = 0 Then
' MP3 abspielen
mciSendString "play MyMP3 from 0", 0, 0, 0

End If
End If




End Sub
[/code]



ES GEHT NICH ABSPIELEN MIT F12 -.-*
ICH PACKS NICH >.>
BITTE N LETZES MAL N TIPP/LÖSUNG >.<
_________________


 
ZiG
Überflieger
Überflieger

Anmeldedatum: 16.04.2008
Beiträge: 421


Verfasst am: 29.07.2008, 07:06


@BlAcKfINAl.aT

1. Nicht die Posts direkt über dir quoten/zitieren. Sonst gibts irgendwann eine Verwarnung von mir.

2. Benutze für deine codes, wie bla schon gesagt hat das Raute Zeichen. 2te von rechts.
Dann wird dein code leserlich dargestellt.
 
Neues Thema eröffnen   Neue Antwort erstellen    Visual Basic Forum Foren-Übersicht -> [VB6] Fragen - Antworten

Tags: speichern, cancelerror, wav, mp3

 
 Verwandte Themen   Aufrufe   Letzter Beitrag 
Keine neuen Beiträge So ne art Keygen/in txt box? 393 10.08.2007, 20:01
Keine neuen Beiträge per vb6 etwas an ne mail senden? 445 31.07.2007, 19:29
Keine neuen Beiträge ne wichtige frage(= 911 08.04.2007, 11:34
Keine neuen Beiträge Ressource Frage 365 04.04.2007, 20:12
Keine neuen Beiträge Kurze Frage (noch sehr am anfang) 654 28.03.2007, 22:40
 

AdSpruch
RSSGrillen V
RSSChina-Nachrichten bei T-Online vom Freitag dem 10.02.2012
dealrabbit Gutscheine Sprüche


[ Time: 0.3708s ][ Queries: 117 (0.0289s) ][ GZIP on - Debug on ]