In Notepad++, WIN + S will save the current .AHK or .INI file and reload it with AutoHotkey. No more needing to right click on the tray icon. Also works really well for AHK scripts that use #NoTrayIcon.
#s::
If WinActive("ahk_class Notepad++")
{
Send, ^s
WinGetTitle, path,A
StringReplace, path,path,- Notepad++
StringReplace, path,path,*,
Progress, B1 zh0 fs11 CWC0C0C0 WS900 W600 H28, Reloading: "%path%"
Sleep,500
path = "%path%"
Run, AutoHotkey.exe /restart %path%
Progress, Off
}
return
Use just the mouse to switch between windows. Middle button click will result in an ALT + TAB function. holding down right click and scrolling the wheel up and down will switch between tasks. When the right click is released is when it actually switches to that task.
Mbutton::
Send, !{TAB}
return
Rbutton::Mouseclick, Right ;need this or right click won't work
Rbutton & WheelUp::AltTab
Rbutton & WheelDown::ShiftAltTab
Scroll between tabs in chrome when the mouse is in the bookmark bar or higher. The variables here are the window selector and the ychrome checker. These can be changed based on which browser you are using and personal settings.
~WheelDown::
if winactive("ahk_class Chrome_WidgetWin_1")
{
MouseGetPos, xchrome, ychrome
if (ychrome < 92)
{
Send, ^+{Tab}
}
}
Return
~WheelUp::
if winactive("ahk_class Chrome_WidgetWin_1")
{
MouseGetPos, xchrome, ychrome
if (ychrome < 92)
{
Send, ^{Tab}
}
}
Return
Use ALT + Wheel to adjust the sound. Middle button toggles the mute function.
!WheelUp::Send, {Volume_Up}{Volume_Up}
!WheelDown::Send, {Volume_Down}{Volume_Down}
!Mbutton::Send, {Volume_Mute}
The PrintScreen button auto opens Paint and pastes it into the canvas. (it also saves your current clipboard)
PrintScreen::
clipsave = %clipboard%
Send, #{PRINTSCREEN}
Run, mspaint.exe
WinWaitActive ahk_class MSPaintApp
{
Send, ^v
}
clipboard = %clipsave%
return
Sets the current window to 35 transparency when you do CTRL + SPACE. This lets you view the windows behind the current without switching windows. ^Space::WinSet, Transparent, 35 , A ^Space UP::WinSet, Transparent, OFF, A returnWIN + 2 will check to see if a Chrome window is running, if it is, it will activate and maximize, if not, it will run Chrome.
#2::
if WinExist("ahk_class Chrome_WidgetWin_1")
{
WinActivate
WinMaximize
}
else
Run Chrome.exe
return
If you have any questions about my code or how it can work for you, just let me know. Thanks!




