| View previous topic :: View next topic |
| Author |
Message |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Feb 17, 2008 6:58 am Post subject: |
|
|
Just make an input box so people can put their own version in if it's updated
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sun Feb 17, 2008 8:06 am Post subject: |
|
|
I'm also interested in this.
How can i make an auto updater?.
Can't u just get the swf url from the website or something?
u could use inet to get the source right?
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
i__h4x Grandmaster Cheater Supreme
Reputation: 0
Joined: 09 Jun 2007 Posts: 1005 Location: i__<3's__wpe
|
Posted: Sun Feb 17, 2008 9:38 am Post subject: |
|
|
Dim source As String = ""
wb.Navigate("http://dragonfable.battleon.com/game/")
MsgBox(wb.IsBusy)
source = wb.DocumentText
Dim startpos As Integer = InStr(source, "FLASHVARS=" & ControlChars.Quote & "strFileName") + 22
If startpos = 0 Or source = "" Then Exit Sub
source = source.Remove(0, startpos)
Dim endpos As Integer = InStr(source, "bgcolor=" & ControlChars.Quote & "#530000") - 3
source = source.Remove(endpos, source.Length - endpos)
MsgBox("http://dragonfable.battleon.com/game/gamefiles/core.swf?strFileName=" & source)
Done in .net, but shouldnt be hard to change.
You just need a web browser control in order to view the source, then this chops out the relevant bit. Its not well coded, i was in a rush, but there you go, it should do the trick
_________________
Mes'a back!
 |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sun Feb 17, 2008 9:57 am Post subject: |
|
|
| i__h4x wrote: | Dim source As String = ""
wb.Navigate("http://dragonfable.battleon.com/game/")
MsgBox(wb.IsBusy)
source = wb.DocumentText
Dim startpos As Integer = InStr(source, "FLASHVARS=" & ControlChars.Quote & "strFileName") + 22
If startpos = 0 Or source = "" Then Exit Sub
source = source.Remove(0, startpos)
Dim endpos As Integer = InStr(source, "bgcolor=" & ControlChars.Quote & "#530000") - 3
source = source.Remove(endpos, source.Length - endpos)
MsgBox("http://dragonfable.battleon.com/game/gamefiles/core.swf?strFileName=" & source)
Done in .net, but shouldnt be hard to change.
You just need a web browser control in order to view the source, then this chops out the relevant bit. Its not well coded, i was in a rush, but there you go, it should do the trick |
Thanks.
| Code: | | Sorry, but you will have to wait 43108 seconds before you can give rep |
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Sun Feb 17, 2008 1:13 pm Post subject: |
|
|
| i__h4x wrote: | Dim source As String = ""
wb.Navigate("http://dragonfable.battleon.com/game/")
MsgBox(wb.IsBusy)
source = wb.DocumentText
Dim startpos As Integer = InStr(source, "FLASHVARS=" & ControlChars.Quote & "strFileName") + 22
If startpos = 0 Or source = "" Then Exit Sub
source = source.Remove(0, startpos)
Dim endpos As Integer = InStr(source, "bgcolor=" & ControlChars.Quote & "#530000") - 3
source = source.Remove(endpos, source.Length - endpos)
MsgBox("http://dragonfable.battleon.com/game/gamefiles/core.swf?strFileName=" & source)
Done in .net, but shouldnt be hard to change.
You just need a web browser control in order to view the source, then this chops out the relevant bit. Its not well coded, i was in a rush, but there you go, it should do the trick |
Gah, doesn't work tried all i can to change it, you should put it in ur swfloader so nobody gets problems
_________________
|
|
| Back to top |
|
 |
i__h4x Grandmaster Cheater Supreme
Reputation: 0
Joined: 09 Jun 2007 Posts: 1005 Location: i__<3's__wpe
|
Posted: Sun Feb 17, 2008 2:25 pm Post subject: |
|
|
What is the dll for the web browser control?
_________________
Mes'a back!
 |
|
| Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Sun Feb 17, 2008 2:27 pm Post subject: |
|
|
microsoft internet controls 6.0 (its an .ocx)
_________________
|
|
| Back to top |
|
 |
i__h4x Grandmaster Cheater Supreme
Reputation: 0
Joined: 09 Jun 2007 Posts: 1005 Location: i__<3's__wpe
|
Posted: Sun Feb 17, 2008 2:54 pm Post subject: |
|
|
Private Sub CommandButton1_Click()
Dim source As String
source = Inet1.OpenURL("http://dragonfable.battleon.com/game/")
Dim startpos As Long
startpos = InStr(source, "FLASHVARS=" & Chr(34) & "strFileName") + 23
Dim endpos As Integer
endpos = InStr(source, "bgcolor=" & Chr(34) & "#530000") - 3
source = Mid(source, startpos, endpos - startpos + 1)
MsgBox (source)
End Sub
Microsoft Internet Transfer Control
MSINET.OCX
_________________
Mes'a back!
 |
|
| Back to top |
|
 |
|