Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: RR does not intercept shutdown - Resume not working

  1. #21
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    Update: I don't recommend Last Chance, it tends to hang the shutdown process and it goes to the logon screen rather than a shutdown.

    I'm exploring using a logoff or shutdown script through the group policy manager in windows. Will report back later.

  2. #22
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    Scripting through the group policy manager works, here's how you do it;

    Prepare your script (must be either a bat or exe)
    Start Group policy --- at the run command (Start - Run) type gpedit.msc
    Open User Configuration then window settings.
    Then Scripts (Logon/Logoff)
    Click on Logoff Click Properties

    Add whatever you want to run here (can also take parameters)

  3. #23
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    Ok, after much frustration, since logoff scripts and shutdown scripts both run after windows forces down Road Runner, I've found that using hibernate trigger and setting windows to hibernate works the best. Then in your script after the close Road Runner bit add "Shutdown (5)" at the end and the computer will shutdown rather than hibernate. I thought doing that with stand by would work but it causes errors.

    Anyway, I finally figured it out.

    Edit: Shutdown (5) is a force shutdown which will close your system down much faster.

  4. #24
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    Ok, I've been fighting with this for the last week working on options. What I've run into is that on a shutdown command via the power button my system shuts down too quickly for a script to properly close Road Runner. Trying to use hibernate trigger and diverting a suspend or hibernate command causes the system to hang and not shut down in a reasonable amount of time.

    So, what I've come up with is a script that will saveresume every 5 seconds as long as Road Runner is running otherwise it exits. It's essentially the same as the resumer plugin for winamp. (I can't use that plugin because it causes some issues, specifically with the winamp linein plugin)

    Here's the code for Autoit:
    Code:
    Sleep(5000)
    If ProcessExists("RoadRunner.exe") Then
    	;create SDK for COM with RR.  This must be done ONLY once per script
    	$rr = ObjCreate("RoadRunner.SDK")
    Else
    	Exit
    EndIf
    
    While 1
            If ProcessExists("RoadRunner.exe") Then
                ;replace COMMAND with your RR command
    			$rr.execute("SAVERESUME")
    			Sleep(5000)
    		Else
    			Exit
    		EndIf
    WEnd
    To run the script when Road Runner starts you need to add the following line to your ExecTBL.ini file: "ONSKINSTART","RUN;C:\[path]\[script file name]"

  5. #25
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    I just added this quick n easy feature to my RRExtended plugin as will run when rr is running and keeps one less prog running in the background.

    Its not released yet, but check it out when it is.
    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."

  6. #26
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    That's cool Blue. I actually reworked the code some last night. DFX doesn't work well when the main ExecTBL.ini has onskinstart commands.

    Here's the re-worked code if anyone cares:
    Code:
    Sleep(5000)
    While 1
    If ProcessExists("RoadRunner.exe") Then
    	Sleep(5000)
    	;create SDK for COM with RR.  This must be done ONLY once per script
    	$rr = ObjCreate("RoadRunner.SDK")
    	Do
                ;replace COMMAND with your RR command
    			$rr.execute("SAVERESUME")
    			Sleep(5000)
    	Until WinWaitNotActive("RoadRunner.exe")
    	Sleep(5000)
    EndIf
    WEnd
    This script should go into the startup folder in the start menu. It runs in the background and waits for Road Runner to load. Sometimes it gets cranky if you jump in and out of Road Runner over and over in a short period of time.

  7. #27
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    "Sometimes it gets cranky?" LOL

    There is actually a way to catch the object errors that your getting with the earlier ver but is one other reason that using a plugin is much nicer.
    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."

  8. #28
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    Well, what happens is that if you catch it after it's detected the process but quit before it does "$rr = ObjCreate("RoadRunner.SDK")" , the script will restart Road Runner.

    Or if you quit out at just the wrong moment and the script tries to save the resume file while you're quitting it errors out.

    I have no clue where to start with plugins. Autoit is frustrating enough at times. Infinite loops caused more gray hairs than I care to recount right now. I want my goto command back from basic.

  9. #29
    Newbie thwack's Avatar
    Join Date
    Sep 2005
    Location
    Adelaide, SA
    Posts
    54
    Thanks for all the ideas, I have been thinking about getting this working for a while.

    I created the script in AutoIT and compiled to exe, the only thing I changed was to increase the wait time before updates to 60 seconds. Now when I restart I have CPU usage at 99% for the AutoIT script, makes the computer hard to use!!

    I am running a 2Ghz Via chip so not a slow machine.

    Instead of this there are two other ways I have found that should achieve almost the same thing. RR has a native TIMER function.

    This from a post about refreshing streaming media but you get the idea.

    Add this to all skins to refresh lablels

    TMR,10

    In the ExecTBL.ini file

    "TIMER","",FM
    "TIMER","",XM
    "TIMER","",SR
    "TIMER","BYVAR;AUTOREFRESH;<<RELOADLIST"
    So if you put "TIMER","SAVERESUME" into the exectbl.ini this should do the same thing.

    OR

    What I have settled on is to add "SAVERESUME" to the "ONSONGSTART" value in Exectbl.ini. This way I would hear the same song as when I was last using the computer from the beginning but it would update everytime the song changed. Not having to start at the beginning of the playlist every time is great.

    Cheers
    Thwack
    Car PC -Jetway J7F2WE2G, 4Gb CF Boot, 32Gb CF Data, 1Gb Ram, M2-ATX PS, 8" 800x600 TS, SiLabs USB Radio, Garmin GPS15L, Ublox SBR-LS DR GPS, Fusion Brain, Multibay Card Reader, Panasonic Slotload DVD+-RW, Custom Fab Steel Case
    Car- 1988 Nissan Patrol 4WD

  10. #30
    FLAC Machinehead's Avatar
    Join Date
    Jun 2007
    Location
    hijacks small portable city
    Posts
    1,381
    That's kind of odd that the script is cranking up your CPU cycles like that. I haven't seen a noticeable change on my system, but it is a dual core 1.67Ghz.

    That Timer thing looks pretty promising, I'll have to explore it. I'd rather use that than a script. Does the "TMR,10" line set the time to 10 seconds or 10 minutes or neither?

    Edit: I found Chuck's thread about it. Thanks

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. New RR Version - GPS Not Working
    By mnetwork in forum Road Runner
    Replies: 2
    Last Post: 12-28-2007, 09:56 AM
  2. Set RR resolution on resume from hibernation?
    By htsource in forum Road Runner
    Replies: 5
    Last Post: 08-08-2007, 03:05 PM
  3. Phoco not working in RR Win 2000, help...
    By couteau in forum Road Runner
    Replies: 3
    Last Post: 09-06-2005, 09:04 PM
  4. ME to resume mp3 upon shutdown
    By Kamakazie2 in forum Media Engine
    Replies: 6
    Last Post: 11-28-2004, 02:20 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
  •