User Control Panel
Advertisements

HELP US, HELP YOU!

MSN Toolkit VB 2005 (.net).. Any ideas on this error?

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Visual Basic
View unanswered posts
Author Message
shark
Newbie
Newbie


Joined: 15 Dec 2005
Posts: 3
Location: Pontlottyn, Wales
Reputation: 4.8Reputation: 4.8Reputation: 4.8Reputation: 4.8

PostPosted: Thu Dec 15, 2005 12:58 pm    Post subject: MSN Toolkit VB 2005 (.net).. Any ideas on this error? Reply with quote

Right, here is the full application code i have produced so far:

Code:
Public Class Form1
    Dim iCount As Integer
    Dim limit As Integer
    Public WithEvents msn As MessengerAPI.Messenger
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        msn = New MessengerAPI.Messenger
    End Sub

    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

    Private Sub Away_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Away.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_AWAY
    End Sub

    Private Sub BRB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BRB.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_BE_RIGHT_BACK
    End Sub

    Private Sub Busy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Busy.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_BUSY
    End Sub

    Private Sub Mail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Mail.Click
        msn.OpenInbox()
    End Sub

    Private Sub Profile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Profile.Click
        msn.ViewProfile(Semail)
    End Sub

    Private Sub Status_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Status.Click
        msn.ContactsSortOrder = MessengerAPI.MUASORT.MUASORT_ONOFFLINE
    End Sub

    Private Sub Groups_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Groups.Click
        msn.ContactsSortOrder = MessengerAPI.MUASORT.MUASORT_GROUPS
    End Sub

    Private Sub Lunch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Lunch.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_OUT_TO_LUNCH
    End Sub

    Private Sub Offline_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Offline.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_INVISIBLE
    End Sub

    Private Sub Online_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Online.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_ONLINE
    End Sub

    Private Sub Phone_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Phone.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_ON_THE_PHONE
    End Sub

    Private Sub StatusSpam_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StatusSpam.Click
        limit = 0
        Do Until limit = 15
            msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_INVISIBLE
            msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_ONLINE
            limit = limit + 1
        Loop

    End Sub
    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_BUSY
        msn.InstantMessage(Semail.Text)
        msn.windowHWnd& = FindWindow("lpclassname", vbNullString)
        For iCount = 1 To 100000000
        Next iCount
        limit = 0
        Do Until limit = 10
            limit = limit + 1
            SendMessage(msn.WindowHWnd&, &H111, &H2B1, 0&)
        Loop
        msn.MyStatus = MessengerAPI.MISTATUS.MISTATUS_ONLINE
    End Sub

End Class



all the code runs fine and has no bugs etc.

When button1 is clicked, which is the send 10 nudges option it gives out this error

Quote:
public member 'windowHWnd' on type 'MessengerClass' not found.


which is on this line

Quote:
msn.windowHWnd& = FindWindow("WindowClass", vbNullString)


If any one has any ideas or suggestions on this i would be greatly appreciated.

Thanks in advance, Shark
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Dec 15, 2005 1:01 pm    Post subject: Reply with quote

Why would you want to send 10 nudges? Shocked To be annoying?
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
shark
Newbie
Newbie


Joined: 15 Dec 2005
Posts: 3
Location: Pontlottyn, Wales
Reputation: 4.8Reputation: 4.8Reputation: 4.8Reputation: 4.8

PostPosted: Thu Dec 15, 2005 1:11 pm    Post subject: Reply with quote

well it can be annoying yes, but no, mainly its because im a beginner at vb and im just making an application using a few functions to get used to them
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Tue Dec 20, 2005 6:01 pm    Post subject: Reply with quote

Basically that means it's not finding the window you want. Maybe one of these days someone will create a VB bot that doesn't use the Windows API to manipulate things LOL
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
shark
Newbie
Newbie


Joined: 15 Dec 2005
Posts: 3
Location: Pontlottyn, Wales
Reputation: 4.8Reputation: 4.8Reputation: 4.8Reputation: 4.8

PostPosted: Wed Dec 21, 2005 1:05 pm    Post subject: Reply with quote

it finds the correct window. its crashing when the nudges try sending, And im pretty new to VB when ive learn a little more i will use the msn protocol to do things like me m8 does. he never touches the api
Back to top
-DeadRabit-
Newbie
Newbie


Joined: 07 Apr 2007
Posts: 9

Reputation: 4.5Reputation: 4.5Reputation: 4.5Reputation: 4.5
votes: 1

PostPosted: Wed Oct 24, 2007 12:26 pm    Post subject: Reply with quote

yes ALIENS OMG LOLOLOLOLOLOLOLOLOL ..... how would you suggest. and mybe ill do that. can prolly rape it in memory. lets go! wait a go make a giant game trainer for windows live messenger
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Visual Basic All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group