# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_FULL_SPEC = 'hotkey_full_spec'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_FUNC = 'hotkey_func'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_ORIG_SPEC = 'hotkey_orig_spec'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_PATTERN = 'hotkey_pattern'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_TYPE = 'hotkey_type'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_NEED_HOTKEY_INFO_LIST = 'need_hotkey_info_list'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_TYPE_V_DN = 'dn'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_TYPE_V_KS = 'ks'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_TYPE_V_UP = 'up'


import os.path
import webbrowser
from subprocess import Popen
from .const import HOTKEY_INFO_K_HOTKEY_FULL_SPEC
from .const import HOTKEY_INFO_K_HOTKEY_FUNC
from .const import HOTKEY_INFO_K_HOTKEY_ORIG_SPEC
from .const import HOTKEY_INFO_K_HOTKEY_PATTERN
from .const import HOTKEY_INFO_K_HOTKEY_TYPE
from .const import HOTKEY_INFO_K_NEED_HOTKEY_INFO_LIST
from .const import HOTKEY_TYPE_V_DN
from .const import HOTKEY_TYPE_V_KS
from .const import HOTKEY_TYPE_V_UP
    from .util.cmd import MuteNoti
    from .util.cmd import Noti
            if is_key_up:
                # Get error message
                msg = 'Hot sequence can not be key-up hotkey.'

                # Raise error
                raise ValueError(msg)

            # If is not key-up hotkey

            # Set hotkey type be key-sequence
            hotkey_type = HOTKEY_TYPE_V_KS

        # If is key-up hotkey
        elif is_key_up:
            # Set hotkey type be key-up
            hotkey_type = HOTKEY_TYPE_V_UP

        # If is not key-up hotkey
        else:
            # Set hotkey type be key-down
            hotkey_type = HOTKEY_TYPE_V_DN

        # Get hotkey info
        hotkey_info = {
            HOTKEY_INFO_K_HOTKEY_TYPE: hotkey_type,
            HOTKEY_INFO_K_HOTKEY_PATTERN: hotkey_pattern,
            HOTKEY_INFO_K_HOTKEY_FUNC: hotkey_func,
            HOTKEY_INFO_K_HOTKEY_ORIG_SPEC: spec,
            HOTKEY_INFO_K_HOTKEY_ORIG_SPEC: spec,
            HOTKEY_INFO_K_HOTKEY_FULL_SPEC: tuple(full_spec),

# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_FULL_SPEC = 'hotkey_full_spec'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_FUNC = 'hotkey_func'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_ORIG_SPEC = 'hotkey_orig_spec'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_PATTERN = 'hotkey_pattern'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_HOTKEY_TYPE = 'hotkey_type'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_INFO_K_NEED_HOTKEY_INFO_LIST = 'need_hotkey_info_list'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_TYPE_V_DN = 'dn'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_TYPE_V_KS = 'ks'
# 
# Path: src/aoikhotkey/const.py
# HOTKEY_TYPE_V_UP = 'up'


# Path: src/aoikhotkey/hotkey_spec_parser.py
import os.path
import webbrowser
from subprocess import Popen
from .const import HOTKEY_INFO_K_HOTKEY_FULL_SPEC
from .const import HOTKEY_INFO_K_HOTKEY_FUNC
from .const import HOTKEY_INFO_K_HOTKEY_ORIG_SPEC
from .const import HOTKEY_INFO_K_HOTKEY_PATTERN
from .const import HOTKEY_INFO_K_HOTKEY_TYPE
from .const import HOTKEY_INFO_K_NEED_HOTKEY_INFO_LIST
from .const import HOTKEY_TYPE_V_DN
from .const import HOTKEY_TYPE_V_KS
from .const import HOTKEY_TYPE_V_UP
    from .util.cmd import MuteNoti
    from .util.cmd import Noti

            if is_key_up:
                # Get error message
                msg = 'Hot sequence can not be key-up hotkey.'

                # Raise error
                raise ValueError(msg)

            # If is not key-up hotkey

            # Set hotkey type be key-sequence
            hotkey_type = HOTKEY_TYPE_V_KS

        # If is key-up hotkey
        elif is_key_up:
            # Set hotkey type be key-up
            hotkey_type = HOTKEY_TYPE_V_UP

        # If is not key-up hotkey
        else:
            # Set hotkey type be key-down
            hotkey_type = HOTKEY_TYPE_V_DN

        # Get hotkey info
        hotkey_info = {
            HOTKEY_INFO_K_HOTKEY_TYPE: hotkey_type,
            HOTKEY_INFO_K_HOTKEY_PATTERN: hotkey_pattern,
            HOTKEY_INFO_K_HOTKEY_FUNC: hotkey_func,
            HOTKEY_INFO_K_HOTKEY_ORIG_SPEC: spec,
            HOTKEY_INFO_K_HOTKEY_ORIG_SPEC: spec,
            HOTKEY_INFO_K_HOTKEY_FULL_SPEC: tuple(full_spec),

            HOTKEY_INFO_K_NEED_HOTKEY_INFO_LIST: need_info_instance_s,