Jump to content
UBot Underground

Recommended Posts

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

Link to post
Share on other sites

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 :)

 

 

 

 

  • Like 2
Link to post
Share on other sites

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)
  • Like 2
Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 4 years later...

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!
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...