You are not logged in.

#1 2004-04-20 06:31:44

gid13
Member
Registered: 2004-03-19
Posts: 19

beginner scripting help (dcop maybe?)

Hey all. I'm trying to write a simple script that will start a media player (amarok), load a bunch of mp3s, start playing, skip to the next track (since amarok starts at 1 all the time and it's annoying), and hide it to the tray. I have successfully accomplished all but the skipping and the hiding to the tray.

For skipping, I know the command (dcop amarok player next), but I think it's trying to execute before amarok is capable of dealing with it. Is there a handy way to make the script wait or any better ways of dealing with this that someone could recommend?

For hiding to the tray... I simply don't know. Any thoughts?

Thanks.

Offline

#2 2004-04-20 09:37:19

shadov
Member
From: Finland
Registered: 2004-02-28
Posts: 40

Re: beginner scripting help (dcop maybe?)

You could try the sleep command for making the script wait. But perhaps someone knows a better solution?


Application of abstract techniques and utilities to solving a particular business problem is NOT a patentable idea. It is a fundamental concept of the IT industry.

Offline

#3 2004-04-21 02:18:46

gid13
Member
Registered: 2004-03-19
Posts: 19

Re: beginner scripting help (dcop maybe?)

Thanks for the tip. Possibly not the most elegant solution, but it works and it taught me a command. smile

So, any ideas on minimizing it to the tray?

Offline

Board footer

Powered by FluxBB