Announcement

Collapse
No announcement yet.

HomeAtZuwe you posted in the wrong forum

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

    HomeAtZuwe you posted in the wrong forum

    HomeAtZuwe you posted in the wrong forum. That forum can not be replied to because it is a read only forum for the posting of scripts.


    To answer your question you need to create 2 events. One named StartMP and put a time trigger in it. Then in the scripts to run field on the Scripts/Speech tab put this script:
    Code:
    sub main()
      hs.launch "C:\Program Files\Windows Media Player\wmplayer.exe",""
      hs.waitsecs 2
      hs.keys "%(PP)","Windows Media Player",1
    end sub
    Set up a second event that is triggered by time. Name it StopMP an put this script in the script to run field:
    Code:
    sub main()
      hs.keys "%(PS)","Windows Media Player",1
    end sub
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    #2
    PlugIn

    Do you need an plugin for this?

    Comment


      #3
      Nope no plugin required only WMP on your machine. You use 2 HomeSeer events. Set the events to trigger at your desired time and put the 2 scripts in the script to run field on the scripts/speech tab.
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment


        #4
        Or you can try this...
        Set mp = hs.GetPlugins("Media Player").scripting
        mp.StopPlayer
        set mp = nothing
        Don

        Comment


          #5
          Don,
          That will only work if you have bought and installed the media player plug-in.
          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

          Comment


            #6
            Originally posted by Rupp
            Don,
            That will only work if you have bought and installed the media player plug-in.
            Upps! Your so right. Sorry for the misdirect.:-)
            Don

            Comment

            Working...
            X