Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Commondialog with Media player Help [VB6]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Feb 12, 2008 8:11 pm    Post subject: Commondialog with Media player Help [VB6] Reply with quote

Can someone help me i want to make a media player, so im using the windows media player and common dialog, so what do i do so when i press a button called Open it opens common dialog and u select a media file and it plays in WMP on the form
_________________
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Tue Feb 12, 2008 8:45 pm    Post subject: Reply with quote

first you need to make it open and filter what you looking for so..

Code:
CommonDialog1.Filter = ("MP3 Files" (*MP3) |*.MP3")
CommonDialog1.showopen


So then, we need just to make it, so when we press "Open" this file selected is being interpreted by Windows Media Player control, and played.

So, we put this next.

Code:
if CommonDialog1.Filename < > "" then 'To avoid nothing
WindowsMediaPlayer1.url = (commondialog1.filename)


And there you got.

_________________

Back to top
View user's profile Send private message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Feb 12, 2008 8:50 pm    Post subject: Reply with quote

CommonDialog1.Filter = ("MP3 Files" (*MP3) |*.MP3")
CommonDialog1.showopen


The Bolded Points are highlighted mistakes on the code it either says compile error end of statment or invalid character

_________________
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Tue Feb 12, 2008 9:14 pm    Post subject: Reply with quote

pepsiguy_2 wrote:
CommonDialog1.Filter = ("MP3 Files" (*MP3) |*.MP3")
CommonDialog1.showopen


The Bolded Points are highlighted mistakes on the code it either says compile error end of statment or invalid character


Sorry, my bad, i did put a " in a wrong place.

Just, put it like..


("MP3 Files (*MP3) |*.MP3")

_________________

Back to top
View user's profile Send private message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Tue Feb 12, 2008 9:16 pm    Post subject: Reply with quote

Thanks it works now +rep Wink
_________________
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Tue Feb 12, 2008 11:02 pm    Post subject: Reply with quote

You're Welcome ^^
_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites