Post #1261: : post_01262, post_01271, post_05068
🏷️ Tags
stack-key hotkeys modifier-keys intermediate solved
⚙️ Related PME Features
- Stack Key Editor
- Command scripting
- Modifier key detection
- Menu opening functions
💬 Content
MaxLenneper:
I wanted to ask, is it possible to use PME to create a button that has several functions depending on which modifier key is held when pressing it? (ctrl shift alt)
Yes, you can store functions in Stack Key slots. And call them from the button using this code in Command tab (video):
open_menu("Stack Key", event_mods(E))
Where event_mods(E) function returns key modifier combination (e.g. Ctrl+Shift , Alt+OSKey , None).
And open_menu() function calls Stack Key ’s slot by its name.
❤️ 7 likes