Jump to content
Sign in to follow this  
drakonis

Is there an audio alarm function in response on IF?

Recommended Posts

drakonis

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
trancexx

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
drakonis

thank you guys im gonna try this out

Share this post


Link to post
Share on other sites
drakonis

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
trancexx

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
drakonis

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
Mat

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
drakonis

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
Mat

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  

×

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.