Esempio n. 1
0
def hi():
    KeyboardUtil.setDefaultLanguage()
    storedClipboard = beforeSetClipboard()
    sendText("Hi ,")
    sendKey("Return Return Return Return")
    sendText("Regards,")
    sendKey("Return")
    sendText(Common.NAME)
    sendKey("Up Up Up Up Up End Left")
    afterSetClipboard(storedClipboard)
Esempio n. 2
0
def hi():
    KeyboardUtil.setDefaultLanguage()
    storedClipboard = beforeSetClipboard()
    sendText("Hi ,")
    sendKey("Return Return Return Return")
    sendText("Regards,")
    sendKey("Return")
    sendText(Common.NAME)
    sendKey("Up Up Up Up Up End Left")
    afterSetClipboard(storedClipboard)
Esempio n. 3
0
def newTask():
    """
    Sends a task template
    """
    KeyboardUtil.setDefaultLanguage()
    output = datetime.datetime.now().strftime("%Y%m%d%H%M%S")

    Tk().withdraw()
    text = tkSimpleDialog.askstring('Task category', 'Category::')

    if text is None or text == "": sys.exit()

    #works as well
    #time.sleep(0.24)
    #output = system.exec_command("date +%Y%m%d%H%M%S")
    #time = output.stdout.readline()
    storedClipboard = ClipboardUtil.pasteFromClipboardXsel()
    sendText("task " + text + "\n" + "    " + output + " " +  "\n\n" + "solution" + "\n\n" + "info" + "\n\n" + "keywords")
    sendKey("Home Up Up Up Up Up Up End")
    ClipboardUtil.copyToClipboardXclip(storedClipboard)
Esempio n. 4
0
def newTask():
    """
    Sends a task template
    """
    KeyboardUtil.setDefaultLanguage()
    output = datetime.datetime.now().strftime("%Y%m%d%H%M%S")

    Tk().withdraw()
    text = tkSimpleDialog.askstring('Task category', 'Category::')

    if text is None or text == "": sys.exit()

    #works as well
    #time.sleep(0.24)
    #output = system.exec_command("date +%Y%m%d%H%M%S")
    #time = output.stdout.readline()
    storedClipboard = ClipboardUtil.pasteFromClipboardXsel()
    sendText("task " + text + "\n" + "    " + output + " " + "\n\n" +
             "solution" + "\n\n" + "info" + "\n\n" + "keywords")
    sendKey("Home Up Up Up Up Up Up End")
    ClipboardUtil.copyToClipboardXclip(storedClipboard)
Esempio n. 5
0
File: Open.py Progetto: klniu/xkeys
def gnomeTerminal():
    KeyboardUtil.setDefaultLanguage()
    Common.openProcess('gnome-terminal', 'at@at-arch-laptop', '', '')
Esempio n. 6
0
def search(keyword):
    KeyboardUtil.setDefaultLanguage()
    open()
    scanForKeyword()
    if keyword != "":
        SendToUi.sendKey(keyword)
Esempio n. 7
0
def gnomeTerminal():
    KeyboardUtil.setDefaultLanguage()
    Common.openProcess('gnome-terminal', 'at@at-arch-laptop', '', '')
Esempio n. 8
0
File: Emacs.py Progetto: klniu/xkeys
def search(keyword):
    KeyboardUtil.setDefaultLanguage()
    open()
    scanForKeyword()
    if keyword != "":
        SendToUi.sendKey(keyword)