12/25/2023 0 Comments Mediakeys not working after scriptHeres my solution on Ubuntu 19.10 with media keys working after a clean reboot, but not after. Obviously that’s not ideal, and we’re working on solutions, but for now that’s how it is. If one of the keys stops working, rebind it in Keyboard settings. The shortcuts option under keyboard in preferences recognizes the buttons, and -keys. So, any time you install a new connector you need to make sure you go in and move it up above this one or it won’t work. When I press the up-volume, down-volume and mute buttons on my keyboard, nothing happens. Since this script always returns true, nothing below it could ever possibly become active. The way Myo Connect works is that it asks each script in the Application Manager, from top to bottom, if it wants to be active or not. It will start there, but it also needs to STAY THERE. To use this script, you need to make sure it’s on the BOTTOM of your application manager. That’s this block here: function onForegroundWindowChange(app, title) For a script to be active when the application it controls is not in the foreground, it basically needs to be active all the time. That’s pretty sweet, but there is a slight hiccup. That means you could use your Myo armband to control ANY media application that listens for those keys! And it doesn’t have to be in the foreground! It lets you trigger any of those special media keys some keyboards have right from Myo Script. The key is this new function: myo.mediaKey(keyName). If now - moveSince > SLOW_MOVE_PERIOD then Here’s the script: scriptId = ''įunction onForegroundWindowChange(app, title) This week week I’ve got something based on a new feature we snuck into the latest version of Myo Script: Media Keys. Whatever! We’ve made some sweet things around Thalmic Labs that we’d like to show off, but you’ve been working on something that seems like it would be a good fit, let me know on Twitter at or at by email at We’d love to highlight all the great things our community has come up with.Īnyway, let’s get down to it. Or maybe it will require a custom hardware hack. Other times, we’ll have a useful technique or a bit of best practice. I’ll be coming at you once a week (every weekend) with a neat script, code snippet, or cool project built for the Myo armband. Sometimes it’ll be an awesome script that’s just a bit too raw for general use. Hello! Welcome to a new series I like to call #MyoCraft.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |