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

[EO] Web browser checking problem


Qazek
 Share

Recommended Posts

Hello!

I need help with one small mod for my game. I added Microsoft Internet Controler and now I need a modification wich could check websites on my in game web browser.

I tried to do something like that:

```

WebBrowser.Navigate = "www.google.com" <– website open button

If WebBrowser.Navigate = "www.google.com" Then <--- here is a problem because it can't check it
label.caption = "OK"
else
label.caption = "Only google page!!!"
end if
```
Link to comment
Share on other sites

Ok thank you all for answers. I found one bug with web adress - i need to use http:// and / at end. But it only works on google site:

So this is my google code:

```

Private Sub Command1_Click()
web.Navigate "http://www.google.com/" 'here I can use any adress
site.Caption = web.LocationURL
End Sub

Private Sub Command2_Click()
If web.LocationURL = "http://www.google.com/" Then 'but here adress must have http:// and at the end /
text.Caption = "Wszystko dziala ok! / OK' it's work"
Else
text.Caption = "Nie ma tej strony / Bad site"
End If
End Sub
```
And here is code of my game site:

```

Private Sub Command1_Click()
web.Navigate "http://www.diamond.ugu.pl/" 'open it
site.Caption = web.LocationURL 'label "site" caption
End Sub

Private Sub Command2_Click()
If web.LocationName = "http://www.diamond.ugu.pl/" Then '
text.Caption = "Wszystko dziala ok!/ Ok, it works"
Else
text.Caption = "Nie ma tej strony/something is wrong"
End If
End Sub
```
Only adress difference but with my website doesn't work
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...