Announcement

Collapse
No announcement yet.

How Can I keep HS Silent after bedtime?

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

    #16
    Thanks

    Comment


      #17
      How can I add the parameter "on" to this script?

      Option Explicit
      Dim strAppPath
      Dim strEXEPath
      strAppPath = hs.GetAppPath
      If (Right(strAppPath, 1) <> "\") Then strAppPath = strAppPath & "\"
      strEXEPath = strAppPath & "scripts\mute.exe"
      Sub Main()
      hs.Launch strEXEPath, "", ""
      End Sub

      Comment


        #18
        Beach,
        Well according to HS, the second field is the parameters.

        So hs.Launch strEXEPath, "on", "" will work.


        <!--(Table)===================================================== ====--><TABLE class=NormalTable style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN-LEFT: 85pt; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: separate; x-border-left: 1px table-solid; x-border-top: 1px table-solid; x-border-right: 1px table-solid; x-border-bottom: 1px table-solid; border-spacing: 0px" cellSpacing=0 x-use-null-cells><TBODY><TR><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #cccccc; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 86.95pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=86 bgColor=#cccccc>Parameter

        </TD><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #cccccc; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 57.5pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=57 bgColor=#cccccc>Type

        </TD><TD style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #cccccc; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 207pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=207 bgColor=#cccccc>Description

        </TD></TR><TR><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 86.95pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=86 bgColor=#f2f2f2>name

        </TD><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 57.5pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=57 bgColor=#f2f2f2>string

        </TD><TD style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 207pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=207 bgColor=#f2f2f2>Is the name of the exe file to launch. It can be a simple application name (the path to the application would have to be in your system path) or it can be a full pathname to the file. Application files can also be launched and the application that owns the file will be executed. For example, you could set the name to "c:\docs

        </TD></TR><TR><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 86.95pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=86 bgColor=#f2f2f2>parameters

        </TD><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 57.5pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=57 bgColor=#f2f2f2>string

        </TD><TD style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 207pt; PADDING-TOP: 0px; BORDER-BOTTOM: #ffffff 2.25pt solid; x-cell-content-align: top" vAlign=top width=207 bgColor=#f2f2f2>Any parameters or command line switches that are to be passed to the application

        </TD></TR><TR><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 86.95pt; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; x-cell-content-align: top" vAlign=top width=86 bgColor=#f2f2f2>direc

        </TD><TD style="BORDER-RIGHT: #ffffff 2.25pt solid; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 57.5pt; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; x-cell-content-align: top" vAlign=top width=57 bgColor=#f2f2f2>string

        </TD><TD style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; PADDING-LEFT: 0px; BACKGROUND: #f2f2f2; PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 207pt; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; x-cell-content-align: top" vAlign=top width=207 bgColor=#f2f2f2>The working directory the application is launched from. Leave an empty string for most applications

        </TD></TR></TBODY></TABLE>


        ~Bill

        Comment


          #19
          Works great Bill. Thanks.

          Comment


            #20
            Originally posted by beach
            Do on to others....
            Peace!


            ~Bill

            Comment

            Working...
            X