Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post MotM February Voting!
Today 09:05 AM
by Zombie
Last post by MeinKampfyChair
Today 09:38 AM
3 Replies, 17 Views
Go to first new post Who is your favorite...
06-28-2007 04:47 PM
Last post by Oops
Today 09:35 AM
92 Replies, 1,221 Views
Go to first new post What are you currently...
03-04-2010 02:21 PM
by Oops
Last post by Axed
Today 09:16 AM
10 Replies, 205 Views
Go to first new post Loyal User Perk
Yesterday 05:01 PM
by BSavage
Last post by l_royalty_l
Today 08:53 AM
20 Replies, 206 Views
Go to first new post RSBot - Download Center
04-20-2009 04:05 PM
by Chinese
Last post by pitbulll
Today 08:34 AM
74 Replies, 157,490 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6] Guess the card APer source
Old 07-23-2008, 07:04 PM   #1 (permalink)
Full Member

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 18
Posts: 1,057
GPoints: 5,450
iTrader: 5 / 100%
Violent_J Is a Party CaptainViolent_J Is a Party CaptainViolent_J Is a Party Captain
Rep Power: 14
[vb6] Guess the card APer source

Code:
Dim Dpage As String, strHTML As String, x As Integer, strGuess As String, HTML As String, StopProgram As Boolean

Private Sub cmdclear_Click()
    lstlog.Clear
End Sub

Private Sub cmdreset_Click()
    lblwins.Caption = "0"
    lblloss.Caption = "0"
    lblplays.Caption = "0"
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Call SaveSetting("Violent_J's guess the card", "Login", "Username", txtuser.Text)
    Call SaveSetting("Violent_J's guess the card", "Login", "Password", txtpass.Text)
    Call SaveSetting("Violent_J's guess the card", "Login", "Save Login Information", chksave.Value)
    Dim frmTemp As Form
    For Each frmTemp In Forms
    Unload frmTemp
    Set frmTemp = Nothing
Next
End
End Sub

Private Sub cmdLogin_click()

    cmdLogin.Enabled = False
    lblstatus.Caption = "Logging in..."
    strHTML = w.PostWrapper("http://neopets.com/login.phtml", "username=" & txtuser & "&password=" & txtpass & "&destination=%2Fpetcentral.phtml", "http://neopets.com/hi.phtml")
        If InStr(1, strHTML, "badpassword") Then
            lblstatus.Caption = "Bad Password"
            cmdLogin.Enabled = True
        ElseIf InStr(1, strHTML, "This account has been") Then
            lblstatus.Caption = "Account Frozen"
            cmdLogin.Enabled = True
        ElseIf InStr(1, strHTML, "petcentral") Then
            lblstatus.Caption = "Logged in"
            lstlog.AddItem Time & " - Logged in as " & txtuser.Text
            cmdstart.Enabled = True

        
        Else
            cmdLogin.Enabled = True
            lblstatus.Caption = "Unknown Error"
    End If

End Sub

Private Sub cmdStart_Click()
    cmdstart.Enabled = False
    cmdStop.Enabled = True
    lstlog.AddItem Time & " - Started Playing!"
    Do Until lblplays.Caption = txtamount.Text Or cmdStop.Enabled = False
    strHTML = w.GetWrapper("http://www.neopets.com/games/process_psy.phtml?cards=4", "http://www.neopets.com/games/psychoanalysis.phtml")
    lblplays.Caption = lblplays.Caption + 1
        If InStrB(1, strHTML, "Congratulations your pet is psychic!") Then
            lstlog.AddItem Time & " - You won 50 neopoints!"
            lblwins.Caption = lblwins.Caption + 1
        ElseIf InStrB(1, strHTML, "Wrong!") Then
            lstlog.AddItem Time & " - You lost 10 neopoints!"
            lblloss.Caption = lblloss.Caption + 1
        Else
            lstlog.AddItem Time & " - Unknown event at "
        End If
    SleepModule.SecondsToWait (txtinterval.Text)
    Loop
    lstlog.AddItem Time & " - Finished Playing!"
    cmdstart.Enabled = True
    cmdStop.Enabled = False
End Sub

Private Sub cmdStop_click()
    cmdstart.Enabled = True
    cmdStop.Enabled = False
    lstlog.AddItem "Stopped Program"
End Sub

Private Sub Form_Load()
    chksave.Value = GetSetting("Violent_J's guess the card", "Login", "Save Login Information", Checked)
        If chksave.Value = Checked Then
                txtuser.Text = GetSetting("Violent_J's guess the card", "Login", "Username")
                txtpass.Text = GetSetting("Violent_J's guess the card", "Login", "Password")
    End If
End Sub
__________________
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 09:39 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.19499898 seconds (100.00% PHP - 0% MySQL) with 21 queries