I am using the pyautogui library. When I call pyautogui.press(), it is not registering clicks inside the Chrome Flash player. How do I overcome this?
import pyautogui
pyautogui.press('right')
This is the basic code I am using which worked for text editors and inside Chrome also, but not in flash player in chrome.
The website I am using this on is http://www.tetrisfriends.com/games/Sprint5P/game.php, where I want to automate the blocks' moves. Thanks.
From the code you've posted, what is most likely happening is that the Flash game does not have focus. You can fix this by clicking on the Flash game itself. Note that the browser having focus may not be enough, you also have to click on the Flash app itself.