Download page with more information is at http://www.desiquint...minecraftremaps, source code is below.
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#IfWinActive, Minecraft
{
XButton1::LButton ; Remaps button 4 to left-click
; The following autopilot code was borrowed from jaceguay at http://www.autohotkey.com/forum/topic59506.html
F1::Send % "{LButton " ((Cnt := !Cnt) ? "Down}" : "Up}" )
;The following crouch-toggle code was borrowed from Lanser at http://www.autohotkey.com/forum/topic16058.html
~LCtrl up::
Goto, Crouch
Crouch:
If (a_tickCount-lasttime < 400)
{
Loop
{
Send, {LCtrl down}
If IsKeyPressed("LCtrl")
Send, {LCtrl up}
Break
}
}
lasttime:=a_tickCount
Return
IsKeyPressed(v_KeyName)
{
GetKeyState, state, %v_KeyName%, P
If state = D
{
Return 1
}
Return 0
}
}
PrintScreen::^F11 ;Remaps Ctrl+F11 to PrintScreen for easy screenies via IrfanView.




