User Tools

Site Tools


autohotkey_recipes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
autohotkey_recipes [2012/06/04 18:10] tkbletscautohotkey_recipes [2014/07/26 08:35] tkbletsc
Line 7: Line 7:
  
 ====== Recipes ====== ====== Recipes ======
-Below are some useful recipes.  See also: [[Using AutoHotKey to map keys on the Amtelco KB163 Unified Keyboard]].+Below are some useful recipes.  See also:  
 +  * [[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 25: Line 27:
 ; Win+M = toggle mute ; Win+M = toggle mute
 #m::Send {Volume_Mute} #m::Send {Volume_Mute}
 +</file>
 +
 +===== Extended mouse buttons mapped to media control =====
 +<file>
 +XButton2::Media_Play_Pause
 +XButton1::Media_Next
 +</file>
 +
 +===== Mouse click spam =====
 +Press F7 to toggle auto-clicking over and over as fast as possible.
 +<file>
 +i:=0 
 +F7::SetTimer, Spam, % (i:=!i) ? "10" : "Off" ; uses ternary
 +
 +Spam: 
 +   Click
 +   Send {LButton}
 +return
 </file> </file>
  
 ===== Winkey shortcut overrides ===== ===== Winkey shortcut overrides =====
-Windows by default binds Win+X, Win+B, and Win+Space to stuff I don't care about.  The script below will remap these to some random key combos that you can then hook with WinAmp, Launchy, etc.+Windows by default binds Win+X, Win+B, and Win+Space to stuff I don't care about.  The script below will remap these to Win+Ctrl+<key>, which you can bind to apps without issue.
 <file> <file>
 ; WinAmp+Launchy remaps ; WinAmp+Launchy remaps
-#x::[ +#x::#^x 
-#b::] +#b::#^b 
-#space::SendInput ![+#space::^#Space
 </file> </file>
- 
 ===== Auto mouse ===== ===== Auto mouse =====
 <file> <file>
Line 66: Line 85:
  
 ===== 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.  Obviously this latter one is very specific.+The F5 for reload only works if the active file is the most recently opened.
  
 <file> <file>
-; FoxIt keys: F5=reload and F6=latex build+; FoxIt keys: F5=reload
 #IfWinActive, ahk_class classFoxitReader #IfWinActive, ahk_class classFoxitReader
-F5::Send ^w!f1 +F5::Send ^w!fr1
-F6:: +
-WinActivate ahk_class mintty +
-Send make again{enter} +
-WinActivate ahk_class classFoxitReader +
-return+
 #IfWinActive #IfWinActive
 </file> </file>
Line 85: Line 99:
 #IfWinActive, ahk_class WindowsForms10.Window.8.app.0.ea7f4a_r16_ad1 #IfWinActive, ahk_class WindowsForms10.Window.8.app.0.ea7f4a_r16_ad1
 MButton:: MButton::
-SetTimer DoClick,50 + SetTimer DoClick,50 
-SoundBeep 880,50 + SoundBeep 880,50 
-return+ return
 MButton up:: MButton up::
-SetTimer DoClick,off + SetTimer DoClick,off 
-SoundBeep 440,50 + SoundBeep 440,50 
-return+ return
 #IfWinActive #IfWinActive
 </file> </file>
- 
 ===== 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 "SoundBeep..." to "Return" for silent operation. The code below will replace the annoying help popup with a low-pitched beep.  Change "SoundBeep..." to "Return" for silent operation.
 <file> <file>
 +; Suppress F1 in Explorer/Word/Excel -- replace the annoying help popup with a low-pitched beep
 #IfWinActive ahk_class CabinetWClass #IfWinActive ahk_class CabinetWClass
 F1::SoundBeep 110,100 F1::SoundBeep 110,100
autohotkey_recipes.txt · Last modified: 2017/10/23 20:00 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki