------------------------------------------------------------------------------
    Clock4Win Ver.1.04

    PC launcher support Wake on LAN 

                             Copyright(C) 2009-2022 GUSUKU All Rights Reserved
------------------------------------------------------------------------------
                                                      Last updatedF2022/04/03

[Overview]

    This software is a clock application with timer, alarm and stopwatch 
    functions.

    I was looking for a timer and stopwatch that can change the resolution in
    about
    10ms to 1 second, but I couldn't find it, so I made it myself.

    I added the function of the clock in the beginning, but recently I wanted
    to make the clock resident, so I added the function to display in the form
    of an analog clock to what was initially only a digital display. 

    The timer and stopwatch were created with the aim of measuring up to about
    10ms, but the timer function of Windows cannot be expected to have very
    fine accuracy, and there is no choice but to manually operate the start and
    stop, so the operation aspect However, I found that I couldn't expect
    accuracy, so I can't expect much in that area.

    In the case of analog clock display, the second hand moves in 1 second 
    increments in the "clock" and "timer" modes, and in the stopwatch mode, 
    the second hand is updated in 1/5 second (0.2 seconds) increments.

    I also added a function to put it in the task tray and a function to
    register it in the startup, and now the function called the analog clock
    that resides on the desktop has become the main function.

    The display format can be switched between digital clock and analog clock,
    and several patterns of dial display methods are available.

    The timer for analog display starts from the state where the set time is 
    displayed in hours, minutes, and seconds, and is displayed to rotate in the
    reverse direction toward 0:00:00.

    I also added an alarm function to specify the time, so I hope that you can
    register it in the startup and use it as a clock that resides on your
    desktop. 

[Operating Environment]
    Windows 7, Windows 10

[Configuration file]

    The following files are generated when you extract the archive.

        Clock4Win.exe        Program file
        Readme-jp.txt        Document file written in Japanese.
        Readme-en.txt        This file

    Note:
        This file was converted to English using google translation the 
        Readme-jp.txt written in Japanese.

[Installation]

    Please put in the appropriate folder Clock4Win.exe.
    You do not need special installation.

    However, if you place the Clock4Win.exe file in the C:\Program Files or
    C:\Program Files(x86) folder, the configuration file cannot be saved unless
    you run the program as an administrator, so place it in another folder. 

    When you start Clock4Win.exe for the first time, a configuration file named
    Clock4Win.ini is created in the same folder as Clock4Win.exe.

    All settings of this program are set in the context menu (pop-up menu). 

[Uninstall]

    To uninstall, just delete the executable Clock4Win.exe and Clock4Win.ini
    created in the same folder. 

    If you have added it to the startup, uncheck "Add to startup" in the 
    "Settings" menu in the program menu before deleting it.

    The "Add to Startup" feature only creates a shortcut for his Clock4Win.exe
    in the Startup folder in the user's Start menu, so you can also remove it
    by deleting the shortcut. 

[How to use]

    Start Clock4Win.exe that you copied to any folder.

    To use the functions of this program, use the context menu displayed by
    clicking the right mouse button on the window of this program. 

[Startup parameters ]

    You can specify the file name of the configuration file as an argument of
    the command.

    By specifying the configuration file name, the same program can be started
    with different settings.

    In that case, the setting changes during startup are saved in the specified
    setting file.

    If you specify the setting file after the link destination in the property
    of the shortcut, you can start and use the timer and stopwatch while
    displaying the clock on the desktop.

    The configuration file extension must be .ini.

    If the specified file name is not the full path, the file in the same
    folder as the executable file will be used. 

[Explanation of screen]

    When this program is started for the first time, a circular analog clock
    screen is displayed.

    When you move the mouse cursor over the displayed analog clock window and
    click the right button, the following context menu will be displayed. 
    You can execute the program functions by selecting an item in that menu.

    The functions of the context menu are explained below. 

[Context menu]

    This menu is displayed by clicking the right mouse button.
    The context menu has the following items: 

    [Mode]
        Select the following modes.

        [Clock]
            Set to clock mode.

        [Timer]
            Set to timer mode.

        [Stopwatch]
            Set to stopwatch mode.

    [View]
        Displays a submenu related to display.

        [Color settings]
            Displays a submenu for basic color settings.

            [Text color ...]
                Display the color setting dialog and set the text color.
                The characters of the digital clock and analog clock are
                displayed in the set color. 

            [Background color ...]
                Display the color setting dialog and set the background color.
                The background of the digital clock and analog clock is
                displayed in the set color. 

            [Alarm background color ...]
                Display the color setting dialog and set the alarm background
                color.
                The blinking background for digital and analog clock alarms is
                displayed in the set color.
                For analog clocks, it is displayed in a translucent color.

            [Transparent background]
                Makes the dial background transparent.
                Since blue is used as the transparent color, if blue is used
                for the color of hands, letters, scales, etc., that part may
                be transparent. 

        [Font ...]
            Displays a dialog for selecting a font.

            In the selected font, the date and time, timer time, elapsed time
            of the stopwatch, etc. are displayed, and the characters on the 
            dial of the analog clock are displayed.

            For digital clocks, the selected font size is used as is, but for
            analog clocks, the font size is adjusted according to the screen
            size. 

        [Analog clock settings]
            Displays a submenu related to analog clock settings. 

            [Frame color ...]
                Display the color setting dialog and set the color of the frame
                of the analog clock. 

            [Frame edge color ...]
                Display the color setting dialog and set the border color of
                the analog clock frame.

            [Tick scale color ...]
                Display the color setting dialog and set the color of the tick
                scale of the analog clock. 

            [Clock hand color ...]
                Display the color setting dialog and set the color of the hour
                and minute hands of the analog clock. 

            [Clock hand border]
                Set the drawing ON / OFF of the clock hand border.
                The color specified in "Clock hand border color" is used for the
                border color. 

            [Clock hand border color ...]
                Display the color setting dialog and set the border color of
                the hour and minute hands of the analog clock.
                This is effective when it is difficult to see when the hour and
                minute hands overlap. 

            [Second hand color ...]
                Displays the color setting dialog and sets the color of the
                second hand of the analog clock. 

            [Show second hand]
                 Set the display ON / OFF of the second hand. 

            [Clock hand type]
                Displays a submenu for selecting the type of hands of an analog
                clock. 

                [Sword (Thick)]
                    The hands of the analog clock are displayed in the shape
                    of a sword.
                    Even if the border color of the needle is the same as the
                    background color, draw a little thicker so that the hands
                    does not collapse.

                [Sword (Thin)]
                    The hands of the analog clock are displayed in the shape
                    of a sword.
                    If the color of the needle border is the same as the color
                    of the needle, draw a little thinner so that the hands does
                    not become too thick.

                [Squre (Thick)]
                    Displays the hands of an analog clock as an elongated
                    rectangle.
                    Even if the border color of the needle is the same as the
                    background color, draw a little thicker so that the hands
                    does not collapse.

                [Squre (Thin)]
                    Displays the hands of an analog clock as an elongated
                    rectangle.
                    If the color of the needle border is the same as the color
                    of the needle, draw a little thinner so that the hands does
                    not become too thick.

                [Arrow (Thick)]
                    The hands of an analog clock are displayed in the form of
                    arrows.
                    Even if the border color of the needle is the same as the
                    background color, draw a little thicker so that the hands
                    does not collapse.

                [Arrow (Thin)]
                    The hands of an analog clock are displayed in the form of
                    arrows.
                    If the color of the needle border is the same as the color
                    of the needle, draw a little thinner so that the hands does
                    not become too thick.

                [Leaf (Thick)]
                    The hands of the analog clock are displayed in a leaf
                    shape.
                    Even if the border color of the needle is the same as the
                    background color, draw a little thicker so that the hands
                    does not collapse.

                [Leaf (Thin)]
                    The hands of the analog clock are displayed in a leaf
                    shape.
                    If the color of the needle border is the same as the color
                    of the needle, draw a little thinner so that the hands does
                    not become too thick.

                [Dolphin (Thick)]
                    The hands of an analog clock are displayed in a dolphin
                    shape.
                    Even if the border color of the needle is the same as the
                    background color, draw a little thicker so that the hands
                    does not collapse.

                [Dolphin (Thin)]
                    The hands of an analog clock are displayed in a dolphin
                    shape.
                    If the color of the needle border is the same as the color
                    of the needle, draw a little thinner so that the hands does
                    not become too thick.

            [Dial type]
                Set the scale and character placement of the analog clock.

                [Inner tick scale]
                    Draw so that the time numbers are on the outside and the
                    tick scale is on the inside.
                    The tick scale is displayed in 1-minute increments, and is
                    displayed slightly longer every 5 minutes.

                [Outer tick scale]
                    Draw so that the time numbers are on the inside and the
                    tick scale is on the outside.
                    The tick scale is displayed in 1-minute increments, and is
                    displayed larger every 5 minutes.

                [No tick scale]
                    It does not display the tick scale, only the time numbers.

                [No numbers]
                    The tick scale is displayed in 1-minute increments without
                    displaying the time numbers.
                    The tick scale is displayed larger every 5 minutes.

                [No numbers (Simple)]
                    The tick scale is displayed in 5 minute increments without
                    displaying the time number.
                    When using a stopwatch, the scale is displayed in 1-second
                    increments.

                [With numbers (Simple)]
                    Only 12, 3, 6 and 9 are displayed for the time numbers, 
                    and the tick scale is displayed in 5 minute increments for
                    the others.
                    When using a stopwatch, the numbers are displayed in 5
                    second increments, and in other cases, the scale is
                    displayed in 1 second increments. 

                [Rotate Number]
                    The time number is displayed by rotating it so that the
                    head of the character faces the round frame. 

                [Use Roman Numerals]
                    Use Roman numerals for time numbers.
                    Since the Roman numerals created by the bitmap are used,
                    the selected font is not used for the Roman numerals. 
                    Not selectable in stopwatch mode. 

                [Use numbers from PNG files]
                    Use the image read from the PNG file for the time number
                    on the dial.
                    Not selectable in stopwatch mode. 

                    The file name rule is 1.png 2.png ..... 12.png, and the
                    file in the folder selected in "PNG file folder setting"
                    of the setting menu is used.

                    By default, a folder called Roman_gothic is set directly
                    under the folder containing Clock4Win.exe.

                    We recommend an image size of around 80x80 pixels.

                    If you make the background of the PNG image transparent,
                    the transparent part will be filled with the background
                    color of the dial, so it can be displayed neatly.

                    In this case, the selected font will not be used for the
                    time numbers. 

            [Display Mode]
                The current mode is displayed on the dial like "clock","timer",
                and "stopwatch". 

            [Display AM/PM]
                The dial displays AM in the morning and PM in the afternoon.

            [Display date]
                The date is displayed on the dial in the "month / day" format.

            [Diaplay month by name]
                When displaying the date on the dial of an analog clock, the
                month is displayed by name instead of number.
                The display is arranged in the order of day and month. 

            [Circle window]
                Sets the window shape of the analog clock to a circular window.
                When set to a circular window, the title bar and toolbar are
                hidden.

        [Analog clock]
            Switch the application screen to analog clock format or digital
            clock format.
            For the analog clock format, a check mark is added to the menu.

        [Tool bar]
            Show or hide the toolbar.
            When in the display state, a check mark is added to the menu item.
            The toolbar has the following buttons:

            [Start button]
                The button with the triangle mark pointing to the right starts
                the measurement of the stopwatch and timer.
                If you press this button after starting and stopping the
                stopwatch or timer, the measurement will resume from the
                displayed value. 

            [Stop button]
                The button marked with two vertically long rectangles stops the
                stopwatch and timer measurement.
                The displayed value is the state when it was stopped.
                If it is in the alarm state, cancel the alarm state.

            [Reset button]
                The button with the square mark stops the stopwatch and timer
                measurement and returns the displayed value to the initial
                value.
                If it is in the alarm state, cancel the alarm state. 

        [Title bar]
            Show or hide the title bar.
            When in the display state, a check mark is added to the menu item.

        [Minimize]
            Minimize the program window. 

    [Time precision]
        Displays a submenu for selecting the display precision for digital
        display. 

        [hh:mm:ss.ss]
            Displays up to the unit of "hour:minute:second:10 milliseconds".
            Since the display in units of 10 milliseconds has a heavy load, it
            may not operate normally depending on the performance of the PC. 

        [hh:mm:ss.s]
            Displays up to the unit of "hour:minute:second:100 milliseconds".
            Even if the display is in units of 100 milliseconds, it may not
            work properly depending on the performance of the PC. 

        [hh:mm:ss]
            Displays up to the unit of "hour:minute:second".
            This is the default setting. 

        [hh:mm]
            Displays up to the unit of "hour:minute".

        [MM/DD hh:mm]
            "Month / day" is displayed in the upper row, and "hour:minute" is
            displayed in the lower row. 

        [YY/MM/DD hh:mm]
            "Year / month / day" is displayed in the upper row, and
            "hour:minute" is displayed in the lower row.
            The year displays the last two digits of the Christian era.

        [YYYY/MM/DD hh:mm]
            "Year / month / day" is displayed in the upper row, and
            "hour:minute" is displayed in the lower row.
            The year displays 4 digits in the Christian era. 

        [MM/DD hh:mm:ss]
            "Month / day" is displayed in the upper row, and
            "hour:minute:second" is displayed in the lower row.

        [YY/MM/DD hh:mm:ss]
            "Year / Month / Day" is displayed in the upper row, and
            "hour:minute:second" is displayed in the lower row.
            The year displays the last two digits of the Christian era.

        [YYYY/MM/DD hh:mm:ss]
            "Year / Month / Day" is displayed in the upper row, and
            "hour:minute:second" is displayed in the lower row.
            The year displays 4 digits in the Christian era.

    [Timer]
        Displays a submenu related to timer settings.

        [Timer setting ...]
            Display the timer setting dialog and set the timer.
            Up to 10 frequently used timer settings can be registered as
            preset timers, and can be easily set by selecting them from the
            preset timer menu.

        [Preset timer]
            Displays the preset timer selection menu registered in the timer
            setting dialog.
            Up to 10 preset timer times can be registered. 

    [Alarm]
        Displays a submenu related to alarm settings.

        [Alarm setting ...]
            Display the alarm time setting dialog and set the alarm time.
            Up to 10 frequently used alarm settings can be registered as
            preset alarms, and can be easily set by selecting from the
            preset alarm menu.
            
        [Preset alarm]
            Displays the preset alarm selection menu set in the alarm time
            setting dialog.
            Up to 10 preset alarm times can be registered.

    [Sound]
        Displays the alarm sound related settings submenu.

        [Alarm sound file ...]
            Display the file selection dialog and select the WAV file to use
            for the timer and time alarm sound.

        [Alarm sound beep]
            Use intermittent beeps for timer and time alarm sounds.

        [Alarm sound OFF]
            Set so that the timer and time alarm do not sound.

    [Start]
        Start the timer or stopwatch.
        In the case of a stopwatch, if it is "stopped", it will resume.

    [Stop]
        Stop the timer or stopwatch.

    [Reset]
        Resets the timer and stopwatch to return to the initial state.

    [Settings]
        Displays a submenu of various settings.

        [Update interval ...]
            Displays the update interval setting dialog and sets the cycle of
            the time display timer.
            The setting is specified in milliseconds.

        [Add to startup]
            Register the program with the startup.
            If registered, a check mark will be added to the menu.

        [Put in task tray]
            Put the program in the task tray and set it not to be displayed on
            the taskbar.
            If set, the menu will be checked. 

        [PNG file folder settings ...]
            Set the folder for storing PNG files used for time numbers on the
            dial of the analog clock. 

            The PNG file name is fixed, so if you want to switch between images
            with multiple patterns, store them in separate folders and switch
            with this setting.

            The PNG file name is as follows.
                1.png   The image displayed at the 1 o'clock position.
                2.png   The image displayed at the 2 o'clock position.
                3.png   The image displayed at the 3 o'clock position.
                4.png   The image displayed at the 4 o'clock position.
                5.png   The image displayed at the 5 o'clock position.
                6.png   The image displayed at the 6 o'clock position.
                7.png   The image displayed at the 7 o'clock position.
                8.png   The image displayed at the 8 o'clock position.
                9.png   The image displayed at the 9 o'clock position.
                10.png  The image displayed at the 10 o'clock position.
                11.png  The image displayed at the 11 o'clock position.
                12.png  The image displayed at the 12 o'clock position. 

        [Collective setting ...]
            Displays the setting dialog for setting menu items collectively, 
            and sets them all at once.
            The setting dialog is displayed modelessly, and when you press the
            Apply button, the settings will be reflected in the app. 

    [Version information ...]
        Displays program version information. 

    [Exit Application]
        Exit the program. 

[Task tray context menu]
    When "Add to task tray" is selected, click the right mouse button on the
    task tray icon to display the following context menu.

    [Stop]
        Stop the alarm.

    [Minimize]
        If it is not minimized, it is operational and you can click it to
        minimize the program.

    [Restore to normal size]
        When it is in the minimized state, it is operational, so clicking it
        will restore it to its original size.

    [Version information ...]
        Displays program version information.

    [Exit Application]
        Exit the program. 

[Toolbar]
    Check the toolbar in the View menu to display the toolbar.
    The toolbar has the following buttons:

    [Start button]
        The button with the triangle mark pointing to the right starts the
        measurement of the stopwatch and timer.
        If you press this button after starting and stopping the stopwatch or
        timer, the measurement will resume from the displayed value.

    [Stop button]
        The button marked with two vertically long rectangles stops the
        stopwatch and timer measurement.
        The displayed value is the state when it was stopped.
        If it is in the alarm state, cancel the alarm state.

    [Reset button]
        The button with the square mark stops the stopwatch and timer
        measurement and returns the displayed value to the initial value.
        If it is in the alarm state, cancel the alarm state.

[Mouse operation]
    The mouse operation on the window of this program is as follows.

    [Right button click]
        Display the context menu.

    [Left button click]
        When in the alarm state, the alarm is stopped.

    [Double click on the left button]
        In timer or stopwatch mode, measurement starts.
        If measurement is in progress, stop measurement.

    [Press the left button]
        If you hold it down for more than 100 milliseconds, it will be in a
        dragged state.

    [Drag with the left button]
        Depending on the position of the mouse cursor when the button is
        pressed, the drag function is divided into the following two types
        of operations.

        [Resize]
            If the position of the mouse cursor when the left button is
            pressed is the edge of the rectangular area of the window, change
            the window size.
            The window size changes as you move the mouse. 

            If your analog clock is set to a circular window, you can only
            drag the edges of the circle that touches the rectangle.

        [Move]
            If the position of the mouse cursor when the left button is
            pressed is inside the edge of the rectangular area of the window,
            the window is moved.
            The window moves as you move the mouse. 

[Key operation]
    When the window of this program has focus, the following key operations
    are effective.

    [Enter key]
        In timer or stopwatch mode, start / restart measurement.
        If measurement is in progress, stop measurement.
        If the alarm is ringing, the alarm will be stopped.

        If you are in clock mode and the alarm is sounding, the alarm will be
        stopped.

    [Escape (Esc) key]
        In timer or stopwatch mode, it resets the measurement status.
        If measurement is in progress, stop measurement and reset.
        If the alarm is ringing, the alarm will be stopped.

        If you are in clock mode and the alarm is sounding, the alarm will be
        stopped. 

[Configuration file] Clock4Win.ini
    The configuration file is in the same folder as Clock4Win.exe and is named
    Clock4Win.ini.
    It is automatically generated

------------------------------------------------------------------------------
[Update History]
    Ver.1.04  2022/04/03
        Added the setting to turn on / off the display of the second hand. 
        Displayed the setting dialog and made it possible to set menu items at
        once.  
        The second hand of the analog display stopwatch has been updated in 
        1/5 second (0.2 second) increments, and the dial has been changed to
        30 seconds per lap. 

    Ver.1.03  2021/11/03
        Enabled to set ON / OFF the drawing of the border of the clock hands.

    Ver.1.02  2021/10/23
        I don't think it has much use, but I added a function to show the
        background transparently.

        Arrow, leaf, and dolphin shapes have been added to the hand type of
        analog clocks. 

        Added the function to rotate and display the time numbers on the
        analog clock face.

        Roman numerals can be used for the time numbers on the analog clock
        face.

        PNG file images can now be used for time numbers on the analog clock
        face.

        The month of the date on the analog clock face can now be displayed
        with the English month name. 

    Ver.1.01  2021/10/10
        Changed to keep the update interval and display precision settings
        for each mode.

        The window size changed every time the program was started, so I fixed
        it so that it wouldn't change.

        The window size sometimes changed after changing the setting, so I
        fixed it so that it does not change.

    Ver.1.00  2021/10/09
        Initial release

[Terms of Use]

Terms of Use
     There are no special conditions. Please use freely.
     However, unless we are to be used for that crime or harm to others.

For distribution
     Redistribution in the state that has not been edited or modifications 
     (source code) is free.

     (If the source code) for editing and modification
     Changes or modifications can be carried out freely, but, if you want to 
     redistribute those changes, you need to include in the distribution 
     document that clearly states the changes.

     If you want to use other software part of the source code for this 
     software is that it does not apply.

And Disclaimer
     I have been caused by the use of this software, and what the author is not
     responsible for any failure, for whatever damages.

     The authors assumed that even in the case of this software bug is found,
     correct them and not assume the obligation of version up

For requests Bug
     For bugs and requests, please email.
     However, this does not necessarily mean a guaranteed bug fixes, is 
     reflected in the demand.

Information Copyright:
     The copyright of this software is owned by the author is GUSUKU there.
     This software is protected by international copyright laws and treaties.
     The grant to be used within the scope of the Acceptable Use Policy, use in
     violation of the Acceptable Use Policy, and make and distribute, please 
     note it will be copyright infringement.

[Contact]
     GUSUKU
     root@gusuku.org

[Website]
    https://www.gusuku.org/

[Software website]
    https://www.gusuku.org/software

------------------------------------------------------------------------------
