Sign in to follow this  
Followers 0
drakonis

Is there an audio alarm function in response on IF?

10 posts in this topic

so yeah i have an 'if ... then...' function. i need it to set off a loud audio alarm. is there such function? can some1 show meh please :D

Share this post


Link to post
Share on other sites



so yeah i have an 'if ... then...' function. i need it to set off a loud audio alarm. is there such function? can some1 show meh please :D

Funny that you ask... There is just that:

Global $a = Random(1, 102, 1)

If $a = 2^7 - 25 Then
    SetOffAudioAlarm(500, 36)
EndIf

You need 3.3.1.23 (gamma)


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

thank you guys im gonna try this out

Share this post


Link to post
Share on other sites

Funny that you ask... There is just that:

Global $a = Random(1, 102, 1)

If $a = 2^7 - 25 Then
    SetOffAudioAlarm(500, 36)
EndIf

You need 3.3.1.23 (gamma)

ok i check out that function but it seems i cant get it to work properly as i desired. is i possible to maybe lunch an .mp3 file instead of build in alarm?

Share this post


Link to post
Share on other sites

ok i check out that function but it seems i cant get it to work properly as i desired. is i possible to maybe lunch an .mp3 file instead of build in alarm?

Hardly.

Try other suggestion or something else.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Hardly.

Try other suggestion or something else.

ok is it possible for autoit scripts to run .exe files? i could simply convert mp3 to exe so it could be run hat way

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

well i couldnt find autoit gamma version. thats prolly why it doesnt work ;p.

hmm, Im sure I saw it somewhere....

Also look at sound functions, _SoundPlay etc. Then you can play tour own tune. All those functions are pretty easy to use too.

MDiesel

Edit: don't bother with the exe thing. but yes it is, use run ($sExe). I shouldn't be telling you this, you should do some research

Edited by mdiesel

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

hmm, Im sure I saw it somewhere....

Also look at sound functions, _SoundPlay etc. Then you can play tour own tune. All those functions are pretty easy to use too.

MDiesel

yeah but im really a begginer and so far i can hardly edit others scripts not mentioning writing my own ;p. sould play function u say. im looking for something that will take least memory as possible..

about exe. why i shouldnt bother

Edited by drakonis

Share this post


Link to post
Share on other sites

See here. its dead easy.

_SoundPlay.htm

and don't ask stupid questions. The best way to learn is to challange yourself, keep trying till you get it to work, and you will have learned the ape way, learn by logic and you'll be a bit more human. either way, you've learnt.

MDiesel

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