Announcement

Collapse
No announcement yet.

Setting SD Volume

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting SD Volume

    There are a few requests for volume changing mods that I would like to help out with. I am trying to set the volume in a digitalmod with:

    app.SetVolume(eVTMaster, vol)

    It gives me an error "Cannot us parentheses when calling a Sub".

    What is the proper way to do this? I know app.GetVolume(eVTMaster) will give me the volume value, so it seems I should be able to use the same volume type to set it. Please help!

    Also, where can I get a list of dynamic string values that we have access to using GetDynamicStringValue?

    There is also a bug in the Dev Environment that crashes it when typing "app.GetVolume(" and changing the values in the parentheses. It is easily reproducible.

  • #2
    sub procedures should not use parenthesis in visual basic, you should use app.SetVolume eVTMaster, vol

    All enumerations can be extracted from the built in type library using the visual studio OLE/COM object viewer.

    The following in the enumDynamicLabelType enumeration.

    //Dynamic Label values for CDynamicLabelPanel
    typedef [helpstring("The type of values that can be used for dynamic labels and App.GetDynamicStringValue.")]
    enum {
    eDLTDate,
    eDLTTime,

    eDLTLastFunction,

    eDLTMediaTitle,
    eDLTMediaArtist,
    eDLTMediaTimeLeft,
    eDLTMediaChannel,
    eDLTMediaType,
    eDLTVolume,
    eDLTMute,
    eDLTMediaTime,
    eDLTMediaDuration,
    eDLTMediaState,
    eDLTMediaStateNoPlayPause,
    eDLTMediaPlaySpeed,
    eDLTRecordSavingPercent,

    eDLTNAVStreetNoNumber,
    eDLTNAVStreet,
    eDLTNAVCityStateZip,
    eDLTNAVSpeed,
    eDLTNAVHeading,
    eDLTNAVLatitude,
    eDLTNAVLongitude,
    eDLTNAVAltitude,
    eDLTNAVDistanceTravelled,
    eDLTNAVTimeOnRoad,
    eDLTNAVTimeDriving,
    eDLTNAVTimeStopped,
    eDLTNAVMaxSpeed,

    eDLTNAVAction,
    eDLTNAVFullDirection,
    eDLTNAVNextStreet,
    eDLTNAVAlternateNextStreet,
    eDLTNAVSecondStreet,
    eDLTNAVThirdStreet,
    eDLTNAVETA,
    eDLTNAVDistanceToNextDirection,
    eDLTNAVTimeToNextDirection,
    eDLTNAVDistanceToSecondStreet,
    eDLTNAVDistanceToThirdStreet,

    eDLTNAVDestLatitude,
    eDLTNAVDestLongitude,
    eDLTNAVDestName,
    eDLTNAVDestStreet,
    eDLTNAVDestCityStateZip,
    eDLTNAVDestCountry,
    eDLTNAVDestPhone,
    eDLTNAVDistanceToDest,
    eDLTNAVTimeToDest,

    eDLTNAVClickedLocationLatitude,
    eDLTNAVClickedLocationLongitude,
    eDLTNAVClickedLocationName,
    eDLTNAVClickedLocationStreet,
    eDLTNAVClickedLocationCityStateZip,
    eDLTNAVClickedLocationCountry,
    eDLTNAVDistanceToClickedLocation,

    eDLTNAVVirtualEarthMode,
    eDLTNAVVirtualEarthDownloadProgress,
    eDLTNAVVirtualEarthDownloadRate,
    eDLTNAVVirtualEarthZoomLevel,


    eDLTRipMediaPercentComplete,
    eDLTRipMediaKBCopied,
    eDLTRipMediaFileCount,
    eDLTRipMediaStatus,
    eDLTRipMediaFileName,

    eDLTVoiceRecognitionText,
    eDLTVoiceHypothesisText,

    eDLTBlueToothProvider,
    eDLTBlueToothStatusLine1,
    eDLTBlueToothStatusLine2,
    eDLTBlueToothCallName1,
    eDLTBlueToothCallName2,
    eDLTBlueToothCallName3,
    eDLTBlueToothIncomingCallName,
    eDLTBlueToothIsMuted,

    eDLTHWStatusParkingBrake,
    eDLTHWStatusReverseGear,
    eDLTHWStatusACC,
    eDLTHWStatusILL,
    eDLTHWStatusMonitorSlideLength,
    eDLTHWStatusMonitorTiltAngle,
    eDLTHWStatusMonitorMode,
    eDLTHWStatusMonitorBrightness,
    eDLTHWStatusTemperature,
    eDLTHWStatusBattVoltage,

    eDLTMediaTypeRear,
    eDLTMediaTitleRear,
    eDLTMediaArtistRear,
    eDLTMediaTimeLeftRear,
    eDLTMediaChannelRear,
    eDLTVolumeRear,
    eDLTMediaTimeRear,
    eDLTMediaDurationRear,
    eDLTMediaStateRear,
    eDLTMediaPlaySpeedRear,
    eDLTMediaModeRear,

    eDLTCount
    } enumDynamicLabelType;
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

    Comment


    • #3
      Thank you! This is great! It showed parentheses in the pop-up help so that's what threw me. I am not using Visual Studio, just the Dev Environment, which is great in my opinion. So my ideas, so little time...

      Comment


      • #4
        I got the Microsoft OLE/COM Object Viewer, but I can't find any reference to Streedeck in it. Where is it?

        Can you give me an example with explanation of using the Label.SetFont expression? I want to change the color of a label dynamically.

        Is there a way to extract the enumerations as you showed me with VBS?

        Comment


        • #5
          god_of_cpu

          god_of_cpu,

          Can you help me on this?

          Comment

          Working...
          X