Hourly Chime with Task Scheduler


  1. Posts : 10
    Windows 10
       #1

    Hourly Chime with Task Scheduler


    I have been trying to setup an hourly chime sound to stop my Logitech Z906 sound system from switching off when no activity on my computer.
    I copied this program that someone had used but cannot get it working on Task Scheduler..
    Option Explicit


    Dim sound : sound = "C:\Windows\Media\Alarm01.wav"

    Dim o : Set o = CreateObject("wmplayer.ocx")
    With o
    .url = sound
    .controls.play
    While .playstate <> 1
    wscript.sleep 100
    Wend
    .close
    End With

    Set o = Nothing

    I saved it in Notepad as a .vbs file on my desktop.

    If I double click on it on my desktop it works fine but not when on Task scheduler.

    The following are my Task Scheduler Settings...

    Hourly Chime with Task Scheduler-general-tab.jpgHourly Chime with Task Scheduler-trigger-tab.jpgHourly Chime with Task Scheduler-action-tab.jpgHourly Chime with Task Scheduler-conditions-tab.jpgHourly Chime with Task Scheduler-settings-tab.jpg

    Can anyone see where I am going wrong?
    Thanks in advance...
      My Computer


  2. Posts : 1,286
    X
       #2

    In the "Edit Action" panel, I think the program should be:
    C:\Windows\system32\cscript

    and the arguments should be:
    "C:\Users\richa\Desktop\Logitech Sound.vbs"
      My Computer

  3. Andrew129260's Avatar
    Posts : 191
    Windows 10 Pro x64 latest version
       #3

    a lot of people are saying if yours is doing this it is defective. Amazon has reviews where the speakers dont auto shut off on them, I would just return it. Why pay $300 for something that doesn't work correctly and needs to be messed with to work?
      My Computers


  4. Posts : 10
    Windows 10
    Thread Starter
       #4

    margrave55 said:
    In the "Edit Action" panel, I think the program should be:
    C:\Windows\system32\cscript

    and the arguments should be:
    "C:\Users\richa\Desktop\Logitech Sound.vbs"
    Thanks margrave55 just tried it and it worked.
    Just need to see if it works every hour and change sound to something quieter.

    - - - Updated - - -

    Andrew129260 said:
    a lot of people are saying if yours is doing this it is defective. Amazon has reviews where the speakers dont auto shut off on them, I would just return it. Why pay $300 for something that doesn't work correctly and needs to be messed with to work?
    I didn't read anywhere or on Amazon that it shouldn't be doing this, other forums like Logitech ones are saying they all have this problem and have done stuff like this.

    I also have spoken to Logitech and they say they are all like that if volume is low it switches off after a while unless you have volume higher which isn't pratical on a PC really.

    I admit it does pee me off having to do this and am tempted to return them but not sure what to buy instead.

    - - - Updated - - -

    @Andrew129260 Just to clarify, Logitech have just told me the following...
    According to European regulations, all loudspeakers sold in the EU must have a sleep mode. Z906 also has one. There is no way to adjust the delay before going into sleep mode. Activation normally takes about 20 to 30 minutes if no audio signal is received.

    However in Logitechs wisdom it isn't a sleep mode it turns the power off completely and you have to press on/off button again to get sound back as it dosen't "wake up" when sound is detected again..!

    This isn't required in USA so I guess that is why you don't have this problem Andrew.. good old EU glad we are getting out of it..lol
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 21:06.
Find Us




Windows 10 Forums