In a message regarding Re: How to start a DOS-program with arguments? dated
Thu, 29 Dec 2005 23:21:38 +0100, Bengt Falke said that ...

> It can run unattended because it just record some mp3-file comming
> through a certain port.
> This is an example of a commandline I am using now:  c:/streamripper -d
> d:/ogg/streamripper - r http://66.28.204.187:7070

Sorry, your reply didn't arrive before I went to bed.
On getting up, I tried building the simple beginnings of your project.
No error checking yet, but the idea's there.

I opened a new copy of the RB IDE and it presented me with a project
containing a single window named Window1

I double-clicked on Window1 and dragged an EditField onto the window.

In the propert pane on the right, I changed the name of the EditField from
EdtField1 to URLfield.

I then dragged a Pushbutton onto the window, changed its name to RipButton
and its caption from Untitled to Play.

I then double-clicked on the button in the window. This opened an event
handler name Action.

In there, I typed

  Dim s As String
  Dim sh As New Shell

  s = "c:/streamripper -d d:/ogg/streamripper - r "
  s = s + URLfield.Text

  sh.Execute s

I then saved the project and pressed the Run button.
Once the program runs , you can test the Play button on the window.

The window needs it's title changed, the play button probably needs to
check there's a valid url in the URLfield and of course it needs to be
built.

But that bare bones program should run if you treat it gently.

--
Steve Garman
Using REALbasic 2005r4 Professional on Windows XP Pro


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to