• Great! That's really promising.

    So the first code you posted (that looks good) doesn't work? You basically have to send [kb.MODIFY.GUI,0,kb.KEY.F12,0,0,0,0,0] twice?

    In that case, could you just do:

          NRF.sendHIDReport([kb.MODIFY.GUI,0,kb.KE­Y.F12,0,0,0,0,0], function() {
            NRF.sendHIDReport([kb.MODIFY.GUI,0,kb.KE­Y.F12,0,0,0,0,0], function() {
              NRF.sendHIDReport([0,0,0,0,0,0,0,0], function() {
               console.log("keys sent");
              });
            });
          });
    

    You could also try:

          NRF.sendHIDReport([kb.MODIFY.GUI,0,0,0,0­,0,0,0], function() {
            NRF.sendHIDReport([kb.MODIFY.GUI,0,kb.KE­Y.F12,0,0,0,0,0], function() {
              NRF.sendHIDReport([kb.MODIFY.GUI,0,0,0,0­,0,0,0], function() {
                NRF.sendHIDReport([0,0,0,0,0,0,0,0], function() {
                  console.log("keys sent");
                });
              });
            });
          });
    

    so: press GUI, press F12, release F12, release GUI

About

Avatar for Gordon @Gordon started