autohotkey_recipes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| autohotkey_recipes [2014/07/26 08:35] – tkbletsc | autohotkey_recipes [2017/10/23 20:00] (current) – tkbletsc | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| # | # | ||
| - | ; Win+Backtick | + | ; Win+F12 = Sleep |
| - | #`:: | + | #F12:: |
| ; Win+M = toggle mute | ; Win+M = toggle mute | ||
| #m::Send {Volume_Mute} | #m::Send {Volume_Mute} | ||
| + | |||
| + | ; Alt+Backtick -> Shift+Win_Right (move window to next monitor) -- a shortcut I used on Ultramon for years | ||
| + | !`::Send +#{Right} | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Hold down any key ===== | ||
| + | < | ||
| + | ; do right win key + whatever to hold that key down (if it's listed below) | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | ># | ||
| + | </ | ||
| + | |||
| + | ===== Map gamepad buttons to winamp controls ===== | ||
| + | All the function gunk around Joy2 and Joy3 is for keyboard auto-repeat of Win+A and Win+S (which I map to winamp volume control elsewhere). | ||
| + | < | ||
| + | ; winamp control (if winamp is running) | ||
| + | #If WinExist(" | ||
| + | Joy1::Send {Media_Play_Pause} | ||
| + | Joy4::Send {Media_Stop} | ||
| + | Joy6::Send {Media_Next} | ||
| + | Joy8::Send {Media_Prev} | ||
| + | |||
| + | Joy2:: | ||
| + | Send {LWin down}{s down} | ||
| + | SetTimer, WaitForJoy2, | ||
| + | return | ||
| + | |||
| + | WaitForJoy2: | ||
| + | if not GetKeyState(" | ||
| + | { | ||
| + | Send {LWin up}{s up} ; Release the spacebar. | ||
| + | SetTimer, WaitForJoy2, | ||
| + | return | ||
| + | } | ||
| + | ; Since above didn't " | ||
| + | Send {LWin down}{s down} ; Send another Spacebar keystroke. | ||
| + | return | ||
| + | |||
| + | Joy3:: | ||
| + | Send {LWin down}{a down} | ||
| + | SetTimer, WaitForJoy3, | ||
| + | return | ||
| + | |||
| + | WaitForJoy3: | ||
| + | if not GetKeyState(" | ||
| + | { | ||
| + | Send {LWin up}{a up} ; Release the spacebar. | ||
| + | SetTimer, WaitForJoy3, | ||
| + | return | ||
| + | } | ||
| + | ; Since above didn't " | ||
| + | Send {LWin down}{a down} ; Send another Spacebar keystroke. | ||
| + | return | ||
| + | #If ; EndIf | ||
| + | </ | ||
| + | |||
| + | ===== Make the top edge of the main monitor " | ||
| + | If you have a second monitor //above// the main one, this script will help you still be able to click stuff at the top of the screen without accidentally wandering into the upper monitor. | ||
| + | < | ||
| + | SetupClipCheck() ; enable the mouse confinement system (defined below) | ||
| + | |||
| + | ; get access to the winapi ClipCursor function, which limits cursor boundaries | ||
| + | ClipCursor( Confine=True, | ||
| + | { | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | ; count the number of loop iterations the mouse has been near the top and un-confine the mouse if there' | ||
| + | SetupClipCheck() { | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | top_tick_count := 0 | ||
| + | ClipCheck: | ||
| + | | ||
| + | | ||
| + | ; | ||
| + | |||
| + | If (y < 10) { | ||
| + | | ||
| + | } Else { | ||
| + | | ||
| + | } | ||
| + | |||
| + | if (top_tick_count> | ||
| + | | ||
| + | } Else { | ||
| + | | ||
| + | } | ||
| + | | ||
| </ | </ | ||
| Line 48: | Line 149: | ||
| ===== Winkey shortcut overrides ===== | ===== Winkey shortcut overrides ===== | ||
| - | Windows by default binds Win+X, Win+B, and Win+Space to stuff I don't care about. | + | Windows by default binds Win+X, Win+B, and Win+Space to stuff I don't care about. |
| < | < | ||
| ; WinAmp+Launchy remaps | ; WinAmp+Launchy remaps | ||
| - | #x::#^x | + | #z::Media_Prev |
| - | #b::#^b | + | #x:: |
| - | #space::^#Space | + | #c::Media_Play_Pause |
| + | # | ||
| + | #b:: | ||
| + | #space::Send ^+{Space} | ||
| + | ; ^ Win+Space -> Ctrl+Shift+Space | ||
| + | |||
| + | ; old simple winamp remaps -- the newer ones above let it work for non-winamps, | ||
| + | ;#x::#^x | ||
| + | ;#b::#^b | ||
| </ | </ | ||
| ===== Auto mouse ===== | ===== Auto mouse ===== | ||
| Line 108: | Line 217: | ||
| # | # | ||
| </ | </ | ||
| + | |||
| + | |||
| ===== Suppress F1 in Explorer, Word, and Excel ===== | ===== Suppress F1 in Explorer, Word, and Excel ===== | ||
| The code below will replace the annoying help popup with a low-pitched beep. Change " | The code below will replace the annoying help popup with a low-pitched beep. Change " | ||
autohotkey_recipes.1406388942.txt.gz · Last modified: by tkbletsc
