|
-
Oct 22nd, 2002, 02:21 PM
#1
Thread Starter
Frenzied Member
error help
can someone plz tell me why i get a type mismatch error in this piece of my code..
VB Code:
Private Sub Command1_Click()
'Get the room's handle
tWnd = FindWindow(Text2, vbNullString)
'Get the room textboxe handle
bWnd = FindWindowEx(tWnd, ByVal 0&, "Edit", vbNullString)
SendMessage bWnd, WM_SETTEXT, ByVal "<pbr>P<pbr>a<pbr>l<pbr>t<pbr>a<pbr>l<pbr>k:" & Text1, 0
keybd_event VK_RETURN, 0, 0, 0 ' press enter
keybd_event VK_RETURN, 0, KEYEVENTF_KEYUP, 0 ' release enter
End Sub
it highlights the last "0" in the SendMessege and also highlights "Private Sub Command1_Click"
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Oct 22nd, 2002, 02:31 PM
#2
Hyperactive Member
Re: error help
Originally posted by ice_531
can someone plz tell me why i get a type mismatch error in this piece of my code..
VB Code:
Private Sub Command1_Click()
'Get the room's handle
tWnd = FindWindow(Text2, vbNullString)
'Get the room textboxe handle
bWnd = FindWindowEx(tWnd, ByVal 0&, "Edit", vbNullString)
SendMessage bWnd, WM_SETTEXT, ByVal "<pbr>P<pbr>a<pbr>l<pbr>t<pbr>a<pbr>l<pbr>k:" & Text1, 0
keybd_event VK_RETURN, 0, 0, 0 ' press enter
keybd_event VK_RETURN, 0, KEYEVENTF_KEYUP, 0 ' release enter
End Sub
it highlights the last "0" in the SendMessege and also highlights "Private Sub Command1_Click"
Sounds to me like a piece of chat spammer code. What chat do you go in?
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Oct 22nd, 2002, 02:34 PM
#3
the BYVAL doesn't belong in the SendMessage.....
-
Oct 22nd, 2002, 02:43 PM
#4
Thread Starter
Frenzied Member
Well...
It is for a chat program...allows u to type into the chat from my prog! i wouldnt consider that spam
but thx for replies newayz.. i think i figured out what the prob was ..hopefully
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|