Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;; Tried removing the following auto-exec also
SoundPlay, C:\Users\AswinB\Downloads\great.mp3, 1
SoundPlay, C:\Users\AswinB\Downloads\great.mp3
MsgBox, %ErrorLevel%
SoundPlay, C:\Users\AswinB\Downloads\great.mp3, 1 ;stuck here
;
7::
SoundPlay, C:\Users\AswinB\Downloads\great.mp3, 1
SoundPlay, C:\Users\AswinB\Downloads\great.mp3
MsgBox, %ErrorLevel%
SoundPlay, C:\Users\AswinB\Downloads\great.mp3, 1 ;stuck here if auto-exec removed
Return
1::
Reload
;---- C:\Users\AswinB\Desktop\Doto+\test.ahk
;003: SendMode,Input
;004: SetWorkingDir,%A_ScriptDir%
;005: SoundPlay,C:\Users\AswinB\Downloads\great.mp3,1 (3.33)
;006: SoundPlay,C:\Users\AswinB\Downloads\great.mp3,1 (130.97)
;
;Press [F5] to refresh.