# The simplest use of the accessibility API. Grab a surge xt running instance
# and dump the accesibility heirarchy

import atomacos
import sxttest

sxt = sxttest.getSXT()
mf = sxttest.getMainFrame(sxt)
mf.activate()

ot = sxttest.firstChildByTitle(mf, "Scene A Play Mode")
ot.ShowMenu()
oscMenu = sxttest.findAllMenus(sxt)[0]

sxttest.recursiveDump(oscMenu, "OM>")
Beispiel #2
0
# The simplest use of the accessibility API. Grab a surge xt running instance
# and dump the accesibility heirarchy

import atomacos
import sxttest

sxt = sxttest.getSXT()
mf = sxttest.getMainFrame(sxt)
mf.activate()

tad = sxttest.firstChildByTitle(mf, "Main Menu")
tad.Press()

main = sxttest.findAllMenus(sxt)[0]
temp = sxttest.firstChildByTitle(main, "About Surge")
temp.Press()

sxttest.recursiveDump(mf, "")

sgh = sxttest.firstChildByTitle(mf, "Surge GitHub")
sgh.Press()
Beispiel #3
0
# Using the patch selector menu, find and press the 'open factory patches' folder

import sxttest

sxt = sxttest.getSXT()
mf = sxttest.getMainFrame(sxt)
mf.activate()

ps = sxttest.firstChildByTitle(mf, "Patch Selector")
ps.ShowMenu()

patchMenu = sxttest.findAllMenus(sxt)[0]
sxttest.recursiveDump(patchMenu, "MENU:--")

temp = sxttest.firstChildByTitle(patchMenu, "Open Factory Patches Folder...")
temp.Press()
Beispiel #4
0
# Show that that the modulation menu properly exposes to accessibility
# by dumping the menu, muting it, then dumping it again and unmuting it

import sxttest
import time

sxt = sxttest.getSXT()
mf = sxttest.getMainFrame(sxt)
mf.activate()

# Load DXEP
sxttest.loadPatchByPath(sxt, ["Keys", "DX EP"])
time.sleep(0.5)

pfg = sxttest.firstChildByTitle(mf, "Scene A Pre-Filter Gain")
pfg.ShowMenu()
pfgMenu = sxttest.findAllMenus(sxt)[0]
sxttest.recursiveDump(pfgMenu, "MENU>> ")
moded = sxttest.firstChildByTitle(pfgMenu, "Mute ENV 3")
moded.Press()

time.sleep(0.5)

pfg.ShowMenu()
pfgMenu = sxttest.findAllMenus(sxt)[0]
sxttest.recursiveDump(pfgMenu, "MENU>> ")
moded = sxttest.firstChildByTitle(pfgMenu, "UnMute ENV 3")
moded.Press()