INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: labels in VB  (Read 2172 times)

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
labels in VB
« on: September 27, 2003, 05:49:53 am »

hi
whats the easyest way to rename a label to the title mc is playing???

Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: labels in VB
« Reply #1 on: September 27, 2003, 06:44:55 am »

I dont understand the question
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re: labels in VB
« Reply #2 on: September 27, 2003, 06:50:44 am »

if i make a
Code: [Select]

label1.caption = (SOMETHING)



SOMETHING shall be the title of the playing song
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re: labels in VB
« Reply #3 on: September 27, 2003, 07:00:50 am »

oh

I don't think there is a direct way in doing this

I do not remember how it can be done but i know it can be.

if you remember someone made a "Listening to:" plug-in and i asked him how he did it and he told me but i lost the message.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re: labels in VB
« Reply #4 on: September 27, 2003, 12:35:05 pm »

anyone?
i just need to know what command i need to get the title, artist etc on my plugin...

i cant find out the automation
hehe
i think its something like
MJFileAutomation.Name()
but i cant get it work :s
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

Soundman

  • Regular Member
  • World Citizen
  • ***
  • Posts: 155
  • Go Music!
Re: labels in VB
« Reply #5 on: September 29, 2003, 06:14:11 pm »

Hi, Mouseman.  Try this....

cmjAutomation = 'whatever VB code you need to get ahold of a CMJAutomation COM object
curPlaylistAutomation = cmjAutomation.GetCurPlaylist()
curPlayingNowIndex = curPlaylistAutomation.Position() 'this is an integer
curFile = curPlaylistAutomation.GetFile(curPlayingNowIndex)  'Now you have a CMJFileAutomation object.
titleLabel.caption = curFile.Name()
artistLabel.caption = curFile.Artist()
albumLabel.caption = curFile.Album()
' etc. etc.


The above is untested code, as I do not use VB, but hopefully the idea is clear.

Regards,
Soundman
Logged

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re:labels in VB
« Reply #6 on: November 10, 2003, 03:03:28 am »

still haveing alot of problems.. i have looked abit at the busybox sdk
and come up with

    Dim MJCurPlaylist As MediaJukebox.MJCurPlaylistAutomation
    Set MJCurPlaylist = g_MJ.GetCurPlaylist
        ' get the file
        Dim MJFile As MediaJukebox.MJFileAutomation
        Set MJFile = MJCurPlaylist.GetFile(z)
   Label1.Caption = MJFile.Name



but its not what i need... i need it to display what song im playing right now..


Thanks soundman BUT i cant undestand your code hehe :s
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

nila

  • Guest
Re:labels in VB
« Reply #7 on: November 10, 2003, 05:15:33 am »

It's pretty easy to do :)

Have a look at the Example (BusyBox) for how to get the info on the playing now tracks.

Then just assign the name of the file to the label.

Logged

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re:labels in VB
« Reply #8 on: November 10, 2003, 07:17:02 pm »

can anyone make an exampel?
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk
Pages: [1]   Go Up