home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / tools / 2211 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.8 KB

  1. Path: sparky!uunet!icd.ab.com!iccgcc.decnet.ab.com!neawedde
  2. From: neawedde@iccgcc.decnet.ab.com (When the going gets Wierd, the Wierd turn PRO!!!)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Feasibility: Dos Apps Under Window
  5. Message-ID: <1993Jan22.153424.9624@iccgcc.decnet.ab.com>
  6. Date: 22 Jan 93 15:34:24 EST
  7. Lines: 43
  8.  
  9.  
  10.                  DOS APPLICATION COMMUNICATION WITH WINDOWS
  11.  
  12. Windows 3.1 has this nasty habit of allowing itself to become suspended
  13. whenever a "Dos" program is run maximized from the program manager.  This
  14. can become quite a nuisuance, since windows has stopped becoming multi-tasking
  15. and now is single threaded. 
  16.  
  17. Solution 1:    Make sure that Dos programs are not run full screen.  One can 
  18.             hardly assume that the users will remember to do this.
  19. Solution 2:    Don't run Dos programs ... only use Windows Apps
  20. Solution 3:    Run windows under DesqView or OS/2
  21. Solution 4:    The Dos App is loaded with a batch file, which loads in a TSR
  22.             before the Dos App.  This TSR would :
  23.             
  24.             1. Determine if Windows was loaded
  25.             2. If Loaded, is windows active ?
  26.             3. If windows not active then the Dos App is in 
  27.                 Full Screen mode. Issue a software interupt
  28.                 which will 'wake up' windows and put the
  29.                 Dos App into a window.  
  30.  
  31. The functionality of this is very similiar to pressing  <ALT> CR after running
  32. a Dos App,  but, a program doing this automatically.  
  33.  
  34. I would appreciate some feed back on this problem (at the risk of being
  35. Flamed).  From using VisBasic, I have written programs which can SendKeys from
  36. a windows program to a Dos App by using the Clipboard.  But this seems to be
  37. exactly the opposite problem - how does a DOS program send a Key Sequence to a
  38. windows program ... especially if the windows program manager is sleeping.
  39.  
  40.  
  41.  
  42. Thanks in advance !
  43.  
  44.  
  45. Jim Neawedde
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.