Skip to content

Instantly share code, notes, and snippets.

View cibomahto's full-sized avatar

Matthew Mets cibomahto

View GitHub Profile
@cibomahto
cibomahto / saleae.py
Last active January 10, 2023 23:10
Press the 'start' button in the Saleae Logic 2 gui
# The Saleae Logic 2 GUI has a scripting API, but it's designed for full automation, and doesn't
# seem to have a method for telling the GUI to just start a capture. So forget it, let's just
# invoke the button ourselves...
#
# Tested with Windows 10 and Saleae Logic 2.4.3, you'll likely need to tweak this
def start_capture():
import pywinauto
app = pywinauto.application.Application(backend="uia").connect(title_re="Logic 2.*")