home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hook57.zip / objopen.doc < prev    next >
Text File  |  1995-01-17  |  5KB  |  121 lines

  1.  
  2.        Sun  01-08-95
  3.  
  4. Title: Objopen,doc
  5.  
  6.  From:Morton F. Kaplon   CIS:73457,437
  7.  
  8. In conjunction with a Hot Key program and the included program
  9. OBJOPEN.EXE there is a way you can organize your desktop to open up any
  10. Folder with a single keystroke; you can also create your own LAUNCH
  11. PAD(s) that can be opened for use with a single Key Stroke.
  12.  
  13. 1 - The included program  OBJOPEN.EXE  takes as its command line
  14.     argument the filespec of a folder.
  15.  
  16.     If you look at the DESKTOP directory in the root directory of your
  17.     boot disk (almost always C:) you will see a listing of
  18.     subdirectories with the names of the folders on your desktop.
  19.  
  20.     Each of these subdirectories (as it is the name of a folder)
  21.     contains within it a list of subdirectories whose names are the
  22.     names of the folders within it . And so on.
  23.  
  24.     Usually the SYSTEM folder on the DESKTOP has a number of folders
  25.     within it. For example one is the GAMES folder.
  26.  
  27.     To open that folder with OBJOPEN.EXE, from the command line give
  28.     the command:   objopen c:\desktop\system\games
  29.     and the GAMES folder will be opened with one of the game icons
  30.     highlighted. A CR will start that game or you can use the cursor
  31.     arrow keys to move to any of the other game icons and then start
  32.     them with the CR. No Mouse needed.
  33.  
  34.     When finished just close the folder with Alt-F4 and your desk top is
  35.     restored to the way it was. No other folders open.
  36.  
  37. 2 - You do not want, of course,  to have to go to a command line to open
  38.     a folder. It would probably take mcuh more time, BUT if you use any
  39.     of the available (commercial,shareware or freeware) Hot-Key programs
  40.     you can assign the various set of commands for folders you want to
  41.     open that way to different hot-keys. Then, for example, to open the
  42.     GAMES folder, Hit the HOT-KEY to which you have assigned the
  43.  
  44.     command:  drive:\dir\objopen.exe c:\desktop\system\games
  45.  
  46.     where  drive:\dir\objopen.exe  is the complete file specification
  47.     for oobjopen.exe .
  48.  
  49. 3 - Make your own LAUNCH PAD(s)
  50.     Suppose you have a group of folders and/or program icons you want to
  51.     keep together in one LAUNCH FOLDER.
  52.  
  53.     You can create the new Folder in one of two ways.
  54.  
  55.     A:
  56.     Open the TEMPLATES icon in the System Folder and drag a Folder
  57.     Template to the DeskTop. Change its name to something suitable, say
  58.     LAUNCH1.
  59.  
  60.     B:
  61.     From a command prompt, give the command:  md c:\desktop\launch1
  62.     You will see on the desktop a folder named LAUNCH1.
  63.  
  64.     In either case after the folder has been created, open it and you can
  65.     then drag the icons you want to collect together to that folder and
  66.     then size it and position it appropriately.
  67.  
  68.     Your desktop will now have a folder named LAUNCH1 and it will contain
  69.     the icons you placed there (could be a combination of Folder icons
  70.     and  program icons). The icons placed in the folder LAUNCH1 will not
  71.     now appear on the DeskTOP.
  72.  
  73.     Now assign the command:    drive:\dir\objopen.exe c:\desktop\launch1
  74.     to a HOT-KEY of your choice and  that folder is opened by
  75.     pressing that HOT_KEY. You can navigate within it with the cursor
  76.     keys and activate with the CR. You can even place the SHREDDER in
  77.     it if you so desire.
  78.  
  79.     You can windup with just LaunchPad(s) on your DESKTOP. And they have
  80.     the advantage that all the Icons are readable (no drawer contents
  81.     to remember).
  82.  
  83.     I find it useful for each of the "Launch Folder(s)" to goto Page 2 of
  84.     Window options under SETTINGS and choose the Automatically Close All
  85.     Objects option. This gives you the cleanest set up. This appears to
  86.     be an available option so far only under WARP.
  87.  
  88. 4 - If you haven't tried it, try using the Non-Flowed option under the
  89.     Settings for each of your Launch Folders to have them appear
  90.     vertically. I think it gives a more pleasing appearance.
  91.  
  92.     If you like Minimal Desk Top Clutter, this is the way to go. I place
  93.     by most used icons nearest to the left (or top) edge of the open
  94.     folder so they are fewest cursor strokes away from the first hilited
  95.     icon when the folder is opened.
  96.  
  97. 5 - What is objopen.exe ?
  98.     The program (written in Assembler - my own  quirk), makes the following
  99.     API calls:
  100.  
  101.     Function Called   <-------------------Purpose of Call-------------------->
  102.     DosGetInfoBlocks  Get the Command Line String
  103.     WinInitialize     This and the next Call are needed in order to be
  104.     WinCreateMsgQueue able to use  WinMessageBox  for Error Display
  105.     WinQueryObject    Is passed CommandLine String & returns handle to object
  106.     WinSetObjectData  Called with above handle and Parm String  'OPEN=DEFAULT'
  107.     WinSetObjectData  Second call needed to give it focus
  108.     DosExit           Exit the Program
  109.  
  110.     If the command line string is invalid, then after the WinQueryObject
  111.     Call an appropriate Error Message, using WinMessageBoxand, will be
  112.     diaplayed and the program ends.
  113.  
  114. 6 - An available freeware HOT-KEY program is HOOK, a program I have
  115.     written. The latest version is HOOK23.ZIP and it is or will be
  116.     shortly on the Vienna VA Shareware BBS and CompuServe in
  117.     IBMOS2(OS2User). As noted there are quite a few programs of this
  118.     type both Shareware and Commercial.
  119.  
  120.  
  121.