sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35893
Re: [Question #276726]: how may I play a sound file in my sikuli jython script
Question #276726 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/276726
Status: Answered => Solved
julie wong confirmed that the question is solved:
Thanks RaiMan. This is good to know and it works.
I am writing the following, hoping that others may benefit from my
experience.
I first used run() to launch the Windows Media Player to play my audio
files. Because I want the Player to exit after playing each sound file,
I passed to it 2 command line options: /start and /close. But Windows
Media Player ignores the /close flag and stays up. This causes my
Sikuli script to get stuck at the run() step.
I googled and found that with another media player MPC-HC (https://mpc-
hc.org/), I can also pass to it the options /start and /close, and
/close actually works with MPC-HC. So now I am using MPC-HC to play my
audio files in my Sikuli script.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.