Skip to content

Commit

Permalink
Try to make telegram and Feces work better with hotstrings
Browse files Browse the repository at this point in the history
1. Switch all hotstrings from SendInput to SendEvent, otherwise they ignore key delay
2. Increase the time between each hotstring hotkey to 10ms
  • Loading branch information
TheBestPessimist committed Nov 8, 2023
1 parent cf76d80 commit d490073
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 67 deletions.
4 changes: 4 additions & 0 deletions AutoHotkey64.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ CoordMode("Mouse", "Screen")
; I removed `n and `t from hotstring trigger chars
; https://www.autohotkey.com/docs/v2/Hotstrings.htm#EndChars
#Hotstring EndChars -()[]{}:;'"/\,.?!`s
; Try to make telegram and Feces work better with hotstrings
; 1. Switch all hotstrings from SendInput to SendEvent, otherwise they ignore key delay
; 2. Increase the time between each hotstring hotkey to 10ms
#Hotstring SE K10

;; rest of everything
#Include lib/Tippy.ahk
Expand Down
131 changes: 67 additions & 64 deletions hotstrings/GenericHotstrings.ahk
Original file line number Diff line number Diff line change
@@ -1,64 +1,67 @@
; Reference: https://autohotkey.com/docs/Hotstrings.htm#Options
; Note: "O" deletes the ending character (the one which activates the hotstring)

; ----- @self --------------------------
:O:c@tbp::[email protected]
:O:c@gmail::[email protected]
:O:c@nagarro::[email protected]
:O:@tbp::TheBestPessimist



; ----- my autohotkey github -----------
::.gitahk::https://git.tbp.land/AutoHotKey-Scripts/
::.gitahkl::https://git.tbp.land/AutoHotKey-Launcher/


::.date:: {
Send(FormatTime( , "yyyy-MM-dd"))
}
::.datet:: {
Send(FormatTime(, "yyyy-MM-dd--HH-mm-ss"))
}





; todo: fix for ahk 2
;::.collapsed::
;::.hidden:: {
;text =
;( LTrim
;<details>
;<summary>Collapsed for Brevity</summary>
;
;
;
;</details>
;)
;Send, % text
;}



; ------ powershell --------------------
::.pwsh::powershell
::.pwshtranscript::Start-Transcript -NoClobber -OutputDirectory $(Join-Path $(Resolve-Path "~") "\Desktop\PowershellTranscripts\")
:O:.pwshtop::while($true){{}$TheCommandOutput = `; clear; echo $TheCommandOutput; Date; sleep 1{}}{left 47}
:O:.pwshfind::Get-ChildItem -Force -Recurse -Include **{left 1}




; ----- Robocopy -----------------------
::.robocopy::robocopy /E /Z /R:5 /W:5 /TBD /unicode /V /XJ /ETA /MT:32 'source' 'destination'



; ---- Misc ----------------------------
::.giggle::__(giggle)__

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

:O:.tias::https://discourse.tbp.land/uploads/default/original/1X/e741730b2b41b7ecd3672f986951038ca43af531.jpeg
; 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

; ----- @self --------------------------
:O:c@tbp::[email protected]
:O:c@gmail::[email protected]
:O:c@nagarro::[email protected]
:O:@tbp::TheBestPessimist



; ----- my autohotkey github -----------
::.gitahk::https://git.tbp.land/AutoHotKey-Scripts/
::.gitahkl::https://git.tbp.land/AutoHotKey-Launcher/


::.date:: {
Send(FormatTime( , "yyyy-MM-dd"))
}
::.datet:: {
Send(FormatTime(, "yyyy-MM-dd--HH-mm-ss"))
}





; todo: fix for ahk 2
;::.collapsed::
;::.hidden:: {
;text =
;( LTrim
;<details>
;<summary>Collapsed for Brevity</summary>
;
;
;
;</details>
;)
;Send, % text
;}



; ------ powershell --------------------
::.pwsh::powershell
::.pwshtranscript::Start-Transcript -NoClobber -OutputDirectory $(Join-Path $(Resolve-Path "~") "\Desktop\PowershellTranscripts\")
:O:.pwshtop::while($true){{}$TheCommandOutput = `; clear; echo $TheCommandOutput; Date; sleep 1{}}{left 47}
:O:.pwshfind::Get-ChildItem -Force -Recurse -Include **{left 1}




; ----- Robocopy -----------------------
::.robocopy::robocopy /E /Z /R:5 /W:5 /TBD /unicode /V /XJ /ETA /MT:32 'source' 'destination'



; ---- Misc ----------------------------
::.giggle::__(giggle)__

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

:O:.tias::https://discourse.tbp.land/uploads/default/original/1X/e741730b2b41b7ecd3672f986951038ca43af531.jpeg
6 changes: 3 additions & 3 deletions hotstrings/MarkdownEmoji.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ In order to debug try running the hotstring with these options:

; :thumbsup - https://emojipedia.org/thumbs-up/
:O::`+1::👍 `
:0::thup::👍 `
:O::thup::👍 `


; :thumbsdown - https://emojipedia.org/thumbs-down/
:O::`-1::👎 `
:0::thdn::👎 `
:0::thdown::👎 `
:O::thdn::👎 `
:O::thdown::👎 `


; Pause - https://emojis.wiki/pause-button/
Expand Down

0 comments on commit d490073

Please sign in to comment.