Sign in to follow this  
Followers 0
Faustvii

Help Alarm

2 posts in this topic

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)
WEnd

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

[Settings]
AlarmSound=wakeup.mp3
Time=21:48:00

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



Yes that did work ty very much :P

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  
Followers 0