Traps Cheater Reputation: 0
Joined: 26 Mar 2007 Posts: 35
|
Posted: Sat Mar 31, 2007 6:24 pm Post subject: WH_JOURNALRECORD - Visual Basic 6 sp6 |
|
|
lHookID = SetWindowsHookEx(WH_JOURNALRECORD, AddressOf JournalRecordProc1, 0&, 0&)
lHookID returns a 0 after execution.........wtf!!!! This is driving me nutz
Code: | Option Explicit
Public 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 Const WH_JOURNALRECORD = 0
Private lHookID As Long
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Sub RecordIt
lHookID = SetWindowsHookEx(WH_JOURNALRECORD, AddressOf JournalRecordProc1, 0&, 0&)
' lHookID will return a 0 after execution of statement
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Function JournalRecordProc1(ByVal Code As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Exit Function
End Function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' |
Ok, I got the record to work. But now my comp locks up when trying to establish a Journalplayback hook. [sigh]....... I'll figure it out......
Edit to add: Muahahaha figured it out....I dont need journal playback...duh!!! sweet. I got accurate recording of mouse movement and clicks, including holding the button down, like for a drag and drop function....SWEEEEEEEEEEEEEET!!!
|
|