Help - FileIce Live Stats
2013-08-28, 05:41 PM,
(This post was last modified: 2013-08-28, 05:43 PM by lanzye.)
#1
Hi guys, i'm working a tool what pick Live Stats from FileIce. I made Login form what you must use for login on FileIce and see the stats. Now i need show live stats on Label2 - Label4 - Label6 but i can't do it.

Form1 - Login
Code:
Public Class Form1
    Dim StatusLogin As String = "Unlogged"

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        WebBrowser1.Navigate("http://fileice.net/members.php") 'FileIce Website
        Button1.Enabled = False
    End Sub

    Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
        If StatusLogin = "Unlogged" Then
            Button1.Enabled = True
        ElseIf StatusLogin = "Logged" Then
            If WebBrowser1.DocumentText.Contains("Login Failed") Then
                MsgBox("Login Failed, make sure you write right your username and password.", MsgBoxStyle.Critical, "FileIce Live Stats")
            Else
                Form2.Show()
                Me.Hide()
            End If
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Document.GetElementById("username").InnerText = TextBox1.Text
        WebBrowser1.Document.GetElementById("password").InnerText = TextBox1.Text
        WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
        StatusLogin = "Logged"
    End Sub
End Class

Form2 - Stats
Code:
Public Class Form2

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label2.Text = Form1.WebBrowser1.Document.GetElementById("live1").InnerText 'Earnings Today
        Label4.Text = Form1.WebBrowser1.Document.GetElementById("live2").InnerText 'Earning This Month
        Label6.Text = Form1.WebBrowser1.Document.GetElementById("clock").InnerText 'Server Time
    End Sub
End Class

I had tried using another WebBrowser in Form2, but i don't remember how to save cookies so when Form2 appear WebBrowser show FileIce.net/dasboard.php with error (You must logged in ..)
Reply
2013-08-29, 04:01 PM,
#2
Bump! Anyone can help me?
Reply
2013-08-31, 09:29 PM,
#3
Check the PM and then tell me ^_^
Reply
2013-08-31, 09:30 PM,
#4
You need to learn how to get strings, google it there are many tutorials.
Reply
2013-08-31, 09:38 PM,
#5
(2013-08-31, 09:29 PM)Wakanda Wrote: Check the PM and then tell me ^_^

I saw your PM, but the problem is when i open Form2 is like i logged out from FileIce.
Reply
2013-08-31, 10:08 PM,
#6
I think you can use this with WebBrowser too: http://stackoverflow.com/questions/29726...webrequest
This might be helpful too: http://forums.asp.net/t/1225441.aspx/1

[Image: Cq7OnC1.png]
If You Don’t Build Your Dreams, Someone Will Hire You To Help Build Theirs
Reply
2013-08-31, 10:12 PM,
#7
I hope I will see this tool release soon!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Make Fileice gateway script compatible? metro 8 876 2015-02-04, 11:52 PM
Last Post: metro
  AdWork Media Stats NIRVANA 18 1,643 2014-10-29, 05:51 PM
Last Post: NIRVANA
  [SOURCE] on-the-live Lowercase to Uppercase & Vice Versa Text Converter (Multiline) Peakfire 0 381 2014-02-24, 08:50 PM
Last Post: Peakfire
  "Error loading gateway files!" with FileIce Orbiat 7 1,195 2013-11-30, 12:20 AM
Last Post: Blackmoney
  Fileice Statistics Wakanda 33 3,882 2013-11-23, 03:52 AM
Last Post: Wakanda




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top