well, first ive never seen that thread, but i did visit another one of your threads that got me this far..
edit**my stupidity, i see my own post on there, although i dont remember it..
added this to a module:
VB Code:
Option Explicit
'Functions, constants and types for the hook
Private Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" ( _
ByVal idHook As Long, _
ByVal lpfn As Long, _
ByVal hmod As Long, _
ByVal dwThreadId As Long _
) As Long
Private Declare Function UnhookWindowsHookEx Lib "user32" ( _
ByVal hHook As Long _
) As Long
Private Declare Function CallNextHookEx Lib "user32" ( _
ByVal hHook As Long, _
ByVal ncode As Long, _
ByVal wParam As Long, _
lParam As Any _
) As Long
Public Const WH_MOUSE_LL = 14
Public Type POINTAPI
x As Long
y As Long
End Type
Public Type MSLLHOOKSTRUCT
pt As POINTAPI
mouseData As Long
flags As Long
time As Long
dwExtraInfo As Long
End Type
Private hHook As Long
Public IsHooked As Boolean
'functions for getting windows properties
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" ( _
ByVal hwnd As Long, _
ByVal lpString As String, _
ByVal cch As Long _
) As Long
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" ( _
ByVal hwnd As Long, _
ByVal lpClassName As String, _
ByVal nMaxCount As Long _
) As Long
Private Declare Function WindowFromPoint Lib "user32" ( _
I have a joke:
Q: How many I.T. administrators does it take to changes a light bulb?
A: It works for me...
OK, I won't give the typical IT response
Let's check:
Are you using VB 6?
Did you put the module code in a module and the form code in a form?
Did you compile the code to check for errors?
Option Explicit everywhere?
did you press the cmdStart button?
If the answers to all these is yes, yes, yes, yes, yes
check to see if your mouse hook is working...
put a debug.print statement in there
Let me know
edit2**
figured it out, after my computer crashed i forgot to rename command1 to cmdstart.shoot. sorry for your time.
in txthandle it says: 1049E
ib txtcaption & txtclassname it says "trillian display"
btw, the txthandle changes for each msg, so if i open up 2 im windows, the textboxes will have different handles..how can i do this, if they handles change?<the only thing that stays the same is icoPMsgAIM, or icoPMsgMSN, <--thats the main one, its the parent is it called? is this still doable still?
Last edited by |2eM!x; Feb 23rd, 2005 at 07:34 PM.