Skip to content

Commit

Permalink
Improve initial keywaits
Browse files Browse the repository at this point in the history
I understand how this works more so I can delete some stuff and document it better in comments.
  • Loading branch information
garlic-os authored Nov 10, 2021
1 parent ae01442 commit 328cce6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Ctrl+Shift+R Resend Selected Email.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ Return
; Ctrl + Shift + R | Resend selected email
; Click the note containing the email you want to resend, then press this hotkey.
ResendSelectedEmail:
; Force release the hotkey keys so they don't screw anything up.
Send, {Ctrl Up}
Send, {Shift Up}
Send, {r Up}

; (Releasing keys is async. I think.)
; Wait for the user to release the modifier keys; these keys being pressed
; while the script runs will screw up the menu navigation.
KeyWait, Ctrl, L
KeyWait, Shift, L
KeyWait, r, L

; Click the dropdown next to the "E-mail" button and choose "Reply to all"
; This took me hours to figure out and will probably break with the next Cherwell update
Expand Down

0 comments on commit 328cce6

Please sign in to comment.