Hacker News new | ask | show | jobs
by tehmillhouse 3219 days ago
I know you said you didn't want to go into why you needed this, but I am curious: why did you need this (preventing your machine from going to sleep I imagine?), and why didn't `while true; do xdotool click 1; sleep 60; done` do the job? (no logged in user, perhaps?)
4 comments

If so all that is needed is a javascript console

https://stackoverflow.com/a/43557991

guess - company machine - think a bank - has all usb ports blocked - company has locked ability to install software - access to corporate network via vpn has predictable timeout
Wow... so close. Now hypothetically throw 3x nested RDPs into the mix. ;)
I think that everyone is curious, and the reasoning is likely not as complex as the author says it is. I'd wager that it's either an embarrassing use case, or that he wanted to avoid having people tell him how he should have done it - can't do that with any level of confidence if you don't know the circumstances.
Sounds like wanting to stay logged in an online game which has cheat detection going on.
I'm pretty sure online games like that (e.g. Runescape) also check intervals between clicks, this one seems pretty constant. But Runescape can't detect clicking tools running themselves iirc, so they've got other means of detecting bots (random events)
While that is the case, you can get around this by using Mousekeys. I've actually set up a little machine to hit 5 on the numpad to click every few game ticks. From the game's perspective, I'm not cheating. But it is a hardware solution because a software one would be easily detected.

Also random events don't exist in Runescape 3, only Old School Runescape. The anti-bot technology implemented in RS3 doesn't seem to have been ported over to the older version of the game yet, perhaps due to it running on an older version of the game's engine.

Probably because bots ended up beating random events and they just use other, better tech now
Runescape runs in the browser so its anti cheat mechanisms are very limited I imagine. I'm pretty sure most MMOs (which run as installed applications) have more involved cheat detection going on.
These days Runescape (RS3 anyway) is an installed app rather than a browser plugin.