How to send text to paltalk room using VB .Net?

You can talk about VB programming here

How to send text to paltalk room using VB .Net?

Postby locohacker » Sun Aug 28, 2005 6:15 pm


Well I was trying VB .net and u know I starting to like it so I trying to do some proggies in vb .net, but cant seem to figure how to send a messege to a paltalk room :)

well if anyone has figure it out , plsssssssssss help me thanks :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4325
Joined: Fri Dec 31, 2004 6:59 pm

Postby Guest » Sun Aug 28, 2005 9:57 pm

Dude..... f**k Visual Studio .NET man that is the worst programming language ever .NET you gotta install frameworks so if your going to make programs for the public to use i feel sorry for the people that use them. bad enough alot of them dont have the VB6 components now there going to have to download frameworks if any language use C++ or delphi atleast they have it built in. 8)
Guest
 

Postby Departure » Mon Aug 29, 2005 8:15 am

Anyone using WindowsXP has already the VB6 runtime files, and anyone using WindowsXP SP2 and above would proberly have the netframework componates installed, there seems to be alot of software using these componates.
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby locohacker » Mon Aug 29, 2005 9:09 am

Yeps, there a lot of soft now using frameworks, cause i be checking cnet downloads, and a lot of new software are using it, so eventually all windows should come with it.

the reason i want to try vb .net one cause is esier then c++ and right now dont have enough time to learn c+ :) and the other the form template you can make look great without adding extra components lol is beautiful lol

the only bad thing is i cant make the send messege work :(

I though i could have use the same api but not :roll:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4325
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Tue Sep 20, 2005 12:35 am

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA"(ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA"(ByVal hwnd1 As Integer, ByVal hwnd2 As Integer, ByVal lpsz1 As String, ByVal lpsz2 As String) As Integer
Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA"(ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer
Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA"(ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer



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)
atlfe = FindWindowEx(wtlsplitterwindow, 0&, "ATL:004FE680", vbNullString)
atlaxwin = FindWindowEx(atlfe, 0&, "atlaxwin71", vbNullString)
X = FindWindowEx(atlaxwin, 0&, "#32770", vbNullString)
richedita = Module1.FindWindowEx(X, 0&, "richedit20a", vbNullString)
richedita = FindWindowEx(X, richedita, "richedit20a", vbNullString)
SendMessageByString(richedita, WM_SETTEXT, 0&, "your text")

SendMessageLong(richedita, WM_KEYDOWN, 13, 0&)

that's it send text to paltalk 8.1 with vb.net
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby method » Fri Nov 11, 2005 6:42 pm

nanomachine007 thanks for posting this code. could u tell me how to run this project in visual studio .net 2003 ? i be happy if u tell me step by step what to do .Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Re: How to send text to paltalk room using VB .Net?

Postby jimmyng » Fri Aug 27, 2010 1:54 am

Got it work!!! Thank :lol: :lol:
jimmyng
imFiles Newbie
imFiles Newbie
 
Posts: 28
Joined: Sun Feb 12, 2006 4:41 pm


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests