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

[Autoupdater] One question about making a custom msgbox ^^


Wirbelwind
 Share

Recommended Posts

**Hi to all !  :cheesy:**

Recently i've downloaded the Auto Updater
to update my game when needed  :P

**But i have one question !**

For exemple :

![](http://i.imm.io/mThV.gif)

A think like this :

```
if UpdateUrl not reachable then
msgbox("Sorry the website is down !")
endif
```
**Or a progress-bar ^^**

Sorry if my english is not so good, because i'm french  :P :P

**THANKS TO ALL !**
Link to comment
Share on other sites

Thanks for help  :P

Humm i don't know so ^^

I think this is possible to do that
with some "if" "then" etc ^^

I'm not a godd at that .. erf :)

Well, Now i just comment this line :
```
VersionCount = GetVar(App.Path & "\tmpUpdate.ini", "FILES", "Versions")
```
I don't get error, but says that he could connect to the offline website lol  :cheesy:

**Well, i think, i can't get anymore of that  :P**
Link to comment
Share on other sites

@Wirbelwind:

> Thanks for help  :P
>
> Humm i don't know so ^^
>
> I think this is possible to do that
> with some "if" "then" etc ^^
>
> I'm not a godd at that .. erf :)

That is an error you can't change the errors you can only to fix them
Link to comment
Share on other sites

@Lumiere:

> That is an error you can't change the errors you can only to fix them

Well i finally found it !  :cheesy:

*happy* lol ^^

**This is it :**
very basic, i'm nooby at that but i'll try to add things like "case" and "select case" ^^

> Public Sub Update()
>
> On Error GoTo UpdateError
>
> **[some codes…]**
>
> UpdateError:
> 'MsgBox Err.Description
>
> If Err.Number = 13 Then
>   MsgBox "The web server is off"
> Else
>   MsgBox "Other error"
> End If
>
> End Sub

![](http://i.imm.io/mTP4.gif)
Link to comment
Share on other sites

@Wirbelwind:

> Well i finally found it !  :cheesy:
>
> *happy* lol ^^
>
> **This is it :**
> very basic, i'm nooby at that but i'll try to add things like "case" and "select case" ^^
>
> ![](http://i.imm.io/mTP4.gif)

So that's you were trying i see
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...