Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions INSTALL/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
MouseInfo==0.1.3
Pillow==7.1.1
Pillow==7.2.0
py-getch==1.0.1
PyAutoGUI==0.9.50
pygame==1.9.6
PyGetWindow==0.0.8
PyMsgBox==1.0.7
PyMsgBox==1.0.8
pynput==1.6.8
pyperclip==1.8.0
PyRect==0.1.4
PyScreeze==0.1.26
python-xlib==0.27
python3-xlib==0.15
PyTweening==1.0.3
six==1.14.0
six==1.15.0
tkcolorpicker==2.1.3
-e git+git://github.com/FMMT666/launchpad.py.git@master#egg=launchpad-py
20 changes: 10 additions & 10 deletions system_apis/keyboard_unix.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from pynput import keyboard
from pynput.keyboard import KeyCode
# from pynput.keyboard import Controller as KeyboardController
import pyautogui
from pynput.keyboard import Controller as KeyboardController
# import pyautogui
from pyautogui import KEY_NAMES as pyautogui_keys

# keyboard_controller = KeyboardController()
keyboard_controller = KeyboardController()

media_key_map = {
"vol_up": "media_volume_up",
Expand Down Expand Up @@ -50,7 +50,7 @@


def sp(name):
return _sp_pyautogui(name)
return _sp_pynput(name)


def _sp_pyautogui(name):
Expand Down Expand Up @@ -78,15 +78,15 @@ def _sp_pynput(name):


def press(key):
# keyboard_controller.press(key)
pyautogui.keyDown(key)
keyboard_controller.press(key)
# pyautogui.keyDown(key)


def release(key):
# keyboard_controller.release(key)
pyautogui.keyUp(key)
keyboard_controller.release(key)
# pyautogui.keyUp(key)


def write(string):
# keyboard_controller.type(string)
pyautogui.write(string)
keyboard_controller.type(string)
# pyautogui.write(string)
4 changes: 2 additions & 2 deletions system_apis/keyboard_win.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ctypes
from ctypes import wintypes
import pyautogui
import system_apis.keyboard_unix as unix_controller

# code in this file comes from https://gist.github.com/Aniruddha-Tapas/1627257344780e5429b10bc92eb2f52a

Expand Down Expand Up @@ -243,4 +243,4 @@ def release(key):


def write(string):
pyautogui.write(string)
unix_controller.write(string)