Results 1 to 8 of 8

Thread: Stop Winamp on launching radio application

  1. #1
    Newbie series2's Avatar
    Join Date
    Apr 2008
    Posts
    16

    Stop Winamp on launching radio application

    Hi guys,

    Nearly finished my (portable) install, just got one minor issue, and I'm sure the answer is on here somewhere but I just can't find it.

    I am using a usb DAB tuner, which works a treat. I've modified a skin and managed to embed the application software.

    What I now need is when I launch the app, It will stop winamp playing. I don't want to mute any of the audio lines, as it uses wave audio. Would be nice if I could make winamp resume on exiting the radio app, but this is less important.


    Cheers,
    Sim.

  2. #2
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Your two cmd lines your looking for are

    Used to save audio player playing status before switching:
    "SETVARBYCODE;STATUS;STATUS||PAUSE"

    Used to set audio player back to the state before the switch:
    "EVAL;RESULT;("$STATUS$";"PLAY")||BYVAR;RESULT;<<P LAY"
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  3. #3
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,347
    Blue, man, you're complicating things. The man wants a simple pause/resume. The answer is to append your command that runs your radio app with "PAUSE||", i.e., put whats between the quotes at the beginning of the command you created to load your radio app skin. To resume, just add "||Play" to the end of your exit command.

    Now if you really want to get complicated, you could set up differing variables based on ACTIVESOURCE like I did for my POWERMON ACC status automation.
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

  4. #4
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    @GizmoQ: I' recommend BlueZX's way. With your example WinAMP will always start playing, no matter if it was playing before or not.
    With BlueZX's example WinAMP will just start playing when it was playing before.

  5. #5
    Newbie series2's Avatar
    Join Date
    Apr 2008
    Posts
    16
    Quote Originally Posted by Blue ZX3 View Post
    Your two cmd lines your looking for are

    Used to save audio player playing status before switching:
    "SETVARBYCODE;STATUS;STATUS||PAUSE"

    Used to set audio player back to the state before the switch:
    "EVAL;RESULT;("$STATUS$";"PLAY")||BYVAR;RESULT;<<P LAY"
    I know this is a stupid question, but where would I put the above lines?

    I have managed to get it to work using Gizmo's method, but have used "PAUSE||........." in the skin's launch command & "..........||RESUME" in it's close command. I have tested it with the audio player in Stop, Play & Pause modes and it works, but would also like to test Blue's method.

    Thanks for all the help,
    Sim.

  6. #6
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,347
    Quote Originally Posted by series2 View Post
    I know this is a stupid question, but where would I put the above lines?

    I have managed to get it to work using Gizmo's method, but have used "PAUSE||........." in the skin's launch command & "..........||RESUME" in it's close command. I have tested it with the audio player in Stop, Play & Pause modes and it works, but would also like to test Blue's method.

    Thanks for all the help,
    Sim.
    You're Welcome.
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

  7. #7
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,700
    Blog Entries
    1
    Sorry, but I tend to agree with Blue and Konrad. The "Play" command is a toggle actually, if you send the command when winamp is playing it will pause, if you send a gain, it will resume playack. Also, the bycode will "remember" if you had winamp playing or not, mayby you had it paused, stopped ect, and using the ||Play" will always start winamp when leaving the radio screen every time.

    Put this in your exectbl.ini:
    Code:
    "StartDABtuner", "SETVARBYCODE;STATUS;STATUS||PAUSE||Load;dab tuner app and skin here"
    "QuitDABtuner", "EVAL;RESULT;("$STATUS$";"PLAY")||BYVAR;RESULT;<<PLAY||ESC"
    For your button code in the skin, to launch the radio tuner, use the command "StartDABtuner"


    You will need to add the information to the end of the first line that you use to launch the app and skin to embed it in.

    On the exit command on the radio tuner skin use "QuitDABtuner"
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  8. #8
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    You simply use the supplied lines inplace of your play/resume cmds

    [Edit]

    I was a dash late to the reply's I see....
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

Similar Threads

  1. wintv radio not launching when i press radio
    By dnkyntz in forum RR Bug Tracker
    Replies: 4
    Last Post: 12-23-2005, 01:49 AM
  2. Problem launching fullscreen application
    By jonmurua in forum RR Bug Tracker
    Replies: 1
    Last Post: 07-17-2005, 06:17 PM
  3. RR 03-06-05 - Radio Preview ...
    By guino in forum Road Runner
    Replies: 37
    Last Post: 07-04-2005, 01:58 PM
  4. Replies: 0
    Last Post: 03-20-2005, 01:34 PM
  5. replacing RADIO button with another Application ??
    By Don 944 LA in forum Centrafuse
    Replies: 11
    Last Post: 02-04-2005, 04:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •