John Lam 1997 — 2026

Expanding my horizons

Wow … this was fun (but not the part where I had to discover the magic agent.Connected = -1 invocation).

import win32com.client

agent = win32com.client.Dispatch("Agent.Control.2")
agent.Connected = -1
agent.Characters.Load("Peedy", "Peedy.acs")

peedy = agent.Characters("Peedy")

peedy.LanguageID = 0x409
peedy.Show()
peedy.Speak("Hello, World!")
peedy.Play("Blink")