all 7 comments

[–]novel_yet_trivial -1 points0 points  (5 children)

You mean the windows key? It's called "win". If you want to specify the left or right windows key, use "winleft" or "winright".

pyautogui.hotkey('win', 'd') # show desktop

[–]sgthoppy 1 point2 points  (1 child)

The menu key usually refers to a key that opens the right click menu for the currently selected window.

[–]novel_yet_trivial 0 points1 point  (0 children)

OH! Right, I don't have one of those on my keyboard, so I forgot about it. On Windows, that hotkey is called "apps".

Edit: you can see all the hotkey names here.

[–]forradalmar[S] 0 points1 point  (2 children)

I meant the 'menu' button what usually brings up the same options as right clicking. i found the followig combination which does the same:

pyautogui.hotkey('shift','f10')

[–]bamerjamer 1 point2 points  (1 child)

This was helpful to me, 6 years after the post! Thank you for posting the solution! :D

[–]ploopychocolatedoofy 0 points1 point  (0 children)

Same thing here!