Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Table of contents

Sys-BotBase

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.

sys-botbase commands list

Sys-BotBase Helper

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.

Example

Click single button

sb = SysBot(ip=ip, click_global_delay=2.0)
seq = Sequence()

sb.Click(Button.A)

Press several buttons and release them

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)

Sequential click several buttons

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)

Get switch screen

sb = SysBot(ip=ip, click_global_delay=2.0)
seq = Sequence()

screen_shot = sb.ScreenShot()
open('screen.jpg', 'wb+').write(screen_shot)

Footnotes

  1. https://github.com/olliz0r/sys-botbase