home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / byw98213.zip / README.TXT < prev   
Text File  |  1998-08-01  |  3KB  |  91 lines

  1. ===========================================================================
  2.                               BYWINDOW.EXE
  3.  
  4.                http://www.ozemail.com.au/~dbareis (db0@anz.com)
  5. ===========================================================================
  6.  
  7.  
  8. You need to be aware that the commands you specify are
  9. sent to all windows that match the mask.  The "*" character
  10. is the wildcard character and means different things depending
  11. on its position (you are allowed 0 or 1 '*' chars).
  12.  
  13.    * No '*' means text  describes EXACT window title (including
  14.      leading and trailing whitespace.
  15.  
  16.    * The '*' begins the text means the Window should contain the
  17.      text you supply.
  18.  
  19.    * The '*' ends the text means that the window title should
  20.      start with the text you supply.
  21.  
  22. This program sends output to stdout/stderr so you should redirect
  23. this.
  24.  
  25.  
  26.  
  27. Some simple examples:
  28.  
  29.    ByWindow MAXIMISE Netscape*
  30.    ByWindow SetFocus Netscape*
  31.  
  32.  
  33. To position and size a window:
  34.  
  35.    ByWindow Size     E.EXE*    100  300
  36.    ByWindow Move     E.EXE*    100  100
  37.  
  38.  
  39. Change Windows Title:
  40.  
  41.    ByWindow NewTitle  "E.EXE -*" "Simple Editor"
  42.  
  43.  
  44. To dump its application menu:
  45.  
  46.    ByWindow DumpMenu  "Simple Editor"  > E.DMP
  47.  
  48.  
  49. To remove its "save As" option:
  50.  
  51.    ByWindow RemoveMenu1 "Simple Editor" 0x404
  52.  
  53. To close the window:
  54.  
  55.    ByWindow close  "Simple Editor"
  56.  
  57.  
  58.  
  59. The following shows the programs redirected output when a
  60. syntax error occurred:
  61.  
  62. []-----------------------------------------------------------[]
  63. | BYWINDOW.EXE, Version 98.213 (C)opyright Dennis Bareis 1998 |
  64. |            http://www.ozemail.com.au/~dbareis (db0@anz.com) |
  65. []-----------------------------------------------------------[]
  66.  
  67. CORRECT SYNTAX:
  68.     BYWINDOW[.EXE] [!]ActionId "[*]WindowText[*]" | DESK-TOP | WINDOW-LIST
  69.                    [XposOrLen YposOrLen] [ON|OFF] ["NewWindowTitle"]
  70.                    [WindowId|NOFID SpecMsgId SpecIdMp1Val SpecIdMp2Val]
  71.                    [SV_*SysId NewValue] [[0x]MenuItemID ...]
  72.                    [> DebugOutputFile/Device]
  73.  
  74. Valid ActionIds (! means apply to all windows, ie. even owned):
  75.     DUMP[+]  MINIMIZE    MAXIMIZE    SETFOCUS  CLOSE HIDE  SHOW
  76.     REFRESH  size        move        SysModal  flash
  77.     NewTitle SpecifiedId SetSysValue DumpMenu  DumpSysMenu
  78.     RemoveMenu RemoveMenu1 RemoveSysMenu RemoveSysMenu1
  79.  
  80. Note that the 'WindowText' including any wildards may be specified twice
  81. seperated by '~', in which case the 2nd window text is a child window of
  82. the 1st!  (example "*Command Ref~Contents") *** NOT WORKING YET! ***
  83.  
  84. REAL LIFE (tested & used) EXAMPLES:
  85.     ByWindow.exe !DUMP * > \1.tmp & type \1.tmp
  86.     ByWindow.exe SetFocus "STARTUP.CMD*"
  87.     ByWindow.exe SpecifiedId DESK-TOP NOFID 0x20 0x2c1 0x10002
  88.     ByWindow.exe !SpecifiedId "PMDiary Opt*" NOFID 0x7a 0x2e011005 0x63
  89.  
  90. REASON: Too few parameters, expect at least 2.
  91.