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 


How to add MUSIC ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
SwedenS
Cheater
Reputation: 0

Joined: 12 Dec 2007
Posts: 44

PostPosted: Thu Feb 07, 2008 3:52 am    Post subject: How to add MUSIC ? Reply with quote

Hi, iam gonna make a program in Visual Basic 2008, but i want some music, so, how to add music to my forms ?

PLEASE HELP FAST.

EDIT: It shouldnt be a "player" it should be a script that plays a song that i decided so only me can change the song, ITS NOT A MUSIC PLAYER.


Last edited by SwedenS on Thu Feb 07, 2008 6:11 am; edited 2 times in total
Back to top
View user's profile Send private message
Losplagos
Expert Cheater
Reputation: 0

Joined: 21 Mar 2006
Posts: 172
Location: Knee deep in a c++ book

PostPosted: Thu Feb 07, 2008 4:12 am    Post subject: Reply with quote

http://www.youtube.com/watch?v=S0Q1bRLo7_c

That should help. Or even better. http://www.google.com/search?q=vb6+music+player&hl=en&start=10&sa=N[/url]

_________________

Earthbound = 31337
Back to top
View user's profile Send private message
SwedenS
Cheater
Reputation: 0

Joined: 12 Dec 2007
Posts: 44

PostPosted: Thu Feb 07, 2008 4:59 am    Post subject: Reply with quote

Losplagos wrote:
http://www.youtube.com/watch?v=S0Q1bRLo7_c

That should help. Or even better. http://www.google.com/search?q=vb6+music+player&hl=en&start=10&sa=N[/url]


Thanks,.. iam looking at it now.'


EDIT: Iam using VB 2008 not VB6.
Back to top
View user's profile Send private message
Losplagos
Expert Cheater
Reputation: 0

Joined: 21 Mar 2006
Posts: 172
Location: Knee deep in a c++ book

PostPosted: Thu Feb 07, 2008 5:09 am    Post subject: Re: How to add MUSIC ? Reply with quote

SwedenS wrote:
Hi, iam gonna make a program in Visual Basic 6, but i want some music, so, how to add music to my forms ?

PLEASE HELP FAST.


-_- Original post says
Quote:
in VISUAL BASIC 6


The easiest option is media player. I read somewhere you could use the api or directx but i dont know much about that.

_________________

Earthbound = 31337
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Feb 07, 2008 5:53 am    Post subject: Reply with quote

You can use the PlaySound function.


*For example search in google.
Back to top
View user's profile Send private message
SwedenS
Cheater
Reputation: 0

Joined: 12 Dec 2007
Posts: 44

PostPosted: Thu Feb 07, 2008 6:13 am    Post subject: Reply with quote

HolyBlah wrote:
You can use the PlaySound function.


*For example search in google.


Ok, looking at that now.
Back to top
View user's profile Send private message
Losplagos
Expert Cheater
Reputation: 0

Joined: 21 Mar 2006
Posts: 172
Location: Knee deep in a c++ book

PostPosted: Thu Feb 07, 2008 6:29 am    Post subject: Reply with quote

You would have to convert mp3 files to wav to play them with playsound.
_________________

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

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Sun Feb 10, 2008 12:07 pm    Post subject: Reply with quote

Use Windows Media Player.

Right-Click on the Toolbar and press "Choose Item" or "Add/Remove Item".

Now, select the COM tab, and find "Windows Media Player".

Now add WindowsMediaPlayer to you form.

the default name of WindowsMediaPlayer control at VB.Net, is AxWindowsMediaPlayer1.

Now, at code.. lets make it simple to just give you some ideas of the use of this.

Code:
AxWindowsMediaPlayer1.URL = ("[Location][FileName].[Extention]")
        AxWindowsMediaPlayer1.settings.volume = (100)
        AxWindowsMediaPlayer1.Ctlcontrols.play()


put that at Form1_Load, and of course, change the Location for the path of the sound, and the FileName, for the Filename of the sound and also the Extention for his extention of course.

_________________

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