home *** CD-ROM | disk | FTP | other *** search
- 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
- From: jcr@milton.u.washington.edu (Mr. EuStress)
- Newsgroups: comp.sys.next.programmer
- Subject: Cyber-Typing to a Remote Window
- Message-ID: <1992Jul28.221421.6598@u.washington.edu>
- Date: 28 Jul 92 22:14:21 GMT
- Sender: news@u.washington.edu (USENET News System)
- Reply-To: jcr@milton.u.washington.edu (Mr. EuStress)
- Organization: University of Washington
- Lines: 14
-
- //Here's how to Cyber-Type to a Remote process:
- //115 is a lower case 's'.
- //1048576 is the command-key mode. 10 is the key-down
- //event. BOTH NXPing()'s are needed.
- //(*mc[4][12]) is DPSPrintf().
- //cc -g -O -s -w -o test test.c -lNeXT_s
- main () {
- void (***mc)() = DPSCreateContext(0,0,0,0);
-
- NXPing();
- (*mc[4][12])(mc,"10 0 0 0 1048576 \
- 0 0 115 0 frontwindow currentowner posteventbycontext\n");
- NXPing();
- }
-