AutoClicker,AutoFill bot?

So, I'm trying to automate task and I'm wondering does legit, legal stuff like this exist in google extensions or something? Without worrying of downloading some Trojan or Miner. What I'm attempting to do is, bind for example, 5 web elements, to 5 hotkeys, and when I click correct keyboard key, element assign to it will be clicked, input filed filled, and next element clicked. That is the whole cycle. Keyboard click ---> Assigned website element is clicked ---> Input field filled ---> Last button clicked Anything like this exist?
3 Replies
WillsterJohnson
for most websites, using automated tools to interact with their services is against their ToS or T&Cs. If you're certain that the website you want to do this on permits you to use automated tools, you can simply write a browser extension. Both Chrome and Mozilla provide documentation and guides on how to do so, but pick whichever browser you're going to use. You can then have your extension run something like;
document.addEventListener("keydown", (e) => {
if (e.keyCode === /* keycode here */)
document.querySelector(".assigned-element-unique-selector").focus();
else if (/* other hotkey check */) /* hotkey action */
});
document.addEventListener("keydown", (e) => {
if (e.keyCode === /* keycode here */)
document.querySelector(".assigned-element-unique-selector").focus();
else if (/* other hotkey check */) /* hotkey action */
});
Of course this only works for browsers. If you were, for example, playing a turn-based strategy game and you wanted to automatically press a few in-game hotkeys to do some things you'll do every turn, you would probably want to use autohotkey (windows only). Remember, don't violate ToS.
Dovah
Dovah2y ago
Yes, it's a browser page. Oh... It's nothing for personal gain, but I do not want to get into trouble for anything. Thanks for the answer though!
dys 🐙
dys 🐙2y ago
You'd likely find Puppeteer useful. It's a system from Google for programatically driving a Chrome session. I wrote https://github.com/dysbulic/rasterize/blob/master/spider to crawl https://vecteezy.com by downloading indices of images and clicking a "Download" button on each one. It started out great, but at around 100k images I get a message that suspicious activity had been spotted on my account & I had to fill in a Captcha. Next they had me do a Captcha and verify my phone number. Then they'd time me out for a day after a couple thousand pics. Finally, they just disabled all downloading until I had a chat with ops. Since then, if I pull down more than 200 images in a day it cuts me off for 24 hours. So, my bot is slowly sucking down its 200 a day. 😹 I can't recommend https://vecteezy.com highly enough if you like working with SVGs. Unfortunately their standard format is EPS which sometimes won't convert well, but their catalog is mind blowing. I've pulled down like 300k images currently & I've really only scratched the surface, And these are almost all really visually appealing high quality images.
Want results from more Discord servers?
Add your server