autohotkey_recipes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
autohotkey_recipes [2012/05/20 10:34] – tkbletsc | autohotkey_recipes [2014/11/29 15:44] – add top edge stickiness script tkbletsc | ||
---|---|---|---|
Line 7: | Line 7: | ||
====== Recipes ====== | ====== Recipes ====== | ||
- | Below are some useful recipes. | + | Below are some useful recipes. |
+ | * [[Using AutoHotKey to map keys on the Amtelco KB163 Unified Keyboard]]. | ||
+ | * [[Using AutoHotkey to make a second mouse into a multimedia control]] | ||
===== General ===== | ===== General ===== | ||
Line 27: | Line 29: | ||
</ | </ | ||
+ | ===== 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 { | ||
+ | | ||
+ | } | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== Extended mouse buttons mapped to media control ===== | ||
+ | < | ||
+ | XButton2:: | ||
+ | XButton1:: | ||
+ | </ | ||
+ | |||
+ | ===== Mouse click spam ===== | ||
+ | Press F7 to toggle auto-clicking over and over as fast as possible. | ||
+ | < | ||
+ | i:=0 | ||
+ | F7:: | ||
+ | |||
+ | Spam: | ||
+ | Click | ||
+ | Send {LButton} | ||
+ | return | ||
+ | </ | ||
+ | |||
+ | ===== Winkey shortcut overrides ===== | ||
+ | Windows by default binds Win+X, Win+B, and Win+Space to stuff I don't care about. | ||
+ | < | ||
+ | ; WinAmp+Launchy remaps | ||
+ | #x::#^x | ||
+ | #b::#^b | ||
+ | # | ||
+ | </ | ||
===== Auto mouse ===== | ===== Auto mouse ===== | ||
< | < | ||
Line 57: | Line 123: | ||
===== FoxIt ===== | ===== FoxIt ===== | ||
- | The F5 for reload only works if the active file is the most recently opened. The F6 will switch to a MinTTY session and issue a "make again" command. | + | The F5 for reload only works if the active file is the most recently opened. |
< | < | ||
- | ; FoxIt keys: F5=reload | + | ; FoxIt keys: F5=reload |
# | # | ||
- | F5::Send ^w!f1 | + | F5::Send ^w!fr1 |
- | F6:: | + | |
- | WinActivate ahk_class mintty | + | |
- | Send make again{enter} | + | |
- | WinActivate ahk_class classFoxitReader | + | |
- | return | + | |
# | # | ||
</ | </ | ||
Line 76: | Line 137: | ||
# | # | ||
MButton:: | MButton:: | ||
- | SetTimer DoClick, | + | SetTimer DoClick, |
- | SoundBeep 880,50 | + | SoundBeep 880,50 |
- | return | + | return |
MButton up:: | MButton up:: | ||
- | SetTimer DoClick, | + | SetTimer DoClick, |
- | SoundBeep 440,50 | + | SoundBeep 440,50 |
- | return | + | return |
# | # | ||
</ | </ | ||
- | + | ===== Suppress F1 in Explorer, | |
- | ===== Suppress F1 in Word/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 " | ||
< | < | ||
+ | ; Suppress F1 in Explorer/ | ||
+ | # | ||
+ | F1:: | ||
# | # | ||
F1:: | F1:: | ||
Line 95: | Line 158: | ||
# | # | ||
</ | </ | ||
- | |||
===== Minecraft movement ===== | ===== Minecraft movement ===== | ||
autohotkey_recipes.txt · Last modified: 2017/10/23 20:00 by tkbletsc