Sign in to follow this  
Followers 0
Frankie Paul

Making Sound

7 posts in this topic

hey all,

what i am trying to do is make a beep or a sound that will interact with you untill you click ok or a countinue button. but i have no clue how to make the sound play and stop like that if anyone could help i would aperciate it.

thank you


ƒrankie Paul

Share this post


Link to post
Share on other sites



hey all,

what i am trying to do is make a beep or a sound that will interact with you untill you click ok or a countinue button. but i have no clue how to make the sound play and stop like that if anyone could help i would aperciate it.

thank you

look at Beep() to generate your noise, and use a hotkey to toggle beep state. Set your duration long enough (i don't know what the max duration allowed by beep() is , or run it in a while loop.

Something similar to the toggle pause example in the help file for hotkeys


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

hey all,

what i am trying to do is make a beep or a sound that will interact with you untill you click ok or a countinue button. but i have no clue how to make the sound play and stop like that if anyone could help i would aperciate it.

thank you

A demo using Beep() and HotKeySet():

; Test beep till hotkey
HotKeySet("{PGUP}", "_StopBeep")
While 1
    Beep(1000, 500)
    Sleep(500)
WEnd

Func _StopBeep()
    Exit
EndFunc

Hope that helps! :think:

P.S. flyingboz beat me to it... more coffee! Type faster!

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

look at Beep() to generate your noise, and use a hotkey to toggle beep state. Set your duration long enough (i don't know what the max duration allowed by beep() is , or run it in a while loop.

Something similar to the toggle pause example in the help file for hotkeys

yes a while loop damn it why did i not think of that one before thank you buddy thank you very much


ƒrankie Paul

Share this post


Link to post
Share on other sites

A demo using Beep() and HotKeySet():

; Test beep till hotkey
HotKeySet("{PGUP}", "_StopBeep")
While 1
    Beep(1000, 500)
    Sleep(500)
WEnd

Func _StopBeep()
    Exit
EndFunc

Hope that helps! :think:

P.S. flyingboz beat me to it... more coffee! Type faster!

that works too there just one small problem i am testing software with it and i want it to tell me when a certain screen comes up because it will need me to input a cd so i don't want to use hot keys i want it to just stop when i hit the ok button to let the software know there is a cd...if that make sence ? :(

ƒrankie Paul

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

that works too there just one small problem i am testing software with it and i want it to tell me when a certain screen comes up because it will need me to input a cd so i don't want to use hot keys i want it to just stop when i hit the ok button to let the software know there is a cd...if that make sence ? :think:

This version does nothing but wait until Notepad is opened, then it beeps until close it:

; Test beep while window exists
While Not WinExists("Untitled - Notepad")
    Sleep(500)
WEnd
SplashTextOn("Beeping Window Test", "Close Notepad to stop beeping...", 300, 50)
While WinExists("Untitled - Notepad")
    Beep(1000, 500)
    Sleep(500)
WEnd

P.S. Tweaked to put up a splash telling the user what to do...

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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