Skip to content

Commit

Permalink
Fucking Slack has dogshit slow garbage performance
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Nov 19, 2024
1 parent d66658c commit 60a6cb0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
14 changes: 14 additions & 0 deletions app_handling.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,20 @@ K::Send "{RButton}"



/*
Why a KeyDelay for Slack? Because Slack has dogshit slow garbage performance.
If i use normal hotstring replacement for text which has any markup (italic, bold, inline code, etc.), Slack trashes everything ahk types and also losses characters.
Instead, I have to use SendEvent, which respects key delay.
I swear to fucking god, all the JavaScript world is pure fucking garbage.
*/
if(WinActive("ahk_exe slack.exe")) {
SetKeyDelay 100
}



;$q::Send "1q"
;$w::Send "1w"
;$e::Send "1e"
Expand Down
22 changes: 15 additions & 7 deletions hotstrings/GenericHotstrings.ahk
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
; Reference: https://autohotkey.com/docs/Hotstrings.htm#Options
; Flag explanations:
; - 0 (letter o) deletes the ending character (the one which activates the hotstring)
; - B0 (letter b and zero): Disable automatic backspacing
; - Kn: Delay between each keypress
/*
Reference: https://autohotkey.com/docs/Hotstrings.htm#Options
Flag explanations:
- 0 (letter o) deletes the ending character (the one which activates the hotstring)
- B0 (letter b and zero): Disable automatic backspacing
- Kn: Delay between each keypress
Why am I using SendEvent at times? Search for Slack.
*/

; ----- @self --------------------------
:O:c@tbp::[email protected]
Expand Down Expand Up @@ -58,9 +62,13 @@


; ---- Misc ----------------------------
::.giggle::__(giggle)__
::.giggle::{
SendEvent("__(giggle)__")
}

::.logo::`¯\_(ツ)_/¯`
::.logo::{
SendEvent("``¯\_(ツ)_/¯``")
}

::.youtried::https://discourse.tbp.land/uploads/default/original/1X/ffe6c3aeef608606b00fa5587acce5bbf6d15d05.png

Expand Down

0 comments on commit 60a6cb0

Please sign in to comment.