Jump to content
Sign in to follow this  

Help Alarm

Recommended Posts


Hey this is my code of the alaram

#include <Date.au3>
HotKeySet("{ESC}", "Terminate")
$Alarmfile = iniread ( "alarmsetup.ini", "Settings", "Alarmsound", "wakeup.mp3" )
$Time1 = iniread ( "alarmsetup.ini", "Settings", "Time", "" )

SoundSetWaveVolume (100)

While 1
    $time = _NowTime(5)
    sleep ( 250 ); sleep
    sleep ( 250 ); sleep
    sleep ( 250 ); sleep
    sleep ( 250 ); sleep
    If  $time = $Time1 Then SoundPlay ($Alarmfile, 0)

Heres the ini

;AlarmSound needs to be in same foldor as alarm.exe dont remove the
;Time is the time you want it to alarm


i cant get it to work it doesnt start the sound if i use ini read :P can anyone help?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.