pyautogui - How can I on mac using python press keys in other applications? -


i looked around past day or information on how python script work using pyautogui. pretty want press button in game drive car. didn't work , tried couple of things slowing down time module. , stuff. tried in flash game on internet , worked fine. reading around , found out pyautogui uses virtual keys might using different way of input game want use used to. found out have use scan codes directly keyboard input. found script online on website uses window api. i've looked around mac stuff maybe create own. lot of libraries tried using didn't seem work , believe used virtual keys. can point me in right direction this?

import pyautogui import time; while true:     pyautogui.keydown('a')     time.sleep(2) 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -