Jump to content

Help Alarm


Faustvii
 Share

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...