Next we will learn how to use JK's API SPY 5.1 to send text

Here you will find tutorials that will help you with programming.

Next we will learn how to use JK's API SPY 5.1 to send text

Postby paradox socks » Mon May 01, 2006 2:19 pm


i cant wait for this tutorial :)
o.O
User avatar
paradox socks
imFiles Newbie
imFiles Newbie
 
Posts: 7
Joined: Mon May 01, 2006 8:46 am

Postby null » Mon May 01, 2006 3:23 pm

Pretty Easy really if for paltalk what you do is fellow the steps...

Open JK's API SPY 5.1...

Image

Then...

Image

Find the ''Set window's text''
when you have picked it we now wanna left mouse button down the circle bring it over the box you send your text to the paltalk room put that circle over that paltalk text box in the room where the text is put in and let go.

This is what you should see if you do like i said.
Image

Now click the Generate Buttun this will make your code to send text to the room.

It should give you this if you have Paltalk Messenger 8.3
Code: Select all
Dim mywindowclass As Long
Dim wtlsplitterwindow As Long
Dim atld As Long
Dim atlaxwin As Long
Dim x As Long
Dim richedita As Long

mywindowclass = FindWindow("my window class", vbNullString)
wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
atld = FindWindowEx(wtlsplitterwindow, 0&, "atl:0053d798", vbNullString)
atlaxwin = FindWindowEx(atld, 0&, "atlaxwin71", vbNullString)
x = FindWindowEx(atlaxwin, 0&, "#32770", vbNullString)
richedita = FindWindowEx(x, 0&, "richedit20a", vbNullString)
richedita = FindWindowEx(x, richedita, "richedit20a", vbNullString)
Call SendMessageByString(richedita, WM_SETTEXT, 0&, "The New Text")

If richedita = 0 Then
    Msgbox "Error: Cannot find window"
    Exit Sub
End If


Now from here we wanna go to get our API Text Viewer go to start All Programs or Programs depending on what OS you have find your... Microsoft Visual Studio 6.0 move too Microsoft Visual Studio 6.0 Tools then look in there for API Text Viewer open it then... click on file we wanna pick ''Load Text File'' then pick the "WIN32API" one now were ready to get the API's

Under Declares type in FindWindow and add it then type in FindWindowEx add that type in SendMessage add that. Now....

The menu where you see decalre drop down and pick... Constants add type in WM_SETTEXT now were pretty much done with the API for now but dont close it. copy your code and put it in a Module now we wanna find this code in the module


Code: Select all
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long


change it to
Code: Select all
Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long


where you see the SendMessage you are adding SendMessageByString

Now we wanna change this put of the code. that we got from the API Spy

Code: Select all
Call SendMessageByString(richedita, WM_SETTEXT, 0&, "The New Text")


change it to
Code: Select all
Call SendMessageByString(richedita, WM_SETTEXT, 0&, Text1.Text)


Remove the "The New Text" and change it to Text1.Text or whatever text box you wanna use to send your text from just add one text box if you new to this. and change it to Text1.Text

Everything is just about ready.

We now wanna add the code....

Code: Select all
Call SendMessageLong(richedita, WM_KEYDOWN, 13, 0&)


under

Code: Select all
Call SendMessageByString(richedita, WM_SETTEXT, 0&, Text1.Text)


we now wanna go back to our API Text Viewer and go to the Decalres and find and add SendMessage again then we wanna go back to the Constants and type in WM_KEYDOWN add your new stuff you add to your module make sure that if you did clear that API Text Viewer before you added theses that you go back up and do that part where i told you to change the SendMessageByString that you do again and also for your new SendMessage change it to SendMessageLong the API is all done we can move on to adding the command buttons and textboxs if you haven't already.

How to make a RoomSpammer out of what you just learned is easy.
from what i just told you all you need is to do the above first then add...

1 timer

2 command buttons

1 textbox

In the timer you wanna add the code you just were teach the send text code should be all like this if you did it right.

Code: Select all
Dim mywindowclass As Long
Dim wtlsplitterwindow As Long
Dim atld As Long
Dim atlaxwin As Long
Dim x As Long
Dim richedita As Long

mywindowclass = FindWindow("my window class", vbNullString)
wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
atld = FindWindowEx(wtlsplitterwindow, 0&, "atl:0053d798", vbNullString)
atlaxwin = FindWindowEx(atld, 0&, "atlaxwin71", vbNullString)
x = FindWindowEx(atlaxwin, 0&, "#32770", vbNullString)
richedita = FindWindowEx(x, 0&, "richedit20a", vbNullString)
richedita = FindWindowEx(x, richedita, "richedit20a", vbNullString)
Call SendMessageByString(richedita, WM_SETTEXT, 0&, Text1.Text)
Call SendMessageLong(richedita, WM_KEYDOWN, 13, 0&)
If richedita = 0 Then
    Msgbox "Error: Cannot find window"
    Exit Sub
End If


The above is the code that gos into your timer1 to make a room spammer.


This Gos below in the module1

Code: Select all
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const WM_SETTEXT = &HC
Public Const WM_KEYDOWN = &H100


Now if you have added the timer to your form1 click on it there is a menu to the right side yes? ok look for Enabled set it to False the go to Interval set it to ohhhh put in 300

now in your command1 button put Timer1.Enabled = "True"
now in your command2 button put Timer1.Enabled = "False"

True means start and false means stop just so you know :)
now were done with the room spammer if you did everything right you can try and run the app of compile you new project by click on file and make project thats in your vb6 software make sure its saved with the end .exe or it wont work. if i have left out anything i did this tut pretty fast this has to be one of my longest speeches in text ever... Good Luck.
null
 

Postby paradox socks » Mon May 01, 2006 4:11 pm

Wow that was fast.... THANKS.... understood that :)
thanks for the time mate :) appreaciate it.
o.O
User avatar
paradox socks
imFiles Newbie
imFiles Newbie
 
Posts: 7
Joined: Mon May 01, 2006 8:46 am

Postby null » Mon May 01, 2006 4:51 pm

Cool by the way i like your lil image you made pretty funny. you make that i read in another topic you make graphics?
null
 

Postby paradox socks » Mon May 01, 2006 6:21 pm

me? yup, work with photoshop,maya and aftereffects n stuff.. the norm :)
o.O
User avatar
paradox socks
imFiles Newbie
imFiles Newbie
 
Posts: 7
Joined: Mon May 01, 2006 8:46 am

Postby null » Tue May 02, 2006 10:08 pm

cool i find it kinda funny one of the people who uses my forum makes animes like that.
null
 

Postby Ponies » Mon May 15, 2006 7:06 am

Whitch one is that :wink:
Ponies
BANNED
BANNED
 
Posts: 5322
Joined: Sun Apr 30, 2006 8:59 am

Postby method » Tue May 23, 2006 7:37 pm

Dim ZaraByte As String could upload a sample project for it to help uu learn. This part is very confusing for me :


Under Declares type in FindWindow and add it then type in FindWindowEx add that type in SendMessage add that. Now....

The menu where you see decalre drop down and pick... Constants add type in WM_SETTEXT now were pretty much done with the API for now but dont close it. copy your code and put it in a Module now we wanna find this code in the module



i have no idea what to do here could u explain a little more .what to do in this window :
Attachments
api.JPG
api.JPG (33.63 KiB) Viewed 1372 times
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby SULTAN RAHI » Mon Jul 10, 2006 3:06 am

"Dim ZaraByte As String" Can You UpLoad the Described Project for me here. :wink:
SULTAN RAHI
BANNED
BANNED
 
Posts: 45
Joined: Sun Jul 02, 2006 4:51 am

Postby null » Mon Jul 10, 2006 2:29 pm

Heres the Send Text Explain your not learning much from it because its just a code try learning the API Text Viewer!!
Attachments
Paltalk Send Text.zip
For Paltalk Messenger 8.3 Build 126 (Will Work also with Paltalk Messenger 8.3 Build 125)
(2.17 KiB) Downloaded 109 times
null
 

Postby SULTAN RAHI » Tue Jul 11, 2006 9:37 am

Thx Bro "Dim ZaraByte As String" :oops:
Actully i am not well educated regarding programming in vb..
i just have some knowledge of calculations & lil Knowledge of database... & unfortunaitly i never got a chance to work on API... I like to...But now in prectical life... & i hope u know the difficulties of Practicle life. :(

Anyway...thx for uploading this for me :)
SULTAN RAHI
BANNED
BANNED
 
Posts: 45
Joined: Sun Jul 02, 2006 4:51 am


Return to Programming Tutorials

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests