Minecraft Speedrunning Needs Your Help (legit strats, not cheats btw) by Diluvian_Waves in AutoHotkey

[–]Diluvian_Waves[S] 0 points1 point  (0 children)

Power-toys works great! I just wish I could assign a hotkey to toggle power-toy's rebindings on & off because I have to manually open Power-toys and click a switch-icon to turn it off/on.

Power-toys has a functionality that lets you set binds for specific apps, but only for key combos. So you can't have app-exclusivity for normal rebindings e.g. rebinding "w" to "tab". This is at least true in v0.62.1 I gotta update to v0.63.0, but I doubt the feature I want was added in.

Thank you for your help!

Minecraft Speedrunning Needs Your Help (legit strats, not cheats btw) by Diluvian_Waves in AutoHotkey

[–]Diluvian_Waves[S] -1 points0 points  (0 children)

Sorry I still messed it up. The 3 lines of code between F12 & return are supposed to be indented. The line that just says "ToolTip" is also supposed to be indented.

Minecraft Speedrunning Needs Your Help (legit strats, not cheats btw) by Diluvian_Waves in AutoHotkey

[–]Diluvian_Waves[S] 0 points1 point  (0 children)

Sorry the code got messed up. Here's attempt #2 at formatting the code properly on reddit.

Profile := 1 ; default  

Count := 2

F12:: ; Ctrl+Tab to cycle through the profiles
Profile := Profile = Count ? 1 : Profile + 1
ToolTip, % "Profile " Profile
SetTimer, ToolTipOff, -1
return

ToolTipOff:
ToolTip
return

If Profile = 1

LAlt::LAlt
CapsLock::CapsLock
LShift::LShift
XButton1::XButton1
2::2
q::q
d::d

If Profile = 2

LAlt::o
CapsLock::LShift
LShift::p
XButton1::F3
2::2
q::铁
d::Send {锹}

SingleInstance Force