|
Post by davvoy on Dec 29, 2017 21:10:31 GMT
I have a Novation LAUNCHPAD-S and have a need to want to set up Midi Fire to pump out QWERTY Keystrokes. Can someone point me to the way to do this? I included an example Image of what I need Thanks, Dave Attachments:
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 30, 2017 16:18:39 GMT
Hi davvoy, I'm assuming you are doing this under iOS. I'm afraid that Apple will not let a 3rd party app inject keyboard strokes at all. I have been asked this question a lot! Regards, Nic.
|
|
|
Post by davvoy on Dec 30, 2017 16:46:06 GMT
woops Nic.. I am using iMac (MacOS Sierra) and Ableton.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 30, 2017 16:48:08 GMT
Hmm, OK. Well, I know MidiFire doesn't have this capability but I will see if this is possible under macOS (SDK wise) and let you know.
Regards, Nic.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Oct 30, 2019 10:12:45 GMT
Hi davvoy , Almost a year later, so not sure if this is still of interest. The latest version of MidiFire (2.0) includes the 'KEY' rule in the StreamByter for sending keystrokes from MIDI messages (mac only) to the currently focussed application. Note, for this to work, the first time a keystroke is issued, macOS will prompt you for permission. If you don't follow the prompt and allow MidiFire to 'control this computer' then no keystrokes will work until permission is granted. To grant permission manually, open up System Preferences and navigate to 'Security & Privacy' and then the 'Privacy' tab. Use the '+' button in the 'allow the apps below to control this computer' list to add MidiFire. Regards, Nic.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 1, 2019 14:04:31 GMT
Here is a table of mapping of a US/EN keyboard key to keysyms. Other keyboards will have differering mappings.
Remember, the sym numbers are decimals in the table below, so say you want to send a Cmd-Q (quit) to the currently focussed app, you would say:
key option $12
Regards, Nic.
key sym -------------- a 0 s 1 d 2 f 3 h 4 g 5 z 6 x 7 c 8 v 9 b 11 q 12 w 13 e 14 r 15 y 16 t 17 1 18 2 19 3 20 4 21 6 22 = 24 9 25 7 26 - 27 8 28 0 29 ] 30 o 31 u 32 [ 33 i 34 p 35 RETURN 36 l 37 j 38 ' 39 k 40 ; 41 , 43 / 44 n 45 m 46 . 47 TAB 48 SPACE 49 ` 50 DELETE 51 ENTER 52 ESCAPE 53 . 65 * 67 + 69 CLEAR 71 / 75 ENTER 76; // numberpad on full kbd = 78 = 81 0 82 1 83 2 84 3 85 4 86 5 87 6 88 7 89 8 91 9 92 F5 96 F6 97 F7 98 F3 99 F8 100 F9 101 F11 103 F13 105 F14 107 F10 109 F12 111 F15 113 HELP 114 HOME 115 PGUP 116 DELETE 117 F4 118 END 119 F2 120 PGDN 121 F1 122 LEFT 123 RIGHT 124 DOWN 125 UP 126
|
|
|
Post by ralph on Nov 2, 2019 10:11:28 GMT
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 2, 2019 10:15:59 GMT
Hi ralph, Keyboards are a different beast. They are run by iOS as specialised extensions to the operating system itself. Regards, Nic.
|
|
|
Post by ralph on Nov 2, 2019 10:29:05 GMT
Hi ralph , Keyboards are a different beast. They are run by iOS as specialised extensions to the operating system itself. Regards, Nic. OK thanks, fair enough. A workaround could be to either Frankenstein a Launchpad with the electronics of a Bluetooth remote keyboard, or to map MIDI messages (notes) to screen taps using Accessibility Switch Control, emulating a keyboard.
|
|
|
Post by spookyzoo on May 25, 2020 17:14:24 GMT
I'd love to see more info / a working example screenshot of this feature. I'm imagining using custom pages of a Launchpad Pro to send Streambyter rules to Ableton Live. I'm using High Sierra iMac 10.13.6 Does the Streambyter need to be routed out as MIDIFire? Should I be seeing successful Keystroke rules listed in the logs? Anybody have a working example script of this feature? Cheers 
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jun 1, 2020 7:40:27 GMT
Hi spookyzoo , The first thing to bear in mind is that you must use MidiFire's built-in StreamByter (the AU is not permitted to inject keystrokes). The StreamByter generating the keyboard event does not need to be routed anywhere and no MIDI events are generated so they won't appear in Event Monitor. You do need to ensure that MidiFire has the 'allow this app to control my computer' permission as described above. Here's my simple test that I use (remember the keystrokes are sent to the currently focussed app) if load key normal $12 end # Copy and paste the above into a Stream Byter and move the text cursor to just after the '#' comment at the end of the script. Press 'Install Rules' and you should see the letter 'q' appear in your script where the cursor is. In theory with remote control, inject events and the key rule you could write self modifiable scripts, but I am not suggesting you do. Regards, Nic.
|
|
|
Post by spookyzoo on Jun 1, 2020 18:12:07 GMT
Thanks for the reply Nic. However, following these steps aren't working for me on Mac Desktop, High Sierra. ![]() 
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jun 1, 2020 19:05:31 GMT
Hi spookyzoo, The permissions look correct. Are you sure the text cursor is just after that '#' when you press 'Install Rules' - it is working for me on High Sierra and Catalina
|
|
|
Post by spookyzoo on Jun 1, 2020 19:26:00 GMT
Hi Nic, Yeah Cursor was next to the hashtag.
Just tried same setup and permissions on my Macbook running Sierra and no joy there either atm.
I'll be sure to post back here if I find anything relevant to get it working on my end.
Cheers
|
|