Home Automated Living Forums > HAL Advanced Topic > HALi » need help with HALi DMC

HALi HALi is an Actixe X interface that allow more advanced programming with HAL. Search this forum on how to create HALi Apps as well as find apps that others have already created.

Reply
 
Thread Tools Display Modes
Old 07-29-2008, 04:35 PM   #1
VincentB
Advanced Senior Member
 
VincentB's Avatar
 
Join Date: Jul 2003
Location: Goldcoast, Australia
Posts: 1,208
Default need help with HALi DMC

Anyone used the DMC features of HALi?

I'm trying to add support for DMC into MyServant, and not sure of some of the events.

There's a OnDMCNowPlaying event, but I'm not sure what the provided string is... is it just the song title, or does it also include album, artist, etc?

There's a OnDMCAction event, and I presume it's provided string indicates the last action performed, but does someone have an official list of these actions, with the exact wording (so i can match) ?

There's a OnDMCAlbumCover event.. no idea how to utilise this?
__________________
Regards,
Vincent B

Check out my ultimate HAL plugin - MyServant v6.0
www.futuretouch.com.au/MyServant.asp
VincentB is offline   Reply With Quote
Old 07-30-2008, 08:25 AM   #2
JimMcGowanInlet
Super Moderator
 
JimMcGowanInlet's Avatar
 
Join Date: Jul 2003
Location: NJ
Posts: 3,050
Default Re: need help with HALi DMC

I thought I sent you a copy of the v4 HALi doc???? Not sure what your refering to with the On prefix. I have them as just DMCNowPlaying and DMCAction. the cover art is not in the doc I'll have to ask, but if I had to guess I would think it returns the full path to the cover art filename of the song playing.

DMCNowPlaying Event

Description
Event occurs when the DMC player starts playing a new song.

Syntax
Sub control_DMCNOWPlaying(sUserData As String)
The event parameters are:
Parameter Description
sUserData A string expression that returns the SongName,. Artist, Album, Genre,
Year & Comment from the ID3 Tag of the song.




DMCAction Event

Description
Event occurs when the DMC player state changes.

Syntax
Sub control_DMCAction(sUserData As String)
The event parameters are:
Parameter Description
sUserData A string expression that specifies the new state of the device.

Return Values
The values for sUserData are:
String Description
“PLAY” The DMC Player started playing.
“STOP” The DMC Player stopped playing.
“PAUSE” The DMC Player was paused.
“CONT” The DMC has continued playing from pause
“NEXT” The DMC Player advanced to the next song.
“PREV” The DMC Player moved to the previous song.
“VOLx” The DMC Volume changed where xx = the volume level.
“MUTE” The DMC Mute button was pressed.
“UNMUTE” The DMC Player was unmuted.
“CLOSE” The DMC Player was closed
“QUIT” The DMC Player user quit
“R-ON” The DMC Repeat toggled on.
“R-OFF” The DMC Repeat toggled off.
“C-ON” The DMC Continuous toggled on.
“C-OFF” The DMC Continuous toggled off.
“LOCHANGE:<data>” The DMC Location changed. <data> = New Location
__________________
DISCLAIMER: Use my advice at your own risk. If you are not familiar with how to safely accomplish a task HIRE A PROFESSIONAL. Improper use/installation can cause damage to equipment, fire, electrical problems and in some cases death.
JimMcGowanInlet is offline   Reply With Quote
Old 07-30-2008, 05:51 PM   #3
VincentB
Advanced Senior Member
 
VincentB's Avatar
 
Join Date: Jul 2003
Location: Goldcoast, Australia
Posts: 1,208
Default Re: need help with HALi DMC

thanks Jim... and no i never received the manual.

By the way, the 'On' prefix is a default Visual Studio thing whenever an event hndler is added to an Active-X event. Sorry, didn't mean to include it in my explanation.

By the way, I've done very little testing on the new camera option in HALi. I'll ge stuck into that over te next cople of weeks (I'm going away next week though, for 1 week).
__________________
Regards,
Vincent B

Check out my ultimate HAL plugin - MyServant v6.0
www.futuretouch.com.au/MyServant.asp
VincentB is offline   Reply With Quote
Old 07-30-2008, 06:20 PM   #4
JimMcGowanInlet
Super Moderator
 
JimMcGowanInlet's Avatar
 
Join Date: Jul 2003
Location: NJ
Posts: 3,050
Default Re: need help with HALi DMC

Sorry I thought I sent it to you. I'll send it now. I hope its vacation, enjoy.

I sent it to your Sales email address.
__________________
DISCLAIMER: Use my advice at your own risk. If you are not familiar with how to safely accomplish a task HIRE A PROFESSIONAL. Improper use/installation can cause damage to equipment, fire, electrical problems and in some cases death.

Last edited by JimMcGowanInlet; 07-30-2008 at 06:23 PM.
JimMcGowanInlet is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -6. The time now is 12:41 AM.



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2001-2010 Home Automated Living. All Rights Reserved.