Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #Warn ; Enable warnings to assist with detecting common errors.
- #InstallKeybdHook
- #UseHook On
- #SingleInstance force
- SetKeyDelay, 10, 10
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- !c::Send,^{Ins}
- !v::Send,+{Ins}
- F1::
- run, snippingtool.exe,,, process_id
- WinWait, ahk_pid %process_id%
- WinActivate, ahk_pid %process_id%
- º::Send,*
- !º::Send,\
- !7::Send,\
- !u::Send,[
- !i::Send,]
- !n::Send,{{}
- !m::Send,{}}
- !1::Send,|
- !2::Send,@
- !3::Send,{#}
- +wheelup::send, {LWin Down}{+}{LWin Up}
- +wheeldown::send, {LWin Down}{-}{LWin Up}
- Send !n
- F24::
- FileRead, key, luamacros\keypressed.txt
- If (key = 52)
- Send,*
- else if(key = "p")
- return
- +F1::controlSend,,{F13},ahk_class Qt5QWindowIcon
- +F2::controlSend,,{F14},ahk_class Qt5QWindowIcon
- +F3::controlSend,,{F15},ahk_class Qt5QWindowIcon
- +F4::controlSend,,{F16},ahk_class Qt5QWindowIcon
- +F5::controlSend,,{F17},ahk_class Qt5QWindowIcon
- +F6::controlSend,,{F18},ahk_class Qt5QWindowIcon
- +F7::controlSend,,{F19},ahk_class Qt5QWindowIcon
- +F8::controlSend,,{F20},ahk_class Qt5QWindowIcon
- +F9::controlSend,,{F21},ahk_class Qt5QWindowIcon
- +F10::controlSend,,{F22},ahk_class Qt5QWindowIcon
- ; Center window on 4K monitor
- #c::
- WinExist("A")
- WinGetPos,,, sizeX, sizeY
- WinMove,,,(A_ScreenWidth/2)-(sizeX/2), 0, (A_ScreenWidth/2.5), A_ScreenHeight-50
- return
- #If GetKeyState("CapsLock", "T")=1
- h::Send,{Left}
- ^h::Send ^{Left}
- +h::Send {Home}
- ^+h::Send +{Home}
- l::Send,{Right}
- ^l::Send ^{Right}
- +l::Send {End}
- ^+l::Send +{End}
- k::Send,{Up}
- ^k::Send,{PgUp}
- j::Send,{Down}
- ^j::Send,{PgDn}
- x::Send,{Del}
- ^x::Send,^{Del}
- +4::Send,{Ctrl}{Home}
- 0::Send,{Ctrl}{End}
- <::AppsKey
- 1::Run, node msi-keyboard-CLI.js -c red -i light, C:\Progra~1\nodejs\node_modules\msi-keyboard-cli, "Hide"
- 2::Run, node msi-keyboard-CLI.js -c white -i light, C:\Progra~1\nodejs\node_modules\msi-keyboard-cli, "Hide"
- 3::Run, node msi-keyboard-CLI.js -k off, C:\Progra~1\nodejs\node_modules\msi-keyboard-cli, "Hide"
- #If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement