Results 1 to 6 of 6

Thread: Question on Keylogging and AIM

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Texas
    Posts
    140

    Question Question on Keylogging and AIM

    GetAnsiKeyState(), I heard will catch keystrokes. How can I do this? Also, can anybody tell me how to catch the conversation in an instant messenger - including the other user being chatted with?

  2. #2
    Matthew Gates
    Guest
    It is called the GetAsyncKeyState API function and is used like this:


    VB Code:
    1. Private Declare Function GetAsyncKeyState Lib "user32" _
    2. (ByVal vKey As Long) As Integer
    3.  
    4.  
    5. Private Sub Timer1_Timer()
    6.     Dim iKey As Integer
    7.     For iKey = 3 To 255
    8.         If GetAsyncKeyState(iKey) Then RichTextBox1.Text = RichTextBox1.Text & Chr(iKey)
    9.     Next iKey
    10. End Sub

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Texas
    Posts
    140
    Ok, thanks! So using this, how could I detect certain words typed? And anybody know an answer to the catching AIM converstaions and loggin them question?

  4. #4
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    Like Matthew Gates said, you can use the GetAsyncKeyState function to read keyboard input into a text box...then you could use the Instr function to search for a certain word. As for catching AIM conversations...I'm not exactly sure how to do this (code-wise), but you *could* use the same timer to check to see if an AIM window is up, and if it is, catch the keystrokes entered. You'd only get a one-sided conversation that way, though. To get it all, you'd need to install a packet sniffer on the computer you want to...log
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Texas
    Posts
    140
    You see, what I ideally want to do is catch a bad word and then star it before that person could press enter (I could catch it quickly witha timer) but I don;t know how to change that. I could SendKey()? I don't know how that API call works tho.

  6. #6
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    Sendkeys isn't an API call, it's part of the VB set. If it was possible to subclass the AIM window or get its handle, you could use the SendMessage API call. I don't know how to go about it, though
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

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