Beispiel #1
0
 def put_strln(chars):
     """
     keymap_hoge = putstr("HOGEHOGEFUGAFUGA")
     """
     put_str(chars)
     return_code = get_code("RETURN")
     Input.send([pyauto.Key(return_code)])
Beispiel #2
0
        def put_keys(key_list):
            """
            keymap_hoge = putkeys(["A", "B", "SLASH"])
            """
            for key in key_list:
                key_code = get_code(key)
                Input.send([pyauto.Key(key_code)])

            return closure
Beispiel #3
0
# -*- coding: utf_8 -*-

import os
import sys

sys.path[0:0] = [
    os.path.join(os.path.split(sys.argv[0])[0], '../../..'),
]

import pyauto

print('send ABC亜意鵜絵緒')

pyauto.Input.send([
    pyauto.KeyDown(pyauto.VK_SHIFT),
    pyauto.Key(ord('A')),
    pyauto.Key(ord('B')),
    pyauto.Key(ord('C')),
    pyauto.KeyUp(pyauto.VK_SHIFT),
    pyauto.Char(ord('亜')),
    pyauto.Char(ord('意')),
    pyauto.Char(ord('鵜')),
    pyauto.Char(ord('絵')),
    pyauto.Char(ord('緒')),
])
Beispiel #4
0
 def escape():
     esc_code = get_code("ESCAPE")
     Input.send([pyauto.Key(esc_code)])
     keymap.wnd.setImeStatus(0)
Beispiel #5
0
 def put_key(key):
     """
     keymap_hoge["C-X"] = put_key("BACKSLASH")
     """
     key_code = get_code(key)
     Input.send([pyauto.Key(key_code)])
Beispiel #6
0
 def closure():
     for code in codes:
         Input.send([pyauto.Key(code)])