lolada 1 Posted June 3, 2016 Report Share Posted June 3, 2016 Hello guys, any way to put browser playing an alert sound when element exists till u click it? Without using windows media player. Like a browser alert Quote Link to post Share on other sites
pash 504 Posted June 3, 2016 Report Share Posted June 3, 2016 use plugin. Quote Link to post Share on other sites
lolada 1 Posted June 3, 2016 Author Report Share Posted June 3, 2016 Wich plugin ur talking about Quote Link to post Share on other sites
abbas786 78 Posted June 3, 2016 Report Share Posted June 3, 2016 Wich plugin ur talking about There are few other ways to generate a beep sound 1) Download this file http://www.frank-buss.de/beep/beep.exe (direct link to exe) . Kindly make sure to check for virus. It works with following syntax: beep <frequency in Hz> <duration in ms> Call it using shell plugin 2) If you are having Ubot Developer Version, you can use this python command If you have python 2.x , call this command python -c "print '\7'" Hope it helps 2 Quote Link to post Share on other sites
abbas786 78 Posted June 3, 2016 Report Share Posted June 3, 2016 Here are few more options in python 1) import winsound Freq = 2500 # Set Frequency To 2500 Hertz Dur = 1000 # Set Duration To 1000 ms == 1 second winsound.Beep(Freq,Dur) The winsound.Beep can be used wherever you want the Beep to occur. 2) import winsound # for sound import time # for sleep winsound.Beep(440, 250) # frequency, duration time.sleep(0.25) # in seconds (0.25 is 250ms) winsound.Beep(600, 250) time.sleep(0.25) 2 Quote Link to post Share on other sites
lolada 1 Posted June 3, 2016 Author Report Share Posted June 3, 2016 Thanks for ur answers but i dont own python and the exe method dont works, any other solution possible that u know? :S Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 4, 2016 Report Share Posted June 4, 2016 Thanks for ur answers but i dont own python and the exe method dont works, any other solution possible that u know? :S If you have the developer edition you can run python inside of Ubot just type python in the search bar. Quote Link to post Share on other sites
Jaro 6 Posted October 5, 2020 Report Share Posted October 5, 2020 If you are interested in a nice solution, so far I solved it and it works also in compiled bots with this .bat file: @echo off set "file= your_sound_file_path.mp3" ( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) echo Sound.URL = "%file%" echo Sound.Controls.play echo do while Sound.currentmedia.duration = 0 echo wscript.sleep 100 echo loop echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >your_sound_file_path.vbs start /min your_sound_file_path.vbs ...and then just run it for example like this:plugin command("Advanced Shell.dll", "shell hidden", "{$special folder("Application")}\\your_bat_file_path.bat", "Yes") To make your alerts even cooler, you can have your compiled bots even talk to you using text to speech services like this: https://readloud.net/english/american/2-girl-s-voice-sally.html Hope that helps and have a great day! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.