INTERACT FORUM

Please login or register.

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

Author Topic: LCD Plugin  (Read 13618 times)

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
LCD Plugin
« on: September 19, 2002, 01:27:05 pm »

While I am trying to work out some details with JimH (who doesnt get any of my emails), I would like to find out what kind of features you guys want in an LCD display program.

I am going to try and interface with LCDC (does everyone want this?) but if it doesnt work out, I am going to just create it all.
Logged
All ICQ's are ignored unless I have added you.

PhatPhreddy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 613
  • Cosmic Comic
Re: LCD Plugin
« Reply #1 on: September 19, 2002, 10:28:05 pm »

Is LCDC the freeware item (not methinks) ?

If you need to base it on a driver model then perhaps basing it on LCDriver which is very commonly used with Girder / DVDSpy / OSD plug in and so NEEDS to be on many HTPC's anyway may be a good idea and avoid conflicts....

What should it be... simple for the end user but allow for multiple field selection and placement within the array...

Must allow easy launching and closure not only within MJ but as a seperate toggle... This sounds odd but think of this, MJ always resides in my System tray due to glissando being launched from other machines so I dont want to have to launch MJ manually... If you dont have a release toggle then MJ hogs the display 24/7 and this is not desired... Perhaps a fallback option would be unload after XX seconds of no updating...

McMM over on the Girder forum was considering reworking his DVDSpy plug ins for easier useage... He really understands VFD usage and programming.. I would suggest some dialogue wold probably really help...
Logged
Phreddy@PhatPhreddy.net ICQ# 168975535
HTPC Front ends  

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #2 on: September 27, 2002, 12:34:45 pm »

Just got my LCDC key from Mat-D-Rat...  :D

Havent heard anything from Henry from MO.  :(

Work is looking pretty light for the next few weeks!
Logged
All ICQ's are ignored unless I have added you.

Henry_MO

  • Regular Member
  • Member
  • *
  • Posts: 4
  • nothing more to say...
Re: LCD Plugin
« Reply #3 on: October 04, 2002, 02:14:36 pm »

I posted a message in the old thread to contact me... but I'm around...

The main reason to use LCDC is this, it has other software support. It can be used to show system stats, winamp visual, IR control, it has allot of features which no other program has!

http://www.lcdforums.com/forums/viewtopic.php?t=610

It's not freeware, but it's the best of the best.

here is a small vid
http://www.matrixorbital.com/temp/LCDC/lcdc.wmv
Logged
Henry J.
Head of Technocal Support
Matrix Orbital

http://www.matrixorbital.com
http://www.lcdforums.com

Henry_MO

  • Regular Member
  • Member
  • *
  • Posts: 4
  • nothing more to say...
Re: LCD Plugin
« Reply #4 on: October 04, 2002, 02:15:33 pm »

Quote
Is LCDC the freeware item (not methinks) ?

If you need to base it on a driver model then perhaps basing it on LCDriver which is very commonly used with Girder / DVDSpy / OSD plug in and so NEEDS to be on many HTPC's anyway may be a good idea and avoid conflicts....

What should it be... simple for the end user but allow for multiple field selection and placement within the array...

Must allow easy launching and closure not only within MJ but as a seperate toggle... This sounds odd but think of this, MJ always resides in my System tray due to glissando being launched from other machines so I dont want to have to launch MJ manually... If you dont have a release toggle then MJ hogs the display 24/7 and this is not desired... Perhaps a fallback option would be unload after XX seconds of no updating...

McMM over on the Girder forum was considering reworking his DVDSpy plug ins for easier useage... He really understands VFD usage and programming.. I would suggest some dialogue wold probably really help...


McMM did add keypad and GPO support to his plugin just recently. He posted on the Girder forum.
Logged
Henry J.
Head of Technocal Support
Matrix Orbital

http://www.matrixorbital.com
http://www.lcdforums.com

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #5 on: October 08, 2002, 11:41:43 am »

Just shiped a very early test to Mat-D-Rat.

;)
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #6 on: October 11, 2002, 01:16:53 pm »

Early test is looking good!

Mat-D-Rat is going away on vacation which puts this on hold for a bit.. more soon!
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #7 on: October 18, 2002, 11:42:25 am »

Does this look like a good list of things to output to the LCD?  Have any other items you would like to see here?



   MJX.sName = mjFile.Name
   MJX.sArtist = mjFile.Artist
   MJX.sAlbum = mjFile.Album
   MJX.lBitrate = mjFile.Bitrate
   MJX.sFileName = mjFile.FileName
   MJX.sGenre = mjFile.Genre
   MJX.bContinuous = mjPlaylist.Continuous
   MJX.bShuffle = mjPlaylist.Shuffle
   MJX.iTrackNumber = mjFile.Tracknumber
   MJX.lDuration = mjFile.Duration
   MJX.sFileType = mjFile.Filetype
   MJX.lBitsPerSample = MJInfo.Bitspersample
   MJX.iChannels = MJInfo.Channels
   MJX.lPosition = MJInfo.Position
   MJX.lSampleRate = MJInfo.Samplerate
   MJX.sState = MJInfo.State
   MJX.iBalance = MJMixer.Balance
   MJX.bEQOn = MJMixer.EQOn
   For i = 0 To 10
       MJX.iEQBand(i) = MJMixer.GetEQBand(i)
   Next
   MJX.bMute = MJMixer.Mute
   MJX.iVolume = MJMixer.Volume
Logged
All ICQ's are ignored unless I have added you.

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 888
Re: LCD Plugin
« Reply #8 on: November 11, 2002, 09:07:36 am »

Any status update on the MJ driver?

I noticed that MO is doing a powerbuy over at the AVS forums and before I jump in, I'm trying to find out how to get the info out of MJ (version 8 and 9) and to the display.

Best,
Brad
Logged

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #9 on: November 12, 2002, 11:29:02 am »

things are picking up again.

be patient.. Mat is in Europe, I am in Seattle.

The msg boards here have been broken for me the last few days.  Even now, I get a script error with every key pressed. Very annoying.

I would write more, but I cant stand it anymore.
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #10 on: November 12, 2002, 11:35:13 am »

hmm, wierd.. all the problems went away.

This site has been wierd lately.

Anyway...

Matt is in Europe, and I am in Seattle, so the time differences have been a major cause of slowness.

The other cause of slowness - our schedules otherwise.  Work here as been busy the past week, and Matt has also been busy.

We are having some issues with data type compatabilities, but are almost over them.  Once that is over, things will happen much quicker.

I am currently having some very mysterious issues with MJ9, so am going to downgrade to 8 if I cant work em out.

I am working on it today, and probly can dedicate more time this week and next.

I have some great ideas for interfacing with Hairstyle.. but admit to them being selfish.. Hairstyle is such a simple interface, and it would easily integrate with the LCD screen and input controls.  So you should be able to navigate the menus without a monitor/tv...  I would love to just turn on the HTPC, and use the LCDC to start playing stuff with no monitor or keyboard or mouse.

Cant wait :)
Logged
All ICQ's are ignored unless I have added you.

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71348
  • Where did I put my teeth?
Re: LCD Plugin
« Reply #11 on: November 12, 2002, 11:44:45 am »

Hey, thanks for the report.  If you're using 9.0.74 o4 75, they can be problems because of registry changes.  76, the latest, is good.
Logged

John Gateley

  • Citizen of the Universe
  • *****
  • Posts: 4957
  • Nice haircut
Re: LCD Plugin
« Reply #12 on: November 12, 2002, 12:29:29 pm »

Hi Cephlen,

I haven't changed anything on the web server. Is it possible it was something on your end?

j

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #13 on: November 12, 2002, 12:32:54 pm »

probably..

corpnet's proxy has been acting up lately..
Logged
All ICQ's are ignored unless I have added you.

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 888
Re: LCD Plugin
« Reply #14 on: November 12, 2002, 12:37:39 pm »

Quote

Matt is in Europe, and I am in Seattle, so the time differences have been a major cause of slowness.

The other cause of slowness - our schedules otherwise.  Work here as been busy the past week, and Matt has also been busy.

[snip]

I have some great ideas for interfacing with Hairstyle.. but admit to them being selfish.. Hairstyle is such a simple interface, and it would easily integrate with the LCD screen and input controls.  So you should be able to navigate the menus without a monitor/tv...  I would love to just turn on the HTPC, and use the LCDC to start playing stuff with no monitor or keyboard or mouse.

Cant wait :)


Great to hear there is progress being made. It seems we share a dream of not needing a monitor/tv to work with MJ. I do have a Pronto-style remote, so I know I could program that and Girder to do most anything, but the simpler, the better in my book!

Can't wait either!

Best,
Brad
Logged

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #15 on: January 10, 2003, 08:44:37 am »

Ok,

I have in my hands a very early LCDC plugin for MJ.

If someone can host images, I would love to post some screenshots.
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #16 on: January 10, 2003, 08:45:28 am »

im pretty psyched :)
Logged
All ICQ's are ignored unless I have added you.

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71348
  • Where did I put my teeth?
Re: LCD Plugin
« Reply #17 on: January 10, 2003, 09:59:59 am »

Cephlen,
If you will zip them up and e-mail to jimh @ jriver.com, I'll put them on our server.

I'd like to see them.

Jim
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71348
  • Where did I put my teeth?
Re: LCD Plugin
« Reply #18 on: January 10, 2003, 11:28:40 am »

Here they are:









Cephlen -- please describe them.  Feel free to put a link to them on the other boards.
Logged

equalizer

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 99
  • When the time comes, you'll know what to do!
Re: LCD Plugin
« Reply #19 on: January 10, 2003, 01:21:21 pm »

where is a good web site to order a good looking LCD at?
Logged

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #20 on: January 10, 2003, 01:31:07 pm »

www.matrixorbital.com

they just got some nice USB lcd's in...
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #21 on: January 10, 2003, 03:07:28 pm »

Thanks Mr. H!

:o
This image shows off the LCDC output options that are available.  There is some fine tuning to be done here still, but this is about everything I could get out of MJ8.

:o
This image shows off the MJ icon in the LCDC program.  I think it looks at home there!  The display is showing off Song Name and Artist Name.

:o
And finally, this one is displaying Album Name and Genre.
Logged
All ICQ's are ignored unless I have added you.

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 888
Re: LCD Plugin
« Reply #22 on: January 10, 2003, 08:33:43 pm »

Must......acquire.....test......build.......in order to......save.......world.....!

:)

I guess I'll have to dig out that LCDC registration code I got from a MO powerbuy after all. Then the dremelling begins....

Best,
Brad
Logged

nzjrs

  • Regular Member
  • Member
  • *
  • Posts: 1
  • nothing more to say...
Re: LCD Plugin
« Reply #23 on: February 03, 2003, 09:49:40 pm »

Hey,

I am eagerly awaiting the release of this plugin......... any idea when it will be finished??

Your efforts are very very much appreciated
Logged

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #24 on: February 04, 2003, 08:34:41 am »

I am having some issues with things here.  Not at all related to the plugin, of course :)

I cant give you a date, but I am wiping out my computer today and can, perhaps, give you a date later this week.

Just keep your fingers crossed that rebuilding this machine will fix the issues :)
Logged
All ICQ's are ignored unless I have added you.

Mat-d-Rat

  • Guest
Re: LCD Plugin
« Reply #25 on: February 20, 2003, 01:29:33 am »

Hi ya

Tried to e-mail you today but your e-mail account bouced me :(  (failed devlivery to the MS thingy one)

Can you ICQ me - or mail me or something, about time we got this one nailed :)
Logged

PhatPhreddy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 613
  • Cosmic Comic
Re: LCD Plugin
« Reply #26 on: March 12, 2003, 12:51:19 am »

Is this project moving anywhere....

I was thinking of trying to commit more time to my Girder GML including DVDSpy but it really twists my melons and if there is an easy route likely soon I would much rather not bother :D !!!
Logged
Phreddy@PhatPhreddy.net ICQ# 168975535
HTPC Front ends  

Mat-d-Rat

  • Guest
Re: LCD Plugin
« Reply #27 on: March 12, 2003, 01:03:20 am »

Trying to sort out some final details, but I've been unable to get the MJ plugin side to work on my system :( and the trial is running out, which makes it hard to finish developing.
Logged

Bryan

  • Regular Member
  • World Citizen
  • ***
  • Posts: 145
Re: LCD Plugin
« Reply #28 on: May 24, 2003, 08:33:20 pm »

Hey,  I just got a new case with a VFD display in it so I came to the forum and did a search on LCD and ended up here....  This is exactly what need..  I'll gladly buy someone a 12-pack if this thing can become a reality..   :D

What's the latest word on this ?

thx
bryan
Logged

Cyndrax

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Trying desperately to get it all together...
Re: LCD Plugin
« Reply #29 on: May 30, 2003, 01:39:30 am »

Hell Yeah, this is exactly what I need!  I have considered moving away from Media Center, because of the lack of an easy LCD plugin.

If you need money to purchase a copy of MJ/MC Mat-D-Rat, I would be willing to throw a few bucks into the pot.

Brian
Logged

Mat-d-Rat

  • Guest
Re: LCD Plugin
« Reply #30 on: May 30, 2003, 02:08:44 am »

The biggest problem was that I could never get teh MJ plugin part working on my system, so I could never fully develop or move on with my end of the plugin. There is a basic there but I can't test it, so I don't know if it would work, but Cephlen does have a working copy.
Logged

PhatPhreddy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 613
  • Cosmic Comic
Re: LCD Plugin
« Reply #31 on: May 30, 2003, 09:07:13 pm »

I of course would be willing to help in any way with testing etc....

Have a MO display working with DVDSpy (a little) and Zoom Player (fine)... Really I only need MC and it would be perfect...
Logged
Phreddy@PhatPhreddy.net ICQ# 168975535
HTPC Front ends  

Cyndrax

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Trying desperately to get it all together...
Re: LCD Plugin
« Reply #32 on: May 30, 2003, 09:32:15 pm »

How difficult would it be to take what is currently out there and make it work properly?  I am not a particulary competent programmer, but I have a little time on my hands right now.

Brian
Logged

Mat-d-Rat

  • Guest
Re: LCD Plugin
« Reply #33 on: June 02, 2003, 08:00:09 am »

Well I'd love to get this finished as well :) nice to have support for as many things as possible. However every time I click on the plugin within MJ8 (8.0.399) all I get is "Interface Plug-in'LCDocx' must implement | Unknown interface" :( I guess I could look at trying to write my own MJ8 plugin end but it's so much quicker when you have two people doing the work! Or if anyone else wants to try and write a plugin for me to test let me know :)
Logged

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #34 on: June 02, 2003, 09:06:32 am »

grrrr,  I got a "your message is too long go back and shorten it" message.  I went back, and all my text was gone.
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #35 on: June 02, 2003, 09:07:29 am »

functions:

Private Type SECURITY_ATTRIBUTES
       nLength As Long
       lpSecurityDescriptor As Long
       bInheritHandle As Long
End Type
Dim Tmp_Attr As SECURITY_ATTRIBUTES

Private Declare Function CreateFileMapping Lib "kernel32" Alias _
"CreateFileMappingA" (ByVal hFile As Long, lpFileMappigAttributes As _
SECURITY_ATTRIBUTES, ByVal flProtect As Long, ByVal dwMaximumSizeHigh As _
Long, ByVal dwMaximumSizeLow As Long, ByVal lpName As String) As Long


Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Declare Function MapViewOfFile Lib "kernel32" (ByVal _
hFileMappingObject As Long, ByVal dwDesiredAccess As Long, ByVal _
dwFileOffsetHigh As Long, ByVal dwFileOffsetLow As Long, ByVal _
dwNumberOfBytesToMap As Long) As Long
Private Declare Function UnmapViewOfFile Lib "kernel32" (lpBaseAddress As _
Any) As Long
Private Declare Function OpenFileMapping Lib "kernel32" Alias _
"OpenFileMappingA" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As _
Long, ByVal lpName As String) As Long
Private Declare Function GetLastError Lib "kernel32" () As Long

Const PAGE_READONLY = &H2
Const PAGE_READWRITE = &H4
Const ERROR_ALREADY_EXISTS = 183&


Const STANDARD_RIGHTS_REQUIRED = &HF0000
Const SECTION_MAP_READ = &H4
Const SECTION_MAP_WRITE = &H2
Const SECTION_EXTEND_SIZE = &H10
Const SECTION_MAP_EXECUTE = &H8
Const SECTION_QUERY = &H1
Const SECTION_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED Or SECTION_QUERY Or _
SECTION_MAP_WRITE Or SECTION_MAP_READ Or SECTION_MAP_EXECUTE Or _
SECTION_EXTEND_SIZE

Const FILE_MAP_ALL_ACCESS = SECTION_ALL_ACCESS
Const FILE_MAP_READ = SECTION_MAP_READ
Const FILE_MAP_WRITE = SECTION_MAP_WRITE

Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
(Destination As Long, ByRef Source As Byte, ByVal Length As Long)
Private Declare Sub CopyMemoryToStr Lib "kernel32" Alias "RtlMoveMemory" _
(ByRef Destination As Byte, Source As Long, ByVal Length As Long)
Private Declare Function lstrcpy Lib "kernel32" Alias "lstrcpyA" (lpString1 _
As Byte, lpString2 As Any) As Long
Private Declare Sub CopyMemoryWrite Lib "kernel32" Alias "RtlMoveMemory" (ByVal Destination As Long, Source As Any, ByVal Length As Long)



Public Type MJMain
   sName As String * 100
   sArtist As String * 100
   sAlbum As String * 100
   lBitrate As String * 5
   sFileName As String * 100
   sGenre As String * 50
   bContinuous As String * 1
   bShuffle As String * 1
   iTrackNumber As String * 4
   lDuration As String * 5
   sFileType As String * 50
   lBitsPerSample As String * 5
   iChannels As String * 2
   lPosition As String * 5
   lSampleRate As String * 5
   iState As String * 1 'Description: the current playback state (PLAYSTATE_STOPPED - Stopped, PLAYSTATE_PAUSED - Paused, PLAYSTATE_PLAYING -  Playing, PLAYSTATE_WAITING - Waiting)
   iBalance As String * 3
   bEQOn As String * 1
   iEQBand0 As String * 4
   iEQBand1 As String * 4
   iEQBand2 As String * 4
   iEQBand3 As String * 4
   iEQBand4 As String * 4
   iEQBand5 As String * 4
   iEQBand6 As String * 4
   iEQBand7 As String * 4
   iEQBand8 As String * 4
   iEQBand9 As String * 4
   iEQBand10 As String * 4
       'nBand: the equalizer band (0 = preamp, 1 - 10 = eq bands)
       'Return Value: value of the specified band (-100 to 100 where -100 is full cut, 0 is no gain, and 100 is full gain)
   bMute As String * 1
   iVolume As String * 4
   iPlaylistPosition As String * 4
   iNumberOfFiles As String * 5
   sCustom1 As String * 100
   sCustom2 As String * 100
   sCustom3 As String * 100
End Type

Dim hMapPoint As Long
Public MJX As MJMain

Public Sub SetSharedData()
   CopyMemoryWrite hMapPoint, MJX, Len(MJX)
End Sub


Public Sub InitSharedData()

   Dim ret As Long
   hFileMapTable = CreateFileMapping(CLng(&HFFFFFFFF), Tmp_Attr, PAGE_READWRITE, 0, 100, "MJ2LCDC")

   If hFileMapTable = 0 Then
       MsgBox "FileMapping Error"
       Exit Sub
   End If

   If GetLastError() = ERROR_ALREADY_EXISTS Then
       MsgBox "Already Exist Error"
       CloseHandle hFileMapTable
   End If

   hMapPoint = MapViewOfFile(hFileMapTable, FILE_MAP_WRITE, 0, 0, 0)
   If hMapPoint = 0 Then
       MsgBox "Can't map view of file!"
       CloseHandle hFileMapTable
       Exit Sub
   End If
   
End Sub

Sub CloseSharedData()
   'UnmapViewOfFile hMapPoint
   'CloseHandle hMapPoint
   'MsgBox "die"
End Sub
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #36 on: June 02, 2003, 09:08:22 am »

The form with all functionality commented out:

Dim g_MJ As MediaJukebox.MJAutomation
Public Function Init(ByVal MediaJukebox As Object)
   MsgBox "init start"
   ' set the global Media Jukebox object on init
   ' (Media Jukebox will call this function when the plugin starts)
   Set g_MJ = MediaJukebox
   MsgBox "init done"
    Timer1.Enabled = True
   
End Function

Private Sub cmdInterval_Click()
   Timer1.Interval = txtInterval.Text
End Sub

Private Sub Timer1_Timerxxxx()
   MsgBox "click"
   imgGo.Visible = True
   imgStop.Visible = False
   
   On Error Resume Next
   Dim MJInfo As MediaJukebox.MJPlaybackAutomation
   Set MJInfo = g_MJ.GetPlayback
   
   Dim mjFile As MediaJukebox.MJFileAutomation
   Dim mjPlaylist As MediaJukebox.MJCurPlaylistAutomation

   Set mjPlaylist = g_MJ.GetCurPlaylist
   
   CurrentlyPlaying = mjPlaylist.Position
   
   Set mjFile = mjPlaylist.GetFile(CurrentlyPlaying)
   
   Dim MJMixer As MediaJukebox.MJMixerAutomation
   
   Set MJMixer = g_MJ.GetMJMixer
           
       
   MJX.sName = mjFile.Name
   MJX.sArtist = mjFile.Artist
   MJX.sAlbum = mjFile.Album
   MJX.lBitrate = mjFile.Bitrate
   MJX.sFileName = mjFile.FileName
   MJX.sGenre = mjFile.Genre
   MJX.bContinuous = mjPlaylist.Continuous
   MJX.bShuffle = mjPlaylist.Shuffle
   MJX.iTrackNumber = mjFile.Tracknumber
   MJX.lDuration = "12:32" 'mjFile.Duration
   MJX.sFileType = mjFile.Filetype
   MJX.lBitsPerSample = MJInfo.Bitspersample
   MJX.iChannels = MJInfo.Channels
   MJX.lPosition = "12:33" 'MJInfo.Position
   MJX.lSampleRate = MJInfo.Samplerate
   MJX.iState = MJInfo.State
   MJX.iBalance = MJMixer.Balance
   MJX.bEQOn = MJMixer.EQOn
   MJX.iEQBand0 = MJMixer.GetEQBand(0)
   MJX.iEQBand1 = MJMixer.GetEQBand(1)
   MJX.iEQBand2 = MJMixer.GetEQBand(2)
   MJX.iEQBand3 = MJMixer.GetEQBand(3)
   MJX.iEQBand4 = MJMixer.GetEQBand(4)
   MJX.iEQBand5 = MJMixer.GetEQBand(5)
   MJX.iEQBand6 = MJMixer.GetEQBand(6)
   MJX.iEQBand7 = MJMixer.GetEQBand(7)
   MJX.iEQBand8 = MJMixer.GetEQBand(8)
   MJX.iEQBand9 = MJMixer.GetEQBand(9)
   MJX.iEQBand10 = MJMixer.GetEQBand(10)
   MJX.bMute = MJMixer.Mute
   MJX.iVolume = MJMixer.Volume
   
   MJX.iPlaylistPosition = mjPlaylist.Position
   MJX.iNumberOfFiles = mjPlaylist.GetNumberFiles
   MJX.sCustom1 = mjFile.Custom1
   MJX.sCustom2 = mjFile.Custom2
   MJX.sCustom3 = mjFile.Custom3
   
   If Err.Number <> 0 Then
       MsgBox Err.Description
       
   End If
   SetSharedData
 
   imgGo.Visible = False
   imgStop.Visible = True
End Sub

Private Sub UserControl_Initialize()
   MsgBox "init2 start"
   Timer1.Interval = txtInterval.Text
   MsgBox "init shared data start"
   'InitSharedData
   MsgBox "init2 & shared data done"
End Sub

Private Sub UserControl_Terminate()
   CloseSharedData
End Sub
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #37 on: June 02, 2003, 09:12:06 am »

So anyway... lets see.. what did I type..

Brief, but to the point.

Longhorn and old VB are not getting along with eachother.  Is the MJ working with a windows control using .Net yet?  OCX's are dead now.

If someone else wants to tinker, go ahead.  Would be nice to setup CVS so we can all do it.  Can anyone do that?

I dont know why Mat can not run the control.  As you can see, all but very basic functionality was commented out, yet he still got those very uninformitive errors.
Logged
All ICQ's are ignored unless I have added you.

Mat-d-Rat

  • Guest
Re: LCD Plugin
« Reply #38 on: June 02, 2003, 09:15:03 am »

Yep any help would be most welcome :)
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: LCD Plugin
« Reply #39 on: June 02, 2003, 09:20:13 am »

>> Is the MJ working with a windows
>> control using .Net yet?  OCX's are dead now.
have you tried MC9 and Vb .Net 2003 to see if it works?

VB net as you say does not create OCX and i can't get MC9 to see the new dll

I can't figure it out.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #40 on: June 02, 2003, 09:30:26 am »

I have not gotten any .net to work with the MJ, but its been a while.

knowing what little I know about the MJ, going from an OCX to a windows control might be a big jump, code wise, for them.

you guys see anything in that code that would produce errors?  I just dont understand why it works fine on my machine, but not on mat's.  We even installed the runtime dll's on his machine.

Does it work on yours sparta?
Logged
All ICQ's are ignored unless I have added you.

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: LCD Plugin
« Reply #41 on: June 02, 2003, 09:58:59 am »

>> Does it work on yours sparta?
nope, but I was hoping it was due to me being as dumb as a rock or something.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #42 on: June 02, 2003, 10:09:06 am »

lol, but you got it to compile a-ok?

I got a button called cmdInterval
Timer control: Timer1
TextBox: txtInterval
Logged
All ICQ's are ignored unless I have added you.

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Re: LCD Plugin
« Reply #43 on: June 02, 2003, 10:34:37 am »

if your talking about his project yes, but there are somethings items info missing. so no i could not get it to work.

what would help woould be a ziped up file and not code pasted to the forum.

==================================

I was more refering to getting VB .Net 2003 to work with MC9
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

Cyndrax

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Trying desperately to get it all together...
Re: LCD Plugin
« Reply #44 on: June 02, 2003, 12:19:30 pm »

Unfortunately, it looks we are beyond my ability to provide much help with the programming, however I have a working copy of Media Center 9 and a working copy of LCDC installed on my system.  If there is a compiled version of the plugin around, I can test it on my system.
Logged

PhatPhreddy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 613
  • Cosmic Comic
Re: LCD Plugin
« Reply #45 on: June 02, 2003, 07:47:02 pm »

If you guys can get co-ordinated...

Perhaps apost over on AVS to recruit some codeing assistance may be useful...

We tend to have a pretty high geek ratio and this is a well deserved project... Working collaboratively with a CVS sounds like its your best shot...

Just a thought..

Logged
Phreddy@PhatPhreddy.net ICQ# 168975535
HTPC Front ends  

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #46 on: June 03, 2003, 08:24:25 am »

Any word on .NET and MJ?
Logged
All ICQ's are ignored unless I have added you.

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: LCD Plugin
« Reply #47 on: June 03, 2003, 08:27:06 am »

Cyndrax,  actually, this is a pretty simple project.

If you got vb6, create a new activex control.

Open the form, add the controls that I specified and name them too (a text box, button, timer, etc..)

Add a reference to the mj's library.

Add a class to the project and use all that wierd code.  The wierd code works great and you shouldnt really have to fiddle in there at all.

Anyone got FTP or something?  I can upload the project files.
Logged
All ICQ's are ignored unless I have added you.

Cyndrax

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Trying desperately to get it all together...
Re: LCD Plugin
« Reply #48 on: June 03, 2003, 09:56:01 am »

Quote
Anyone got FTP or something?  I can upload the project files.


I have a site I can host the files at.  There isn't direct FTP access to the box, so you can't put them there.  If you email them to me I'll put them up and provide a link here.

Brian at brainsinaknot dot com
Logged

Cyndrax

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Trying desperately to get it all together...
Re: LCD Plugin
« Reply #49 on: June 03, 2003, 09:59:24 am »

Quote
If you got vb6, create a new activex control.

Open the form, add the controls that I specified and name them too (a text box, button, timer, etc..)

Add a reference to the mj's library.

Add a class to the project and use all that wierd code.  The wierd code works great and you shouldnt really have to fiddle in there at all.


Does MJ need to be installed on the same box as VB 6?  Do I want to leave the commented lines commented out, or was that part of the attempted fix for Mat?

Thanks!

Brian
Logged
Pages: [1] 2   Go Up