Results 1 to 12 of 12

Thread: Splash Screen

  1. #1

    Thread Starter
    Addicted Member vigge89's Avatar
    Join Date
    May 2002
    Location
    Sweden
    Posts
    172

    Splash Screen

    I want to make a Splash Screen that after 5 seconds wuits itself and opens a new exe-file, but i dont know how to do becuase im a newbie in VB script....
    Can anyone help me?


  2. #2
    New Member
    Join Date
    May 2002
    Posts
    8
    On the form, add a timer. Once the form has been loaded, in the form_load() proc, enable it.

    VB Code:
    1. ' In the Timer
    2. Dim Run as Long
    3.  
    4. Run = Shell("C:\MyProgramme\FileName.exe")
    5. Unload Me: End

    Set the timers interval to 5000 (5 Secs)

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Add a timer, set it's interval to 5000

    in the timer's event


    Shell "c:\file.exe"
    Unload me




    PS: what's "wuits"?

  4. #4
    New Member
    Join Date
    May 2002
    Posts
    8
    Actually, take out the unload me

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Mendhak Syndrome 2

  6. #6

    Thread Starter
    Addicted Member vigge89's Avatar
    Join Date
    May 2002
    Location
    Sweden
    Posts
    172
    can u do something like:
    open a file in the same map as the exe?
    like: Shell "appdrive+appdir+file.exe"


  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by vigge89
    can u do something like:
    open a file in the same map as the exe?
    like: Shell "appdrive+appdir+file.exe"
    Shell App.Path & "filename.exe"

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by mendhak


    Shell App.Path & "filename.exe"
    [pickybugboymode] Shell App.Path & "\filename.exe"[/pickybugboymode]

    afternoon frog
    -= a peet post =-

  9. #9
    Armbruster
    Guest
    Originally posted by peet


    [pickybugboymode] Shell App.Path & "\filename.exe"[/pickybugboymode]

    afternoon frog
    Well . . . since you were being picky, I will too!!!! If your app is in the root of the c drive then app.path = C:\ so your code would try to open c:\\filename.exe ( I know cause this burned me once! )

    So, it should be . . .
    VB Code:
    1. If right(app.path,1) = "\" then
    2.    Shell App.Path & "filename.exe"
    3. Else
    4.    Shell App.Path & "\filename.exe"
    5. End if

  10. #10
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    geeeees Armbruster u'r the king of pickyness !!
    -= a peet post =-

  11. #11
    Armbruster
    Guest
    Originally posted by peet
    geeeees Armbruster u'r the king of pickyness !!
    All bow before king anal

  12. #12
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by Armbruster


    All bow before king anal
    bowing

    then app.path = C:\ so your code would try to open c:\\filename.exe ( I know cause this burned me once! )
    shame on u !

    saving u'r app in the root of C
    -= a peet post =-

Posting Permissions

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



Click Here to Expand Forum to Full Width