home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!destroyer!gumby!wupost!waikato.ac.nz!fee
- From: fee@waikato.ac.nz
- Newsgroups: comp.sys.hp48
- Subject: Emulating a keypress in sys_RPL???
- Message-ID: <1992Nov16.090229.12183@waikato.ac.nz>
- Date: 16 Nov 92 09:02:29 +1300
- Organization: University of Waikato, Hamilton, New Zealand
- Lines: 46
-
- Hi all,
-
- How do I emulate a key-press in sys_RPL?
-
- That is, if I have a keycode in level 2 and a key plane in level 1,
- giving the location of a key that is always a menu key, how do I
- get the 48 to believe that key has been pressed and evaluate whatever
- function is assigned to the menu key at the time?
-
- What I have tried are the sequences: Key>StdKeyOb DoKeyOb
- and: Key>StdKeyOb EVAL
-
- I have had limited success with these. If the menukey has some global
- user variable name, such as that of a directory, a program or a list
- both the above sequences work fine.
-
- However, if the menukey is for some built-in function, like PICT, the 48
- will hang on trying either of the above sequences. Things that make you
- go mmmmmmhhhh...
-
- To obtain more info I left out the DoKeyOb and EVAL from the above and
- only executed Key>StdKeyOb and both object types worked fine and left
- something on the stack, which when decompiled, using Detlef's RPL lib,
- gave the following secondary:
-
- ":: PTR 40828
- PTR 3FF9
- PTR 41934
- ;"
-
- I can't find these entries in ENTRIES.A, except PTR 03FF9 appears to
- be a binary integer ONE. (Incidentally, the menukey I was trying i both
- cases was the first one, ie: keycode #1).
-
- Any ideas for how to achieve a reliable key press emulation? Why are
- built-in objects causing trouble?
-
- Regards,
- Conan.
- -----------------------------------------------------------------
- Conan J. Fee _ fee@waikato.ac.nz
- Centre for Technology (_)o
- University of Waikato, Hamilton /\ \ Phone: +(64)(7)8384206
- Private Bag 3105, New Zealand Fax: +(64)(7)8384218
- -----------------------------------------------------------------
-
-