summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/stanrc85/stanrc85.c11
-rw-r--r--users/stanrc85/stanrc85.h3
2 files changed, 13 insertions, 1 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);
}
diff --git a/users/stanrc85/stanrc85.h b/users/stanrc85/stanrc85.h
index 2f999ff50..da52df09b 100644
--- a/users/stanrc85/stanrc85.h
+++ b/users/stanrc85/stanrc85.h
@@ -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 {