Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Auto updater client launch


Sir Topham Hatt
 Share

Recommended Posts

Hello everyone I've been trying to figure out just what am I doing wrong? I'm trying to make the auto updater run the client when you press the exit button.

Source:
```
Private Sub lblExit_Click()
    ' call the game destroy sub and start the game

    Dim Res
    Dim Filename
      Filename = "client.exe"
      Res = Shell("start.exe " & Filename, vbHide)

    DestroyUpdater

End Sub
```
Link to comment
Share on other sites

Use code tags.

```
Private Sub lblExit_Click()
    ' call the game destroy sub and start the game

    Shell("client.exe", vbNormalFocus)

    DestroyUpdater
End Sub

```
Things to note:
* I assumed your client is titled "client.exe".* I use vbNormalFocus to start the client normally and give it focus.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...