Not limited to python, if you are doing RPA,
"Isn't it faster to use that keyboard than to recognize an image and right-click with the mouse?"
There are times. However, the degree of abstraction of the concept of "that" is high, and it is difficult to find it even if you search.
Also, "you can right-click on the keyboard" You may feel how well it is recognized by the number of "LGTM".
Based on these facts, we decided to publish the article considering that it is information that contributes greatly to Qiita.
"Menu key" on Ubuntu
"Application key" on Windows
In Japanese, "keys that bring up the right-click menu" and "keys that bring up the context menu"
Windows keyboard shortcut is " Shift
+ F10
"
Bring up the right-click menu by keyboard input
sample.py
import pyautogui
pyautogui.hotkey('apps')
On Windows, right-click menus such as window maximization, minimization, and window closure seem to appear with Shift
+ F10
.
PyAutoGUI | Docs PyAutoGUI | Github
py:https//github.com/asweigart/pyautogui/blob/master/pyautogui/_pyautogui_win.py
'apps': 0x5d, # VK_APPS
[Application Key | Source: Wikipedia, the free encyclopedia](https://ja.wikipedia.org/wiki/%E3%82%A2%E3%83%97%E3%83%AA%E3% 82% B1% E3% 83% BC% E3% 82% B7% E3% 83% A7% E3% 83% B3% E3% 82% AD% E3% 83% BC)
Excelsior!
Recommended Posts