• Log in or sign up for an account here: https://www.sythe.org/login

Need help minimizing/maximising

hailmatt69

Member
Joined
Mar 10, 2007
Sythe Gold
0
Messages
85
Location
Canada
Ok I'm a complete noob to VB6 and I'm just making a simple exe file to go on my WoW install DVD, to organize all the other exe's on there.

I have most of it done, but I'm trying to get the file to minimize when another exe is brought up, and return when that exe closes.

This is what I have so far (on my command button):
Code:
Private Sub Command1_Click()
Dim RetVal

Form1.WindowState = 1  'Minimize window

If Option1.Value = True Then
RetVal = Shell("Installer.exe", 1)
End If

If Option2.Value = True Then
RetVal = Shell("WoW-2.0.3-enUS-patch.exe", 1)
End If

If Option3.Value = True Then
RetVal = Shell("wow-2.0.3.6299-to-2.0.12.6546-enus-patch.exe", 1)
End If

If Option4.Value = True Then
RetVal = Shell("WoW-FE 0.63.exe", 1)
End If

End Sub

What do I need to put in so the window comes back up after the selected exe, is finished with?
 
Covey, it doesn't really matter if I remember right..

Also, you would have to like monitor the windows for changes or whatever. I haven't really done any of that, so I couldn't help you. I know cruel has experimented with stuff like that though, so maybe he will be of some help.
 
oo i see, i thought u wanted that window when executed to pop up IN FRONT of this program.

you could use the findwindowtitle api, and keep it looping to see if it exists and when it doesn't pop your app up.
although looping with an api may take a pretty big drain on RAM
 
duelarena.gg
Back
Top