Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


WH_JOURNALRECORD - Visual Basic 6 sp6

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Traps
Cheater
Reputation: 0

Joined: 26 Mar 2007
Posts: 35

PostPosted: Sat Mar 31, 2007 6:24 pm    Post subject: WH_JOURNALRECORD - Visual Basic 6 sp6 Reply with quote

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...... Mad

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!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites