for example the format of the file is

KeyDown-Space-19:32:10.276
KeyPress-19:32:10.285
IdleTime19:32:10.293idlecount:31
KeyUp+Space-19:32:10.507
MouseMove X 438- Y 1222 - 19:32:12.10    TPX 1660   Delay 2
MouseDown Left-19:32:14.650


the result


19:32:10.276,keydown,space
19:32:10.285,keypress,space
19:32:10.293,idlecount,31
19:32:10.507,keyup,space
19:32:12.10,mousemove,x438,y1222,TPX1660,Delay2
19:32:14.650,mousedown,left

Thanks

Perhaps this can help you out or get you started.

commented: i always forget how powerfull regex is for such problems +3