DonationCoder.com Software > Unfinished Requests
IDEA: I dream of a non-creepy keystroke logger
skrommel:
:) A very simple keylogger!
KeyLog logs written text to files, so put it in it's own folder. Use the tray menu to show and delete logs.
Download and install AutoHotKey from www.autohotkey.com. Save the script as KeyLog.ahk and doubleclick to run.
Skrommel
--- ---;KeyLog.ahk v1.0
;Logs written text to file, use the tray menu to show and delete log.
;Skrommel @2005
AutoTrim,Off
Menu,Tray,NoStandard
Menu,Tray,DeleteAll
Menu,Tray,Add,&Show Log,SHOW
Menu,Tray,Add,&Delete Log,DELETE
Menu,Tray,Add,&Help,HELP
Menu,Tray,Add,E&xit,EXIT
LOOP:
Input,input,V L1
If input=
Goto,LOOP
WinGetActiveStats,wint,winw,winh,winx,winy
filename:=hexify(wint)
IfNotExist,%filename%.log
FileAppend,`n`n[%wint%]`n,%filename%.log
FileAppend,%input%,%filename%.log
Goto,LOOP
SHOW:
Input
FileDelete,KeyLog.txt
FileAppend,,KeyLog.txt
filelist=
Loop,*.log
filelist=%FileList%%A_LoopFileName%`n
Sort,filelist
Loop,Parse,filelist,`n
{
If A_LoopField=
Continue
RunWait,cmd /c type %A_LoopField% >> KeyLog.txt,,Hide
}
Run,WordPad.exe "KeyLog.txt"
WinWait,KeyLog.txt - WordPad,,5
If ErrorLevel=1
{
MsgBox,Can't find WordPad
Return
}
Return
DELETE:
FileDelete,*.log
FileDelete,KeyLog.txt
Return
EXIT:
ExitApp
Hexify(x) ;Stolen from Laszlo
{
StringLen,len,x
format=%A_FormatInteger%
SetFormat,Integer,Hex
hex=
Loop,%len%
{
Transform,y,Asc,%x%
StringTrimLeft,y,y,2
hex=%hex%%y%
StringTrimLeft,x,x,1
}
SetFormat,Integer,%format%
Return,hex
}
DeHexify(x)
{
StringLen,len,x
len:=(len-5)/2
string=
Loop,%len%
{
StringLeft,hex,x,2
hex=0x%hex%
Transform,y,Chr,%hex%
string=%string%%y%
StringTrimLeft,x,x,2
}
Return,string
}
HELP:
Return
mouser:
skrommel - shall i add these latest scripts to your coding snacks autohotkey pack?
would you like some ftp/web space?
do you want to claim your prize (see other thread)?
iorange28880:
The Clipboard Help+Spell is useful in a lot of ways for which I wanted this Coding Snack idea, Mouser. Thanks! It really rocks.
BTW, a while back, I donated the 5 bucks to MeFi to get a login so I could Ax Metafilter(http://ask.metafilter.com) this same question, updated based on the conversation in this thread. It wasn't too conclusive but it was worth a try :-) (http://ask.metafilter.com/mefi/20471). Actually, I want to recommend Ask Metafilter as very compelling reading every day. It's a lot more interesting (IMO) than Metafilter itself. I wish I had such interesting questions as these people pose!
Anyway, thanks again!!1!¡!¡1! 0Mg LoLZ0rZ for Clipboard Help+Spell and all your other amazing software (most especially Find and Run Robot); I use and appreciate it every single day. I think you probably don't get thanked enough, although this vibrant + growing community around your software is a reward of its own kind :-)
mouser:
actually iorange,
if plans for clipboard help+spell continue as we have been discussing,
then there will be addon modules to automatically aid in keeping various information, and an "Activity Logger" addon, which did EXACTLY what you asked for in this thread would be one of the first things i write. it would basically keep a log of your activity for the reasons you described.
AbteriX:
Nice to see you talk already about an keylogger :)
Sometimes i wish i had one 'cus i work with
an dammed java-web-browser-tool for documentation issue
how sometimes forgot to save what i wrote into it (web server response)
Of course not than when i copy my text bevor in the clipboard ...
... no, only if i didn't copy my text bevor pressing the [Save] button :)
And because i did't wanna a lot of icons in the tray
it would be nice that CHS could do that some day :)
Navigation
[0] Message Index
[*] Previous page
Go to full version