Files
ableton-mcp-ai/run_ableton.ps1

12 lines
433 B
PowerShell

Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName Microsoft.VisualBasic
$proc = Get-Process | Where-Object { $_.Name -match "Ableton Live" } | Select-Object -First 1
if ($proc) {
[Microsoft.VisualBasic.Interaction]::AppActivate($proc.Id)
Start-Sleep -Milliseconds 500
[System.Windows.Forms.SendKeys]::SendWait("{F10}")
Write-Host "Sent F10 to Ableton"
} else {
Write-Host "Ableton not running"
}