Results 1 to 17 of 17

Thread: On start open file?

  1. #1
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601

    On start open file?

    As many of you know my fiancee is currently depolyed. Fortunately, she has a rather easy mission ... She is depolyed to Florida to the port at Jacksonville. However, we live in Indiana. So, there is a little distance ....

    I am sending her a laptop so that she will have a computer down there with her ....

    I want to set it up so that when she first turns it on it will go through and play a video to her at full screen in windows media player. Then after that I want it to play a song to her.

    I know it is a lot of mush. But, I do love her and want her to feel it. And I am sure she would be overjoyed that I put the thought into doing it for her....

    So, the big Q here is .... How do I do it?

    I know that with all of the geekdom we all have here at SG someone will be able to help me out .... and I would truly appreciate it ...

    Thanks a million for your help,

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  2. #2
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    *edit*

    I do want this to expire after the first log on or after the first few times.

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  3. #3
    Rehabilitated Spammer Massa's Avatar
    Join Date
    Dec 2002
    Location
    Houston, TX
    Posts
    2,432
    If you create a playlist with the stuff you want on it. I belive you can put it into the registry under:

    HKLM/Software/Microsoft/Windows/Current Version/RunOnce

    Enter a new string and enter the path of the playlist. I think it will work.

    Testin now,
    Dave

  4. #4
    SG DC Team Member Paft's Avatar
    Join Date
    Feb 2001
    Location
    Charlottesville, VA
    Posts
    5,736
    Make a batch file in the StartUp folder that runs the file, and then deletes both files when it's done.

  5. #5
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    Originally posted by Paft
    Make a batch file in the StartUp folder that runs the file, and then deletes both files when it's done.
    I don't want it to delete the files though ... I just want it to play em up to 5 log ins and then just leave em where they are

    I know I can just place a shortcut in the start menu but then it will always be there ... it is the full screen part that is getting me ....

    I don't know if there is a flag or what for it ..

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  6. #6
    Rehabilitated Spammer Massa's Avatar
    Join Date
    Dec 2002
    Location
    Houston, TX
    Posts
    2,432
    My way works. Enjoy!


    And the key removes itself after one startup.

  7. #7
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    Originally posted by Massa
    My way works. Enjoy!


    And the key removes itself after one startup.
    sweet ... but there is still that thing about full screen c'mon Dave .... think really hard!!!!!! HOW?????

    I will use this method when I get it and am ready to ship it out though

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  8. #8
    Elite Member Norm's Avatar
    Join Date
    Mar 2001
    Posts
    14,144
    I could do it.

    I could make it run five time (once after each bootup till it played five times, then never play again) and without deleting the files.

    I could also make Media Player go to max size, but not full screen.
    There may be a way, but not that I know of off hand.

    I could also have it play the song after the video.

    I could make one file you click to install it too so it would be easy for you, and even make it run 6 times, just so you could test it once.
    That's just the type of thing I like doing. It's "my bag" if you know what I mean.
    But I'll be damned if I would try to explain it to anyone in a step by step.
    It would take me a couple of hours to make, and debug.

    How are your Dos, or commandline skills?

    Are you rich

  9. #9
    SG DC Team Member Paft's Avatar
    Join Date
    Feb 2001
    Location
    Charlottesville, VA
    Posts
    5,736
    Does it involve a batch file, Norm?

    If so, I know where you're heading with it. Just have an increment counter somewhere on the computer that adds one until the fifth boot and self-destructs, while loading mplayer with a switch for max size.

  10. #10
    Elite Member Norm's Avatar
    Join Date
    Mar 2001
    Posts
    14,144
    Originally posted by Paft
    Does it involve a batch file, Norm?

    If so, I know where you're heading with it. Just have an increment counter somewhere on the computer that adds one until the fifth boot and self-destructs, while loading mplayer with a switch for max size.
    Yeah, a small batch file, installed using a self extracting exe using winrar or similar into a temp dir that places the batch in startup dir.

    If you want to start a program to max size this is what you need in the batch

    start /max (path to whatever.whatever)

    The movie, or song will open in whatever the default association is.

  11. #11
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    Originally posted by Norm
    I could do it.

    I could make it run five time (once after each bootup till it played five times, then never play again) and without deleting the files.

    I could also make Media Player go to max size, but not full screen.
    There may be a way, but not that I know of off hand.

    I could also have it play the song after the video.

    I could make one file you click to install it too so it would be easy for you, and even make it run 6 times, just so you could test it once.
    That's just the type of thing I like doing. It's "my bag" if you know what I mean.
    But I'll be damned if I would try to explain it to anyone in a step by step.
    It would take me a couple of hours to make, and debug.

    How are your Dos, or commandline skills?

    Are you rich
    well if I knew the flags to put in I could do a batch file on it ... but the five count I am uncertain about without using VB to put together a small app.

    As far as command line/DOS ..... I work in oracle 8i on a unix platform daily. So, yeah .... I can bang out the code on it if I only knew what parameters to use

    Norm, just drop me a lil tip or two as far as how to accomplish the count and the full screen and I think I can knock it out

    Thanks,

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  12. #12
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    Originally posted by Norm
    Yeah, a small batch file, installed using a self extracting exe using winrar or similar into a temp dir that places the batch in startup dir.

    If you want to start a program to max size this is what you need in the batch

    start /max (path to whatever.whatever)

    The movie, or song will open in whatever the default association is.
    well, using a playlist will automatically associate the files to the kind of play list it is... So, I am covered there.

    The counter though ... that is still getting me
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  13. #13
    Elite Member Norm's Avatar
    Join Date
    Mar 2001
    Posts
    14,144
    Look back at my last post for starting in a max window. (not full screen, but not too shabby)

    For the five count, just use something like

    Make a file on the first pass named 1.txt (or whatever)
    Then included in the batch, check for 1,txt,
    if exist 1.txt rename to 2.txt
    if exist 2.txt rename to 3.txt
    etc
    if exist 5.txt goto cleanup
    :cleanup
    copy the movie and the song from startup dir somewhere for safe keeping, and delete the batch from startup.

    get my drift?

  14. #14
    SG DC Team Member Paft's Avatar
    Join Date
    Feb 2001
    Location
    Charlottesville, VA
    Posts
    5,736
    Originally posted by lance-tek
    well, using a playlist will automatically associate the files to the kind of play list it is... So, I am covered there.

    The counter though ... that is still getting me
    Can a batch file read in data from a .txt? If so, store the .txt in the TEMP directory and every time the batch file starts, have it call something like:

    x = file(counter.txt,1) [filename,line - just an example]
    IF (x < 5)
    start /max (file.mpg)
    x = x + 1 > counter.txt
    ELSE
    del counter.txt
    del batch.bat

    Something like that could work, or I could bang out a C++ program that the batch file'd call.

  15. #15
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    got ya

    thanks for the help .. I think I will knock this one out tomorrow and test it here to see how it goes

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

  16. #16
    Elite Member Norm's Avatar
    Join Date
    Mar 2001
    Posts
    14,144
    Lots of ways to do the five count, whatever is easiest I guess.

    VB is nicer than a Dos window. Does everything hidden.

    I keep telling myself I will learn Vb someday. I have the books, and the VB 6 program. bought it a couple of years ago and still haven't done much with it.

    Someday

  17. #17
    SG DC Team Member lance-tek's Avatar
    Join Date
    Apr 2001
    Location
    Indianapolis, IN
    Posts
    5,601
    Originally posted by Norm
    Lots of ways to do the five count, whatever is easiest I guess.

    VB is nicer than a Dos window. Does everything hidden.

    I keep telling myself I will learn Vb someday. I have the books, and the VB 6 program. bought it a couple of years ago and still haven't done much with it.

    Someday
    yeah it is like the Macromedia MX studio and the Paint Shop Pro 7 I have ....


    Never learned to really use em yet .... keep saying someday ....

    -lance
    A mistake does not become an error until one refuses to correct it

    Folding for the future

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
  •