(Comp.sys.handhelds) Item: 3787 by Simone.Rapisarda at wolf.sublink.org Author: [Simone Rapisarda] Subj: How to execute programs while editing on the 48 Date: Tue Jul 30 1991 After some hours of investigation i finally discovered how to execute a program while there is a command line. ========================================================================== To allow the execution of a program while there is a command line just put the internal 40788 (null program) as the first command in that program. This program to work while there is a command line must be assigned to a key or included in a menu. ========================================================================== When I discovered this undocumented feature I could not resist to write a little program that allow me to move in the path while editing. You can take it as an example of the unimaginable possibilities of this feature. The program consist of two parts, the first (K52.3) must be assigned to the key 52.3 (the VISIT key), the second (INDIR: don't change its name) must be stored in the home dir. Usually the VISIT capability is disabled when in program entry-mode, the K52.3 program take advantage of this: when not in program entry-mode the VISIT is enabled (as usual) otherwise it will appear a menu containing the two commands UPDIR and HOME followed by all the subdirs of the current dir. - Pressing UPDIR will take you one dir up (oh, magic!). - Pressing HOME will take you to the home dir. - Pressing another menu key assigned to a dir will take you to that dir. - Every time the menu will be updated with the content of the new dir you're in. So you can move up and down the path to take what you need. If you are editing a pre-existing variable don't forget to return to the original directory: the edited variable will be stored in the current dir. Here are the two programs in ASC format. ------------------------- K52.3 -------------------------- %%HP:; "D9D20A1EE3D9D208870484E205094E4449425B2130D7FA3B2130F05F" ------------------------- K52.3 -------------------------- ----------------------------- INDIR ----------------------------- %%HP:; "D9D2047A20B51A1D9D2088704F61A184E205094E4449425B2130B2130C943204 1A158CC18E681A59C1ED2A240853ED2A22C23030132881305BCF1C9432887042 C2304563284E205094E444942597632D0040544509B13632230C4232387C1D51 12B2130DC9E" ----------------------------- INDIR ----------------------------- BTW, here it is an undocumented internal address I discovered in my investigations. It can be very useful for multi keys assignments. 40D93 if no command line then EVAL return else skip EVAL continue Sorry if my bad English caused any problem to you. Happy ASsigNing! RAP -- WolfNet BBS Pisa (Italy) Tel. +39-50-589050 300-14.4K Baud Matrix 2:332/602.0 Simone Rapisarda - via FidoNet node 2:33/800 UUCP: ...!gear!wolf!Simone.Rapisarda ARPA: Simone.Rapisarda@wolf.sublink.org