diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-07-20 17:20:16 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-07-20 17:20:16 +0000 |
commit | 584cd950be8f5edf3cfce5a69cd7cf3e85c57d46 (patch) | |
tree | d68046fa6a592eeaf3881cb1536aa15289c15522 /amiga/dist/Rexx/ShowTitles.nsrx | |
parent | 42395f6603e6b4d407bbad8c283b618a258d5c4d (diff) | |
download | netsurf-584cd950be8f5edf3cfce5a69cd7cf3e85c57d46.tar.gz netsurf-584cd950be8f5edf3cfce5a69cd7cf3e85c57d46.tar.bz2 |
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
Diffstat (limited to 'amiga/dist/Rexx/ShowTitles.nsrx')
-rw-r--r-- | amiga/dist/Rexx/ShowTitles.nsrx | 18 |
1 files changed, 18 insertions, 0 deletions
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 |