home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5308 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  927 b 

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!news
  2. From: jcr@milton.u.washington.edu (Mr. EuStress)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Cyber-Typing to a Remote Window
  5. Message-ID: <1992Jul28.221421.6598@u.washington.edu>
  6. Date: 28 Jul 92 22:14:21 GMT
  7. Sender: news@u.washington.edu (USENET News System)
  8. Reply-To: jcr@milton.u.washington.edu (Mr. EuStress)
  9. Organization: University of Washington
  10. Lines: 14
  11.  
  12. //Here's how to Cyber-Type to a Remote process:
  13. //115 is a lower case 's'.
  14. //1048576 is the command-key mode.  10 is the key-down
  15. //event.  BOTH NXPing()'s are needed. 
  16. //(*mc[4][12]) is DPSPrintf().
  17. //cc -g -O -s -w -o test test.c -lNeXT_s
  18. main () {
  19.   void (***mc)() = DPSCreateContext(0,0,0,0);
  20.  
  21.   NXPing();
  22.   (*mc[4][12])(mc,"10 0 0 0 1048576 \
  23.   0 0 115 0 frontwindow currentowner posteventbycontext\n"); 
  24.   NXPing();
  25. }
  26.