I got sick of manually changing BetPot from SSNL to Tourney and back so I came up with this (HotKey Shift&Alt-P)
Code:
+!p::
FileRead, bpdh, betpot_default_hotkeys.ahk
IfInString, bpdh, Tourney
{
StringReplace, bpdh, bpdh, Tourney, SSNL, all
FileDelete, betpot_default_hotkeys.ahk
FileAppend, %bpdh%, betpot_default_hotkeys.ahk
MsgBox, Pre-flop changed to SSNL
}
else
{
StringReplace, bpdh, bpdh, SSNL, Tourney, all
FileDelete, betpot_default_hotkeys.ahk
FileAppend, %bpdh%, betpot_default_hotkeys.ahk
MsgBox, Pre-flop changed to Tourney
}
reload
return