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 Selling 14 mill gaia...
11-17-2008 03:29 PM
Last post by Dbzgary
Today 08:46 PM
6 Replies, 44 Views
Go to first new post [BETA PROGRAMS] Kiss The...
11-15-2008 11:49 PM
Last post by April<33
Today 08:45 PM
22 Replies, 275 Views
Go to first new post Free SS list
11-16-2008 09:37 AM
Last post by April<33
Today 08:42 PM
8 Replies, 239 Views
Go to first new post Froze-owned
11-03-2008 08:32 PM
by Reemer
Last post by April<33
Today 08:41 PM
17 Replies, 321 Views
Go to first new post Official Lab Ray Results...
09-18-2006 04:54 PM
by Demo
Last post by April<33
Today 08:39 PM
756 Replies, 10,601 Views
Reply
 
LinkBack Thread Tools Display Modes

 [vb6] Underwater Fisher Source
Old 06-15-2008, 03:05 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] Underwater Fisher Source

Code:
Dim strHTML As String, strCatch As String, strlvl As String, nid As NOTIFYICONDATA2

Public Function GB(rC As String, rS As String, rF As String, Optional lgB As Long = 1) As String
    On Error Resume Next
    lgB = InStr(lgB, rC, rS) + Len(rS): GB = Mid$(rC, lgB, InStr(lgB, rC, rF) - lgB)
End Function

Public Function Rand(ByVal Low As Long, ByVal High As Long) As Long
    Randomize
    Rand = Int(Math.Rnd() * ((High + 1) - Low) + Low)
End Function

Sub minimize_to_tray()
    Me.Hide
    nid.cbSize = Len(nid)
    nid.hwnd = Me.hwnd
    nid.uId = vbNull
    nid.uFlags = NIF_ICON2 Or NIF_TIP2 Or NIF_MESSAGE2
    nid.uCallBackMessage = WM_MOUSEMOVE2
    nid.hIcon = Me.Icon
    nid.szTip = "Violent_J's UnderWater Fisher" & vbNullChar
    Shell_NotifyIcon NIM_ADD2, nid
End Sub



Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    Dim msg As Long
    Dim sFilter As String
    msg = x / Screen.TwipsPerPixelX
    Select Case msg
    Case WM_LBUTTONDOWN2
    Me.Show ' show form
    Shell_NotifyIcon NIM_DELETE2, nid ' del tray icon
    Case WM_LBUTTONUP2
    Case WM_LBUTTONDBLCLK2
    Case WM_RBUTTONDOWN2
    Case WM_RBUTTONUP2
    Me.Show
    Shell_NotifyIcon NIM_DELETE2, nid
    Case WM_RBUTTONDBLCLK2
    End Select
End Sub


Private Sub mnumin_Click()
    minimize_to_tray
End Sub

Private Sub cmdstart_Click()
    cmdstart.Enabled = False
    cmdstop.Enabled = True
    lstlog.AddItem Time & " : Program Started!", 0
    Do Until cmdstop.Enabled = False
    strHTML = frmlogin.w.PostWrapper("http://www.neopets.com/water/fishing.phtml", "go_fish=1", "http://www.neopets.com/water/fishing.phtml")
    lblstatus.Caption = "Fishing..."
        If InStrB(1, strHTML, "as an avatar on the NeoBoards") Then
            lblstatus.Caption = "You Got an avatar! - Waiting: " & Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) & " Minutes"
            lstlog.AddItem Time & " : Got an avatar!", 0
        ElseIf InStrB(1, strHTML, "Your pet's fishing skill increases to") Then
            strlvl = GB(strHTML, "fishing skill increases to <B>", "</B>!<P></CENTER><center>")
            lblstatus.Caption = "Pet's Fishing skill has increased! - Waiting: " & Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) & " Minutes"
            lstlog.AddItem Time & " : Pets fishing skills has increased to " & strlvl, 0
            lbllvl.Caption = strlvl
        ElseIf InStrB(1, strHTML, "Nothing!") Then
            lblstatus.Caption = "Got nothing!  - Waiting: " & Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) & " Minutes"
            lstlog.AddItem Time & " : Your pet failed at getting something!", 0
        ElseIf InStrB(1, strHTML, "http://images.neopets.com/items/vor_") Then
            strCatch = GB(strHTML, "http://images.neopets.com/items/vor_", ".gif")
            lblstatus.Caption = "Caught a " & strCatch & " - Waiting: " & Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) & " Minutes"
            lstlog.AddItem Time & " : Your pet got a " & strCatch, 0
        Else
            lblstatus.Caption = "Unknown Error! - Waiting: " & Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) & " Minutes"
            lstlog.AddItem Time & " : Unknown Error!", 0
    End If
         SleepModule.SecondsToWait Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) * 60
        lblstatus.Caption = "Waiting : " & Int(Math.Rnd() * ((txty + 1) - txtx) + txtx) & " Minutes"
    Loop
End Sub

Private Sub cmdstop_click()
    cmdstop.Enabled = False
    cmdstart.Enabled = True
    lblstatus.Caption = "Idle..."
    lstlog.AddItem Time & " : Program Stoppped!", 0
End Sub

Private Sub cmdclear_Click()
    lstlog.Clear
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Shell_NotifyIcon NIM_DELETE, nid
    Dim frmTemp As Form
    For Each frmTemp In Forms
    Unload frmTemp
    Set frmTemp = Nothing
    Next
    End
End Sub
__________________



Current rep: 110
  Reply With Quote

 
Old 06-15-2008, 03:23 PM   #2 (permalink)
Banned

Male Wilfukguys is offline
 
Join Date: Sep 2006
Location: MWHAHAHHAHA
Age: 18
Posts: 5,270
GPoints: 264
iTrader: 14 / 100%
Wilfukguys Is a Lord of AwesomenessWilfukguys Is a Lord of AwesomenessWilfukguys Is a Lord of AwesomenessWilfukguys Is a Lord of Awesomeness
Rep Power: 0
Nice! +rep.
Do you by any chance know how to make trainers?
  Reply With Quote

 
Old 06-16-2008, 08:28 AM   #3 (permalink)
Banned

Male Carnage is offline
 
Join Date: Sep 2006
Location: Saco, Maine
Age: 18
Posts: 1,879
GPoints: 379
iTrader: 1 / 100%
Carnage Is Popular
Rep Power: 0
You should really put your System Tray function in a module to tidy up the code.
  Reply With Quote

 
Old 06-22-2008, 10:28 PM   #4 (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
Quote:
Originally Posted by Wilfuk View Post
Nice! +rep.
Do you by any chance know how to make trainers?
Making one now...why?

Quote:
Originally Posted by Carnage View Post
You should really put your System Tray function in a module to tidy up the code.
lol Thats a good idea xD
__________________



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