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.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; ////////// Set Lock keys permanently //////////
- SetNumlockState, AlwaysOn
- ;SetCapsLockState, AlwaysOff
- SetScrollLockState, AlwaysOff
- return
- ; ////////// SHORTCUTS //////////
- ; # = Windows Logo Key
- ; ^ = CTRL Key
- ; ! = ALT Key
- ; + = Shift Key
- ; < > = Used before one of the above to define left side key or right side key on the keyboard
- ; & = An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey.
- ; ////////// Suspend AutoHotKey (OFF SCRIPTS) //////////
- #ScrollLock::Suspend ; Win + scrollLock To Disable AutoHotKey
- return
- ; ////////// WIN BUTTON DISABLE //////////
- ; LWin::Alt
- ; Disable Left Windows Key
- ; LWin::Return
- ;~LWin Up:: return
- ;~LWin::return
- ; ////////// GLOBAL VOLUME CONTROL //////////
- #WheelDown::Volume_Down
- #WheelUp::Volume_Up
- #PgDn::Volume_Down
- #PgUp::Volume_Up
- ; ////////// MEDIA CONTROL ////////// (Ctrl + Numpad Media Control)
- ^Numpad6::Media_Next
- ^Numpad4::Media_Prev
- ^Numpad5::Media_Play_Pause
- ; ////////// F1-12 BUTTON APPLICATIONS //////////
- ; #F1 = WIN + F1 +#F1 = WIN + SHIFT + F1
- #F1::Run chrome.exe ; Run Google Chrome (Win + F1)
- +#F1::Run chrome.exe -incognito ; Run Google Chrome Incognito Mode (Shift + Win + F1)
- #F2::Run, Totalcmd64.exe, C:\Total Commander Extended\ ; Run Total Commander (Win + F2)
- #F3::Run Everything.exe, D:\Soft\Everything\ ; Run Everything (Win + F3)
- #F4::Run, cherrytree.exe, D:\Soft\CherryTree Portable\bin\ ; Run CherryTree Portable (Win + F4)
- +#F4::Run Edit "D:\Someshit\Notebook.txt" ; Run Notebook.txt (in D:\Someshit\) Folder (Shift + Win + F4)
- #F5::Launch_Media ; Run AIMP Player (Or Default Media Player)
- #F6::Run, mmsys.cpl ; Audio Device Settings
- #F7::Run, PotPlayerMini64.exe, D:\Soft\PotPlayer\ ; Run POT PLAYER
- #F8::Run, FreeTimer.exe, D:\Soft\FreeTimerPortable\ ; Run FreeTimerPortable
- +#F8::Run, TTclock.exe, D:\Soft\ttclock64\ ; Run TTClockTimer Portable (Shift + Win + F8)
- #F9::Run, KeePass.exe, D:\Soft\KeePass\ ; Run KeePass (Win + F9)
- ; ////////// APPLICATIONS //////////
- +#\::Run calc.exe ; Calculator (Win + \)
- #\::Run, speedcrunch.exe, d:\Soft\Speedcrunch Calculator\ ; Run Speedcrunch Calculator
- ; ////////// SYSTEM ACTION HOTKEYS //////////
- $+#Del::FileRecycleEmpty ; Empty recycle bin (Win+Shift+Del)
- ; ////////// ALT + F6 TOGGLE AUDIO DEVICE //////////
- !F6::
- toggle:=!toggle ;toggles up and down states.
- Run, mmsys.cpl
- WinWait,ΠΠ²ΡΠΊ ; Change "Sound" to the name of the window in your local language
- if toggle
- ControlSend,SysListView321,{Down 1} ; This number selects the matching audio device in the list, change it accordingly
- Else
- ControlSend,SysListView321,{Down 2} ; This number selects the matching audio device in the list, change it accordingly
- ControlClick,Button2 ; Change "&Set Default" to the name of the button in your local language
- ControlClick,Button4
- return
- ; ////////// SYSTEM SHUTDOWN/SLEEP //////////
- ; ////////// Win + F12 - Sleep ///// Shift+Win+F12 - Shutdown //////////
- #F12::
- ; Sleep/Suspend:
- DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
- ; Hibernate:
- ;DllCall("PowrProf\SetSuspendState", "int", 1, "int", 0, "int", 0)
- Return
- +#F12::
- Shutdown, 1
- return
- ; ////////// GAMES /////////////////
- ; ////////// DOTA 2 REMAP //////////
- #IfWinActive ahk_exe dota2.exe
- ;Capslock::Alt
- ;Capslock::h
- ;Capslock::m
- ;LWin::Alt
- LWin::m
- ;LShift::Alt
- ;LWin::Shift
- ;Space::Alt
- return
Add Comment
Please, Sign In to add comment