Results 1 to 6 of 6

Thread: make a delay in startup programs

  1. #1
    Variable Bitrate michaelrj9's Avatar
    Join Date
    Feb 2005
    Location
    Huntsville, AL
    Posts
    288

    make a delay in startup programs

    Hi all hope someone has a answer to this.

    I am trying to delay the startup of Road Runner when window starts by a few seconds.Is there any way to do this?

    I just bought a couple of the serial to usb adapters for my ir reciever & lcd display (to resume hibernation)

    My problem in when windows comes back from hibernation it re initializes the USB serial adapter and does not have enough time to finish the re initialization when Road Runner is already started. So I have to close down Road Runner and open it up again to get it to work with the devices again.

    So is there ay way to delay the startup up of Road Runner For a few seconds?
    Thanks
    Michael

  2. #2
    Phone Control Moderator Chaos_666's Avatar
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    111
    Hi There

    Had the same Problem and used a vbscript i found on a german website.
    not sure if this will work for hibernate.
    Code:
     
    Option Explicit
    Dim objShell
    Dim intWarten  
    intWarten = 120000    ' Millisekunden
    WScript.Sleep intWarten
    Set objShell = Wscript.CreateObject("Wscript.Shell")
    objShell.Exec ("%windir%\System32\taskmgr.exe")
    
    ' () Copyright 2004 www.Giza-Web.de
    The 120000 are milliseconds an behind objShell.Exec is the Path to your app.

    THX
    Chaos

  3. #3
    Variable Bitrate Mr.Fabio's Avatar
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    261
    there is a command in windows NT-2k-xp that can be used to wait some seconds "sleep.exe", but i think probably is unuseful resuming from hibernation....
    Fabio

    _______________________
    Travla C134
    Jetway J7F2WE 1Gb DDR2 - HD SATA 3.5" 80Gb + HD 2.5" 40Gb - Lilliput 7" TS - Holux GR-213 - Bluetooth - Belkin 802.11g WiFi - Silabs Radio - HTC Leo

    RoadRunner - PC Navigator 7.1 - FreeFone

  4. #4
    FLAC strohj's Avatar
    Join Date
    Aug 2004
    Location
    Pearland
    Posts
    1,345
    Quote Originally Posted by Chaos_666
    Hi There

    Had the same Problem and used a vbscript i found on a german website.
    not sure if this will work for hibernate.
    Code:
     
    Option Explicit
    Dim objShell
    Dim intWarten  
    intWarten = 120000    ' Millisekunden
    WScript.Sleep intWarten
    Set objShell = Wscript.CreateObject("Wscript.Shell")
    objShell.Exec ("%windir%\System32\taskmgr.exe")
    
    ' () Copyright 2004 www.Giza-Web.de
    The 120000 are milliseconds an behind objShell.Exec is the Path to your app.

    THX
    Chaos
    did this work for you when resuming from hibernation?.. and if so.. how did you run the script during resume??
    Pentium 4m 1.5GHz|MB896|Roadie Extreme|XM-Direct|Rikaline 6010|T-View 7"|Streetdeck|160gb Western Digital|1Gb DDR2-533 Ram

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    There's a new option in RR to disable the hibernate handling (this would prevent the serial port from closing) -- It's something to try... otherwise, "IF" you use the menu to hibernate, you can make the command "HIBERNATE||RUNW;!<PATH+APP+PARS>" to make it wait.. (it will hibernate before the runw gets executed and then on resume it should run it/wait -- just something else to try..) but I can very easily add a tweak option to wait a few specified seconds before resuming RR when coming out of hibernate -- woud that help ?
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  6. #6
    FLAC strohj's Avatar
    Join Date
    Aug 2004
    Location
    Pearland
    Posts
    1,345
    that would be awesome.. if you had the option of telling it to wait until USB devices are initialized upon resuming.. but then I am running frodoplayer.. and i would still be stuck...

    maybe Frodo could add this to take 4 as well.. right there with the 5 million other development requests...
    Pentium 4m 1.5GHz|MB896|Roadie Extreme|XM-Direct|Rikaline 6010|T-View 7"|Streetdeck|160gb Western Digital|1Gb DDR2-533 Ram

Similar Threads

  1. Programs required
    By vwjti18t in forum Road Runner
    Replies: 1
    Last Post: 02-28-2005, 04:36 AM
  2. Startup is too fast!!!
    By EBFoxbat in forum General MP3Car Discussion
    Replies: 17
    Last Post: 02-05-2005, 10:20 PM
  3. What skinning Programs do you use to skin your programs?
    By bry21317 in forum Software & Software Development
    Replies: 2
    Last Post: 01-12-2005, 02:26 AM
  4. Stand-alone programs (no installation needed)
    By d_sellers1 in forum Software & Software Development
    Replies: 1
    Last Post: 07-19-2004, 07:45 AM
  5. Is there somewhere where it says what programs are installed?
    By THEMP3KID in forum General MP3Car Discussion
    Replies: 4
    Last Post: 06-10-2002, 10:33 AM

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
  •