AutoFish icon indicating copy to clipboard operation
AutoFish copied to clipboard

Switch to RobotJS instead of keysender

Open MrFastDie opened this issue 2 years ago • 2 comments

Hey,

could you consider switching from keysender to RobotJS? The main problem with keysender is that its windows only (this references #43 )

I'd also like to use this bot while on vacation using my mac or linux notebook. If you're open to it I would try to implement the change and open a PR. If not please let me now so I dont waste any of my time.

MrFastDie avatar Oct 17 '23 11:10 MrFastDie

Hey, I believe keysender is much richer and robust library, apart from easy window management which robotjs lacks it also allows to use pixel recognition for the background windows (which is needed for multiple fishing and atl-tab modes, but it's for Premium only so let's omit this argument). I do plan to move the bot to nut.js though, which is as good as keysender and should allow to build the bot for both linux and macos.

jsbots avatar Oct 17 '23 13:10 jsbots

To be fair I don't have any experience in capturing windows and manipulating input using javascript, all I did was a fast google search and robot seemed to be the more robust one. I've seen nut.js aswell though. So if you're up to it I would give it a shot and open a PR if I succeed.

MrFastDie avatar Oct 17 '23 13:10 MrFastDie