Frankie Paul Posted April 7, 2006 Share Posted April 7, 2006 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 Link to comment Share on other sites More sharing options...
flyingboz Posted April 7, 2006 Share Posted April 7, 2006 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 youlook 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. Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 7, 2006 Share Posted April 7, 2006 (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! P.S. flyingboz beat me to it... more coffee! Type faster! Edited April 7, 2006 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 Link to comment Share on other sites More sharing options...
Frankie Paul Posted April 7, 2006 Author Share Posted April 7, 2006 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 hotkeysyes a while loop damn it why did i not think of that one before thank you buddy thank you very much rankie Paul Link to comment Share on other sites More sharing options...
CyberSlug Posted April 7, 2006 Share Posted April 7, 2006 Old but should still workhttp://www.autoitscript.com/forum/index.ph...wtopic=8187&hl= Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Frankie Paul Posted April 7, 2006 Author Share Posted April 7, 2006 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! 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 7, 2006 Share Posted April 7, 2006 (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 ? 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 April 7, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now