Hello, please can you help me with this script?
Why when I click the tray icon, the script pauses?
#include <GUIConstants.au3>
#include <Sound.au3>
Opt("TrayMenuMode", 3)
Opt("TrayAutoPause", 0)
$acc_job_sound = @DesktopDir&"\siren.mp3"
Global $t_ricev
Global $t_end
Global $job_sound
$job_sound = _SoundOpen($acc_job_sound)
TrayCreateItem("")
$t_chiudi = TrayCreateItem("Chiudi")
Start_alarm()
While 1
$tsg = TrayGetMsg()
Select
Case $tsg = $t_ricev
Stop_alarm()