|
-
May 12th, 2002, 10:08 AM
#1
Thread Starter
Addicted Member
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?
-
May 12th, 2002, 10:21 AM
#2
New Member
On the form, add a timer. Once the form has been loaded, in the form_load() proc, enable it.
VB Code:
' In the Timer
Dim Run as Long
Run = Shell("C:\MyProgramme\FileName.exe")
Unload Me: End
Set the timers interval to 5000 (5 Secs)
-
May 12th, 2002, 10:24 AM
#3
Add a timer, set it's interval to 5000
in the timer's event
Shell "c:\file.exe"
Unload me
PS: what's "wuits"?
-
May 12th, 2002, 10:24 AM
#4
New Member
Actually, take out the unload me
-
May 12th, 2002, 10:24 AM
#5
Mendhak Syndrome 2
-
May 12th, 2002, 10:29 AM
#6
Thread Starter
Addicted Member
can u do something like:
open a file in the same map as the exe?
like: Shell "appdrive+appdir+file.exe"
-
May 12th, 2002, 10:31 AM
#7
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"
-
May 12th, 2002, 10:59 AM
#8
-= B u g S l a y e r =-
Originally posted by mendhak
Shell App.Path & "filename.exe"
[pickybugboymode] Shell App.Path & "\filename.exe"[/pickybugboymode]
afternoon frog
-
May 12th, 2002, 11:06 AM
#9
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:
If right(app.path,1) = "\" then
Shell App.Path & "filename.exe"
Else
Shell App.Path & "\filename.exe"
End if
-
May 12th, 2002, 11:08 AM
#10
-
May 12th, 2002, 11:12 AM
#11
-
May 12th, 2002, 11:14 AM
#12
-= B u g S l a y e r =-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|