Jump to content

How to use media keys with a keyword


Recommended Posts

Posted

I want to create a workflow where I can use the media keys with a certain keyword. For example my keyword input is 'ne' and when I type 'ne' in alfred, it presses the 'next' media key on the keyboard. How do I do it?

 

Thank you for any help.

Posted

What are "media keys"?
 
At any rate, the way to trigger keypresses that aren't characters is: 

tell application "System Events" to key code XX

 where "XX" is the numerical code of the key.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...