diff options
author | stanrc85 <47038504+stanrc85@users.noreply.github.com> | 2019-03-28 14:46:34 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-28 11:46:34 -0700 |
commit | 2352afb3839431c024113a3dd197251cf8951591 (patch) | |
tree | 02c8ee70f394a96d44ec4017a2dfbe34b8a03ad6 /users/stanrc85/stanrc85.c | |
parent | 188a1e66ff092a1db8adeb5410ba995715ef6594 (diff) | |
download | qmk_firmware-2352afb3839431c024113a3dd197251cf8951591.tar.gz |
[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
Diffstat (limited to 'users/stanrc85/stanrc85.c')
-rw-r--r-- | users/stanrc85/stanrc85.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/users/stanrc85/stanrc85.c b/users/stanrc85/stanrc85.c index 3838f33ef..4a46d61da 100644 --- a/users/stanrc85/stanrc85.c +++ b/users/stanrc85/stanrc85.c @@ -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); } |