Sys-BotBase is a module created by olliz0r that works in the CFW environment1. It makes you can control a device using socket communication. This allows you to implement Switch game bots, etc.
The commands supported by this module can be found at the following address.
To make it easier to utilize the features of sys-botbase, we have created a Python class. Using SysBot class, you can command to switch more easily.
sb = SysBot(ip=ip, click_global_delay=2.0)
seq = Sequence()
sb.Click(Button.A)sb = SysBot(ip=ip, click_global_delay=2.0)
seq = Sequence()
seq.AddPressSequence([Button.L, Button.R]).AddWait(100).AddReleaseSequence([Button.L, Button.R]).AddWait(1000)
sb.ClickSequenceAndSync(seq)sb = SysBot(ip=ip, click_global_delay=2.0)
seq = Sequence()
seq.AddClickSequenceWithWait([Button.Right, Button.A]).AddWait(900)
seq.AddClickSequenceWithWait([Button.Down, Button.Down, Button.A])
sb.ClickSequenceAndSync(seq)sb = SysBot(ip=ip, click_global_delay=2.0)
seq = Sequence()
screen_shot = sb.ScreenShot()
open('screen.jpg', 'wb+').write(screen_shot)