Need help with VB code

You can talk about VB programming here

Need help with VB code

Postby matinmusic » Sat Nov 22, 2008 12:31 pm


Hiiiiiii

I have a code for VB but i don't know where do i have to past it to work

the code is for paltalk but where do i have to put the code?
in a software?
in a directory????
matinmusic
imFiles Newbie
imFiles Newbie
 
Posts: 14
Joined: Sat Nov 22, 2008 12:28 pm

Re: Need help with VB code

Postby Chike » Sat Nov 22, 2008 12:37 pm

Put it there ->

Look if you wanna get any useful response you need express yourself clearly. What is it that you have and what you wanna do with it
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: Need help with VB code

Postby matinmusic » Sat Nov 22, 2008 1:50 pm

For example

i downloaded this file

http://www.imfiles.com/Visual_Basic_ ... e_L82.html


i guess thie file will let me know a room code
anyway

i've download the file and it gave me a code like this



Code: Select all
Attribute VB_Name = "modPaltalk"
Option Explicit
Public Declare Function GetWindow Lib "user32" (ByVal hWnd As Long, ByVal wCmd As Long) As Long
Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hWnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hWnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Public Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hWnd As Long) As Long
Public Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Boolean

Global lngRhWnd As Long ' global to store handle
Global strWindowTitle As String ' global to store title
Global strClassname As String ' global to store class

Private Function EnumWindowsProc(ByVal hWnd As Long, ByVal lParam As Long) As Boolean
    Dim sSave As String, Ret As Long
    Ret = GetWindowTextLength(hWnd)
    sSave = Space(Ret)
    GetWindowText hWnd, sSave, Ret + 1
    If InStr(sSave, " Group") Then
    lngRhWnd = Str$(hWnd)
    strClassname = GetClass(lngRhWnd)
    strWindowTitle = GetWinTitle(lngRhWnd)
    End If
    EnumWindowsProc = True
End Function

Public Function GetPalWindow(Optional strClassname As String) As Long
    Dim retval As Boolean
    retval = EnumWindows(AddressOf EnumWindowsProc, 0)
    strClassname = GetClass(lngRhWnd)
    GetPalWindow = lngRhWnd
End Function

Private Function GetClass(hWnd As Long)
Dim sSave As String, intLenRet As Integer
sSave = Space(256)
intLenRet = GetClassName(hWnd, sSave, 256)
GetClass = Left$(sSave, intLenRet)
End Function

Private Function GetWinTitle(hWnd As Long) As String
GetWinTitle = GetText(hWnd)
End Function

Private Function GetText(lnghWnd As Long) As String
    Dim TheText As String, TL As Long, XT As Long
        TL = GetWindowTextLength(lnghWnd)
            TheText = String(TL + 1, " ")
        XT = GetWindowText(lnghWnd, TheText, TL + 1)
            TheText = Left(TheText, TL)
        GetText = TheText
End Function



and this code is for paltalk
i want to know where do i have to put this code to work

it's a VB code

do you undresyand?

thank you
matinmusic
imFiles Newbie
imFiles Newbie
 
Posts: 14
Joined: Sat Nov 22, 2008 12:28 pm

Re: Need help with VB code

Postby matinmusic » Sat Nov 22, 2008 1:52 pm

And just another thing

yesterday i was in paltalk, i open a room and after like 15 min 5 people came on my room as admin with an @ and they gave me red dot and they started to say bad words

and after maybe 10 min they even hack my account i could not log in the password was change


I just want to know how they did it?
is this possible to get admin code of a room?

Thank you
matinmusic
imFiles Newbie
imFiles Newbie
 
Posts: 14
Joined: Sat Nov 22, 2008 12:28 pm

Re: Need help with VB code

Postby String » Sat Nov 22, 2008 2:55 pm

Since you keep asking "where" to put the code, I'm gonna guess that you don't have VB installed.
You need to open the code that you downloaded with VB.

I just want to know how they did it?
is this possible to get admin code of a room?


Same as in the other thread that you posted this is in ..... no
-= Please ask your questions in the forum, not in pm.
String
imFiles Senior
imFiles Senior
 
Posts: 313
Joined: Mon Mar 10, 2008 7:06 am
Location: IDE

Re: Need help with VB code

Postby matinmusic » Sat Nov 22, 2008 3:17 pm

String wrote:Since you keep asking "where" to put the code, I'm gonna guess that you don't have VB installed.
You need to open the code that you downloaded with VB.

I just want to know how they did it?
is this possible to get admin code of a room?


Same as in the other thread that you posted this is in ..... no


I have the Visual Basic and i opened on the program

but its kind of text or code

after this what do i have to do
matinmusic
imFiles Newbie
imFiles Newbie
 
Posts: 14
Joined: Sat Nov 22, 2008 12:28 pm

Re: Need help with VB code

Postby String » Sat Nov 22, 2008 4:56 pm

Then run the code. Or, compile the project and run it.
-= Please ask your questions in the forum, not in pm.
String
imFiles Senior
imFiles Senior
 
Posts: 313
Joined: Mon Mar 10, 2008 7:06 am
Location: IDE

Re: Need help with VB code

Postby matinmusic » Sat Nov 22, 2008 6:08 pm

String wrote:Then run the code. Or, compile the project and run it.


thanks for your help

but how??
i have to go to file? edit? tools? where


sorry and thank you again
matinmusic
imFiles Newbie
imFiles Newbie
 
Posts: 14
Joined: Sat Nov 22, 2008 12:28 pm

Re: Need help with VB code

Postby String » Sun Nov 23, 2008 3:05 pm

If you are not familiar enough with programing to know how to run your code or compile it, then perhaps you need to do a search for a good tutorial. You can probably find one by searching this forum.

You can compile your code from the "File" menu item, and run the code from the "Run" menu item.
-= Please ask your questions in the forum, not in pm.
String
imFiles Senior
imFiles Senior
 
Posts: 313
Joined: Mon Mar 10, 2008 7:06 am
Location: IDE

Re: Need help with VB code

Postby wazzzup » Mon Nov 24, 2008 2:10 am

check the section .> vb toturtle >> my first programe >>> learn the basic first when you familier with vb ... read read read ..help help .... :d good luck ;)
User avatar
wazzzup
imFiles Senior
imFiles Senior
 
Posts: 119
Joined: Fri Feb 02, 2007 8:17 pm
Location: none


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests