What is the hotkey or keyboard key that is assigned to the physical context menu button on the keyboard within the pytestautogui framework?
I've read though the list of options but nothing stood out at me for a match https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys
I want to execute some GUI automation code that presses that particular key just like you can do with for instance the left and right arrow keys as in:
pyautogui.press('left') # left arrow button
pyautogui.press('right') # right arrow button
... etc
pyautogui.press(???) # context menu button
So is this key covered at all in pyautogui? In case this helps this is the button I'm referring to shown in the image below.
To clarify an additional requirement I'm looking for the keyboard triggering of the context menu specifically. I do not want to use the mouse right click button method since I want the focus relative to the keyboard cursor not the mouse pointer coordinates.
Apparently it is the apps key
VK_APPS 0x5D Application key
Which pyautogui calls apps
'apps': 0x5d, # VK_APPS
So armed with this insight the solution to the GUI automation problem is simply
pyautogui.press('apps')
I've never heard this keyboard button ever called the apps key but so be it; apps is synonymous with what I've been calling the context/shortcut menu keyboard button, which may be terminology for the mouse rather than the keyboard, eg https://en.wikipedia.org/wiki/Context_menu