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
» Recent Threads
Go to first new post Almost all types of...
Today 12:09 AM
Last post by l_royalty_l
Today 10:42 PM
6 Replies, 45 Views
Go to first new post Heather wants to kill a...
Today 06:49 PM
Last post by Benita Mussolina
Today 10:29 PM
25 Replies, 109 Views
Go to first new post My formal on Friday
11-17-2008 05:12 AM
by Bex
Last post by Bex
Today 10:17 PM
11 Replies, 59 Views
Go to first new post Paypal help?
Today 10:11 PM
by 1x1
Last post by 1x1
Today 10:11 PM
0 Replies, 4 Views
Go to first new post NextGenWarrior = scammer
Yesterday 10:29 PM
by Peanuts
Last post by Jakious
Today 10:08 PM
13 Replies, 128 Views
Reply
 
LinkBack Thread Tools Display Modes

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

Male Violent_J is offline
 
Violent_J's Avatar
 
Join Date: Nov 2006
Location: Sacramento, California
Age: 16
Posts: 933
GPoints: 469
iTrader: 5 / 100%
Violent_J Is Amongst RoyaltyViolent_J Is Amongst Royalty
Rep Power: 9
[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
__________________



Current rep: 110
  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.0 RC2

All times are GMT -7. The time now is 10:42 PM.


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.16429996 seconds (100.00% PHP - 0% MySQL) with 19 queries