Results 1 to 7 of 7

Thread: WH_KeyBoard_LL and Windows 98 [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Resolved WH_KeyBoard_LL and Windows 98 [RESOLVED]

    Hey,

    I was wondering if WH_Keyboard_LL worked under windows 98, and if it doesn't, then why not? What other way (without using timers) can I make a decent key logger?
    Last edited by VIP3R; Dec 26th, 2004 at 10:31 PM.
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: WH_KeyBoard_LL and Windows 98

    From MSDN:
    Minimum operating systems Windows NT 4.0 SP3
    You may try using keybd_event api function instead.
    Here is a quick sample from allapi.com:
    VB Code:
    1. Const VK_H = 72
    2. Const VK_E = 69
    3. Const VK_L = 76
    4. Const VK_O = 79
    5. Const KEYEVENTF_EXTENDEDKEY = &H1
    6. Const KEYEVENTF_KEYUP = &H2
    7. Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
    8. Private Sub Form_KeyPress(KeyAscii As Integer)
    9.     'Print the key on the form
    10.     Me.Print Chr$(KeyAscii);
    11. End Sub
    12. Private Sub Form_Paint()
    13.     'KPD-Team 2000
    14.     'URL: [url]http://www.allapi.net/[/url]
    15.     'E-Mail: [email][email protected][/email]
    16.     'Clear the form
    17.     Me.Cls
    18.     keybd_event VK_H, 0, 0, 0   ' press H
    19.     keybd_event VK_H, 0, KEYEVENTF_KEYUP, 0   ' release H
    20.     keybd_event VK_E, 0, 0, 0  ' press E
    21.     keybd_event VK_E, 0, KEYEVENTF_KEYUP, 0  ' release E
    22.     keybd_event VK_L, 0, 0, 0  ' press L
    23.     keybd_event VK_L, 0, KEYEVENTF_KEYUP, 0  ' release L
    24.     keybd_event VK_L, 0, 0, 0  ' press L
    25.     keybd_event VK_L, 0, KEYEVENTF_KEYUP, 0  ' release L
    26.     keybd_event VK_O, 0, 0, 0  ' press O
    27.     keybd_event VK_O, 0, KEYEVENTF_KEYUP, 0  ' release O
    28. End Sub

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Re: WH_KeyBoard_LL and Windows 98

    I want to listen for keyboard events, not simulate them.
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: WH_KeyBoard_LL and Windows 98

    There is code for this in Api Guide (www.allapi.net)

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Re: WH_KeyBoard_LL and Windows 98

    where? You can't search the site, so trying to find something like this is like trying to find a needle in a haystack.
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  6. #6
    New Member
    Join Date
    Dec 2004
    Posts
    15

    Re: WH_KeyBoard_LL and Windows 98

    the easiest way to make a keylogger is by using GetAsyncKeyState function good luck!

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Resolved Re: WH_KeyBoard_LL and Windows 98

    wow, thanx guys. Awesome code. I'll see what I can use. The API timer seems more promising than the VB timer :P.

    Just a quick note to rhino bull, hooking doesn't seem to work because wh_keyboard only hooks input towards your application :S. wh_keyboard_LL is system wide, but only works in NT/2000/XP. That was my original dilema. thanx though, greatly appreciated!

    Just making sure that you know that your efforts haven't gone forgotten!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width