Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #SingleInstance force
- SendMode Input
- global layoutUS = 0x00000409, layoutCZ = 0x00010405, layoutCZqwertz = 0x00000405, layoutCubiss = 0xa0000405, layoutNext = layoutUS
- !F2::reload
- !F3::suspend
- ; application hotkeys
- !^M::
- Run outlook.exe /recycle
- return
- !^N::
- KeyWait, n
- KeyWait, n, D T.3
- If (!ErrorLevel)
- {
- Run "D:/doc/notepad.txt"
- }
- Else
- {
- Run notepad
- }
- return
- !^C::
- Run chrome.py, D:\Desktop\Scripts\all
- return
- !^E::
- Run EXCEL.EXE
- return
- !^G::
- Run D:\app\GIMP\GIMPPortable.exe
- !^P::
- Run control
- return
- !^J::
- Run explorer.exe D:\Downloads
- return
- !^T::
- Run D:\app\ConEmu\ConEmuPortable.exe
- return
- !^I::
- Run isql.py
- return
- ;REMAPPING
- ;shift + top row to always english
- +SC001::
- Send ``
- return
- +SC002::
- Send {!}
- return
- +SC003::
- Send `@
- return
- +SC004::
- Send {#}
- return
- +SC005::
- Send `$
- return
- +SC006::
- Send `%
- return
- +SC007::
- Send {^}
- return
- +SC008::
- Send `&
- return
- +SC009::
- Send `*
- return
- +SC00A::
- Send `(
- return
- +SC00B::
- Send `)
- return
- +SC027::
- Send `:
- return
- SC028::
- Send `'
- return
- !Shift::
- SetDefaultKeyboard(layoutNext)
- if (layoutNext == layoutUS)
- layoutNext := layoutCubiss
- else
- layoutNext := layoutUS
- return
- !+a::
- SetDefaultKeyboard(layoutUS)
- return
- !+s::
- SetDefaultKeyboard(layoutCubiss)
- return
- !+d::
- SetDefaultKeyboard(layoutCZqwertz)
- return
- !+f::
- SetDefaultKeyboard(layoutCZ)
- return
- SetDefaultKeyboard(LocaleID){
- Static SPI_SETDEFAULTINPUTLANG := 0x005A, SPIF_SENDWININICHANGE := 2
- Lan := DllCall("LoadKeyboardLayout", "Str", Format("{:08x}", LocaleID), "Int", 0)
- VarSetCapacity(binaryLocaleID, 4, 0)
- NumPut(LocaleID, binaryLocaleID)
- DllCall("SystemParametersInfo", "UInt", SPI_SETDEFAULTINPUTLANG, "UInt", 0, "UPtr", &binaryLocaleID, "UInt", SPIF_SENDWININICHANGE)
- WinGet, windows, List
- Loop % windows {
- PostMessage 0x50, 0, % Lan, , % "ahk_id " windows%A_Index%
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement