コマンドラインから利用できるシンプルなタイマーアプリ

コマンド



& "C:\Program Files (x86)\Hourglass\Hourglass.exe"  1 minutes 

パスが空白を含む場合はクォーテーションをつけて、&またはStart-Processを先頭に付与

よく使うオプション


--title "title"
--always-on-top on
--prompt-on-exit on
--do-not-keep-awake on
--show-in-notification-area on
--lock-interface on

コマンド一覧


Usage: Hourglass.exe [OPTIONS] [<input>]
A simple countdown timer for Windows.

  <input>
        The input used to start the timer.

        For example:
        "5"                     count down for 5 minutes
        "5:30"                  count down for 5 minutes 30 seconds
        "7:30:00"               count down for 7 hours 30 minutes
        "5 minutes"             count down for 5 minutes
        "5 minutes 30 seconds"  count down for 5 minutes 30 seconds
        "7 hours 30 minutes"    count down for 7 hours 30 minutes
        "01/01/20"*             count down until January 1, 2020
        "01/01/2020"*           count down until January 1, 2020
        "January 1, 2020"*      count down until January 1, 2020
        "January 1"*            count down until January 1
        "2 pm"                  count down until 2 pm
        "2:30 pm"               count down until 2:30 pm
        "noon"                  count down until noon
        "midnight"              count down until midnight
        "Friday"                count down until midnight Friday

        * The order of the day, month, and year depends on your system settings.

        Variations of some of these formats are also supported.

Options:
  --title <title>
        Sets the title for the timer.

        Required        no
        Default value   (none)
        Alias           -t

  --always-on-top on|off|last
        Displays the timer window on top of other windows.

        Required        no
        Default value   last
        Alias           -a

  --full-screen on|off|last
        Displays the timer window in full-screen mode.

        Required        no
        Default value   last
        Alias           -f

  --prompt-on-exit on|off|last
        Displays a prompt before closing the timer window.

        Required        no
        Default value   last
        Alias           -o

  --show-progress-in-taskbar on|off|last
        Shows progress in taskbar.

        Required        no
        Default value   last
        Alias           -y

  --do-not-keep-awake on|off|last
        Do not keep the computer awake while the timer is running.

        Required        no
        Default value   last
        Alias           -k

  --show-in-notification-area on|off|last
        Shows an icon for the app in the notification area (system tray).

        Required        no
        Default value   last
        Alias           -n

  --reverse-progress-bar on|off|last
        Reverses the direction of the progress bar, causing it to run backwards.

        Required        no
        Default value   last
        Alias           -g

  --show-time-elapsed on|off|last
        Shows the time elapsed since the timer was started, rather than the
        time left until the timer expires.

        Required        no
        Default value   last
        Alias           -u

  --loop-timer on|off|last
        Loops the timer when it expires.

        Required        no
        Default value   last
        Alias           -l

  --pop-up-when-expired on|off|last
        Pops up the timer window when the timer expires.

        Required        no
        Default value   last
        Alias           -p

  --close-when-expired on|off|last
        Closes the timer window when the timer expires.

        Required        no
        Default value   last
        Alias           -e

  --shut-down-when-expired on|off
        Shuts down windows when the timer expires.

        Required        no
        Default value   off
        Alias           -x

  --theme last|<theme>
        Sets the theme of the timer window.

        You can specify the name of one of the built-in themes, or the name of
        one of the themes that you have defined yourself.

        The built-in themes are:

            red             red-dark
            orange          orange-dark
            yellow          yellow-dark
            green           green-dark
            blue            blue-dark
            purple          purple-dark
            gray            gray-dark
            black           black-dark

        Required        no
        Default value   last
        Alias           -m

  --sound none|last|<sound>
        Plays a sound when the timer expires.

        Required        no
        Default value   last
        Alias           -s

  --loop-sound on|off|last
        Loops the sound that plays when the timer expires.

        Required        no
        Default value   last
        Alias           -r

  --open-saved-timers on|off|last
        Opens all saved timers on start up.

        Required        no
        Default value   last
        Alias           -v

  --prefer-24h-time on|off|last
        When the input used to start the timer contains a time of day that does
        not explicitly specify "am" or "pm", prefer interpreting the input as a
        24-hour time rather than the closest 12-hour time to the current time.

        For example, if the current time is 3:00 pm (15:00) and the input is
        "until 05:00" the timer will --
        - if this setting is on, count down until 5:00 am (05:00); or
        - if this setting is off, count down until 5:00 pm (17:00).

        Required        no
        Default value   last
        Alias           -j

  --window-title none|app|left|elapsed|title|last
        Sets the timer window title.

        The options are:

            none            Hides the timer window title bar.

            app             Application name

            left            Time remaining
            elapsed         Time elapsed
            title           Timer title

            left+title      Time remaining · Timer title
            elapsed+title   Time elapsed · Timer title

            title+left      Timer title · Time remaining
            title+elapsed   Timer title · Time elapsed

        Required        no
        Default value   last
        Alias           -i

  --window-state normal|maximized|minimized|last
        Sets the state of the timer window.

        Required        no
        Default value   last
        Alias           -w

  --window-bounds <left>,<top>,<width>,<height>
        Sets the size and position of the timer window.

        <left> and <top> specify the position of the window's left and top
        edges respectively in relation to the desktop in device-independent
        pixels. If you specify auto for either of the <left> or <top> values,
        the window will be positioned automatically.

        <width> and <height> specify the width and height of the window
        respectively in device-independent pixels. If you specify auto for
        either of the <width> or <height> values, the window will be sized
        automatically.

        Required        no
        Default value   last
        Alias           -b

  --lock-interface on|off
        Prevents the user from starting, pausing, stopping, or restarting the
        timer, changing the timer options, or closing the timer window until the
        timer expires.

        This option is never remembered. It must be specified as a command-line
        argument each time the timer is started.

        Timers that are started with this option turned on never appear in the
        "Saved timers" list.

        Required        no
        Default value   off
        Alias           -z

  --use-factory-defaults
        If specified, any options that are not explicitly set with another
        switch are set to their factory default setting rather than the last
        used setting.

        The factory default settings are:
            --title                         (none)
            --always-on-top                 off
            --full-screen                   off
            --prompt-on-exit                on
            --show-progress-in-taskbar      on
            --do-not-keep-awake             off
            --show-in-notification-area     off
            --reverse-progress-bar          off
            --show-time-elapsed             off
            --loop-timer                    off
            --pop-up-when-expired           on
            --close-when-expired            off
            --shut-down-when-expired        off
            --theme                         blue
            --sound                         normal beep
            --loop-sound                    off
            --open-saved-timers             off
            --prefer-24h-time               off
            --window-title                  app
            --window-state                  normal
            --window-bounds                 auto,auto,350,150
            --lock-interface                off

        Required        no
        Alias           -d

  --help
        Shows this message.

        Required        no
        Alias           -h, -?

参考文献


Hourglass - The simple countdown timer for Windows