!h:: ; Alt + H if (GetHealth() < healthThreshold) UseItem("Health Potion")
healthThreshold := 50 ; adjust this value tibia autohotkey scripts