But I want it to refresh after pressing CTRL + 3 for example
I tried refreshing it via loading up the ahk file after a hotkey but that didn't work...
Code: Select all
#SingleInstance Force
randomTrack := Random(1, 2)
isMuted := false
MsgBox "Controls:`nCTRL + 2 | Opens up the terminal`nCTRL + 3 | Loads a random song/track in tracks folder`nCTRL + 4 | Switchs to a mute song track"
^2::
{
Run "wt.exe"
}
^3::
{
SoundPlay "F:\Games\MAZ folder\Entries\tracks\track-" . randomTrack . ".mp3"
;loads track-1 or track-2 depending on randomTrack
}
^4::
{
isMuted := True
if isMuted = true {
SoundPlay "F:\Games\MAZ folder\Entries\tracks\mute track.mp3"
}
}