1
0
Fork 0

[Keymap] Add custom macro to launch RDP (#5502)

* Add keycodes for new macros to keymaps

* add macros for commonly used shortcuts

* FIx macro code and add comments

* Replaced with build in QMK keycodes

* Removed macros that duplicated QMK keycodes
This commit is contained in:
stanrc85 2019-03-28 14:46:34 -04:00 committed by Drashna Jaelre
parent 188a1e66ff
commit 2352afb383
4 changed files with 15 additions and 3 deletions

View file

@ -79,6 +79,17 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;
case KC_RDP: //Opens Windows RDP
if (!record->event.pressed) {
register_code(KC_LGUI);
tap_code(KC_R);
unregister_code(KC_LGUI);
wait_ms(200);
send_string_with_delay_P(PSTR("mstsc"), 10);
send_string_with_delay_P(PSTR(SS_TAP(X_ENTER)), 10);
}
return false;
break;
}
return process_record_keymap(keycode, record);
}

View file

@ -20,7 +20,8 @@
#define TD_TCTL TD(TD_RCTL)
enum cust_keys {
KC_MAKE = SAFE_RANGE
KC_MAKE = SAFE_RANGE,
KC_RDP
};
enum tap_dance {