blob: a43c726a8f462460d38c2631982edd018f27b9b3 [file] [log] [blame]
# Powershell script to dump accessibility events for Chrome. Takes optional first argument with part of window title to disambiguate the desired process.
$all = ps | where {$_.ProcessName -eq 'chrome'} |where MainWindowTitle -like "*$($args[0])*chrome" | select id, MainWindowTitle
echo $all
echo ""
If (@($all).length -gt 1) {
echo "Multiple matching processes, please disambuate: include part of the desired window's title as a first argument."
exit
}
$id = ps | where {$_.ProcessName -eq 'chrome'} | where MainWindowTitle -like "*$($args[0])*chrome*" | select id -ExpandProperty id | Out-String
$id_arg = "--pid=" + $id
$exe = ".\ax_dump_events.exe"
& $exe $id_arg