Created
August 10, 2021 14:43
-
-
Save Mayurifag/fee8e79adef7806774f5676f14e6b3bc to your computer and use it in GitHub Desktop.
shit.ahk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Rbutton related | |
#SingleInstance Force | |
SendMode Input | |
Process, Priority, , High | |
SetBatchLines, -1 | |
; ahk Mozilla... | |
SetTitleMatchMode, Regex | |
; Capslock related | |
SetCapsLockState, AlwaysOff | |
#MaxThreadsPerHotkey, 2 | |
; Prevent Firefox-based browsers to close via Ctrl+Shift+Q or Ctrl+Shift+W | |
#IfWinActive, ahk_class MozillaWindowClass | |
^+w:: | |
;do nothing | |
return | |
^+q:: | |
;do nothing | |
return | |
#IfWinActive | |
; ; Out of dota: | |
; ; - caps lock changes language. Regular action realized via Shift+Capslock | |
; ; https://autohotkey.com/board/topic/119716-right-click-spammer/ | |
; If WinNotActive("Dota 2") | |
; { | |
; +CapsLock::CapsLock | |
; CapsLock::Send, {Ctrl down}{Shift down}{Shift up}{Ctrl up} | |
; } | |
; Else | |
; { | |
; CapsLock::Send, {AltDown}B{AltUp} | |
; } | |
CapsLock:: | |
If WinActive("Dota 2") | |
{ | |
Send, {BackSpace} | |
} | |
Else | |
{ | |
Send, {Ctrl down}{Shift down}{Shift up}{Ctrl up} | |
} | |
Return | |
XButton2:: | |
Toggle := !Toggle | |
While Toggle { | |
Send, {BackSpace} | |
Sleep, 50 | |
} | |
Return | |
;;; https://roveek.livejournal.com/738.html | |
;;; Типографская раскладка клавиатуры | |
;;; (http://ilyabirman.ru/tools/ibtl/) | |
; RAlt+ | |
>!,::SendPlay {ASC 0171} ; « | |
>!.::SendPlay {ASC 0187} ; » | |
>!`::SendPlay {ASC 0180} ; ` (обратный) | |
>!;::SendPlay {ASC 0145} ; ‘ | |
>!'::SendPlay {ASC 0146} ; ’ | |
>!-::SendPlay {ASC 0151} ; — | |
>!Space::SendPlay {ASC 0160} ; nbsp | |
>!/::SendPlay {ASC 0133} ; … | |
>!c::SendPlay {ASC 0169} ; © | |
>!r::SendPlay {ASC 0174} ; ® | |
>!t::SendPlay {ASC 0153} ; ™ | |
>!p::SendPlay {ASC 0167} ; § | |
>!x::SendPlay {ASC 0215} ; x | |
>!j::SendPlay {ASC 0132} ; „ | |
>!k::SendPlay {ASC 0147} ; “ | |
>!l::SendPlay {ASC 0148} ; ” | |
>!5:: | |
>!e::SendPlay {ASC 0128} ; € | |
>!0:: | |
>!d:: | |
>!o::SendPlay {ASC 0176} ; ° | |
>!1::SendPlay {ASC 0185} ; 1 (в степени) | |
>!2::SendPlay {ASC 0178} ; 2 (в степени) | |
>!3::SendPlay {ASC 0179} ; 3 (в степени) | |
; | |
; RAlt+Shift+ | |
+>!,::SendPlay {ASC 0132} ; „ | |
+>!.::SendPlay {ASC 0147} ; “ | |
+>!-::SendPlay {ASC 0150} ; – | |
;+>!-::SendPlay {ASC 0173} ; (мягкий перенос) | |
+>!=::SendPlay {ASC 0177} ; ± | |
+>!'::SendPlay {Raw}́ ; ́ | |
+>!5::SendPlay {ASC 0137} ; ‰ | |
+>!j::SendPlay {ASC 0130} ; ‚ | |
+>!w::SendPlay {ASC 0189} ; 1/2 | |
+>!r::SendPlay {ASC 0188} ; 1/4 | |
+>!x::SendPlay {ASC 0183} ; · | |
+>!k::SendPlay {ASC 0145} ; ‘ | |
+>!l::SendPlay {ASC 0146} ; ’ | |
; | |
; RAlt+Shift+Ctrl+ | |
^+>!x::SendPlay {ASC 0149} ; • | |
^+>!,::SendPlay {ASC 0139} ; ‹ | |
^+>!.::SendPlay {ASC 0155} ; › |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment