← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #157094]: is there a function to play a beep / sound in sikuli ?

 

Question #157094 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/157094

    Status: Open => Answered

RaiMan proposed the following answer:
Since we have access to the Java level in Sikuli (thanks to Jython),
this should principally work:

import java.awt.Toolkit # only once per script
java.awt.Toolkit.getDefaultToolkit().beep()

It works on my Mac OS X 10.6.

Tested it on my Win7 32Bit (running on a Mac mini via BootCamp): did not produce any error, but does not beep. 
So if you are on Windows on a "real" Windows machine, you should give it a try.

Please give some feedback.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.