From 584cd950be8f5edf3cfce5a69cd7cf3e85c57d46 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 20 Jul 2010 17:20:16 +0000 Subject: Allow targetting any window/tab with ARexx commands. Adds new command WINDOWS to find out the number of windows and tabs open. ShowTitles.nsrx is an example of how to use the new functionality. svn path=/trunk/netsurf/; revision=10656 --- amiga/dist/Rexx/ShowTitles.nsrx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 amiga/dist/Rexx/ShowTitles.nsrx (limited to 'amiga/dist/Rexx') diff --git a/amiga/dist/Rexx/ShowTitles.nsrx b/amiga/dist/Rexx/ShowTitles.nsrx new file mode 100644 index 000000000..27de74122 --- /dev/null +++ b/amiga/dist/Rexx/ShowTitles.nsrx @@ -0,0 +1,18 @@ +/* Show all NetSurf windows and tabs open */ + +options results +address netsurf + +windows +wins = result + +do w=1 to wins + windows window w + tabs = result + say "Window" w "(" || tabs "tabs)" + + do t=1 to tabs + gettitle window w tab t + say " Tab" t || ":" result + end +end -- cgit v1.2.3