Keywords: system, application, letter, random, listsize, randomnumber, repeat, fake, mouse, service, client, log, actual, press, stuff. Powered by TextRank.
Whatpulse is a stats service that counts how many keys you have pressed, and how many times you have clicked your mouse etc. It is a pretty cool service, and I believe that they do not log the actual keys you press but just the numbers. I want to believe at least. They also have a ranking system with the leaders above 160M keys pressed. I'm not sure these are totally legit, as I do remember reading stuff about people replaying network packet they captured after a pulse to record fake stats. Anyways I always like cat/mouse challange so here is what I came up with to fool the client into thinking something was typed:
<pre> activate application "MacVim"
set letters to {"q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m"} set listSize to count of letters repeat 100 times set randomNumber to (random number from 1 to listSize) set letter to item randomNumber of letters tell application "System Events" to keystroke letter delay 0.05 end repeat </pre>
This just selects random keys to send to a vim buffer. I might consider sending some fake keystokes to make up for the gap between the years that I did not use the client.
223 words
Powered by TF-IDF/Cosine similarity
First published on 2018-04-21
Generated on 13 Dec 2024 at 12:12 AM
Mobile optimized version. Desktop version.