mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 12:38:51 +01:00
Add a dump_windows script to help with automating screenshoting
Oddly hey hangs when asking Pe, someone should investigate. Change-Id: Ic94d0a2600ceae5f73ce11d5666b6a7abd54c0c0
This commit is contained in:
parent
9d87b2c5f8
commit
f60531661b
12
3rdparty/mmu_man/scripts/dump_windows.sh
vendored
Executable file
12
3rdparty/mmu_man/scripts/dump_windows.sh
vendored
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# get running app signatures and filter out background apps
|
||||
roster | sed -n 's/)$//;s/^ *//;/[^64] (/s/ .*(/\t/p' | while read team app; do
|
||||
echo "# team $team $app"
|
||||
c="$(hey "$team" count Window | grep result | cut -d" " -f 7)"
|
||||
for w in $(seq 1 "$c"); do
|
||||
title="$(hey "$team" get Title of Window "$w" | sed -n 's/"$//;/"result"/s/.*TYPE) : "//p')"
|
||||
frame="$(hey "$team" get Frame of Window "$w" | sed -n 's/)$//;/"result"/s/.*TYPE) : BRect(//p')"
|
||||
echo "hey \"$app\" set Frame of Window \"$title\" to \"BRect($frame)\""
|
||||
done
|
||||
done
|
Loading…
Reference in New Issue
Block a user