miken@hcr.UUCP (Mike Nemeth) (10/19/89)
i am not enamoured of the "more" command. i have my own version that is more to my liking (ie. i can search forward/backward, back up a page, choose another file, ...). does anybody know of a way to call a user defined piece of code instead of the routine that gets called when i doubleclick on a file and choose "show"? or am i just fingerpainting with Prep H... HA! (pronoun trouble!) It's not "he doesn't have to shoot you now", it's "he doesn't have to shoot ME now". Well I say he does have to shoot me now! SO SHOOT ME NOW!!! Mike Nemeth HCR Corp. Toronto, Ont, Canada {utzoo,utai}!hcr!bugcity!miken
ignac@electro.UUCP (Ignac Kolenko) (10/23/89)
In article <2315@hcr.UUCP> miken@hcr.UUCP (Mike Nemeth) writes: >i am not enamoured of the "more" command. i have my own version that >is more to my liking (ie. i can search forward/backward, back up a >page, choose another file, ...). does anybody know of a way to call >a user defined piece of code instead of the routine that gets called >when i doubleclick on a file and choose "show"? or am i just fingerpainting >with Prep H... ya, this is actually easier than you most people think. simply use some sort of desktop.inf editor (ie: QUIKINF.PRG, a fine Quick Utility) to edit the installed applications for your machine. simply pick your favorite text editor as the installed application, and set the application mask to be what ever document you want to look at: ie: if you want to look at all *.C *.H, *.DOC and *.TXT files using TEMPUS.PRG, simply install tempus.PRG as the installed application and for each installation give it one the above search masks. once you re-install that desktop.inf file (ie: reboot, or exit from QUIKINF.PRG), you can then click on any *.DOC file (or any of the masks you set up in the desktop.inf file) and TEMPUS.PRG will automatically come up with the file loaded for you. simple, eh!!! -- =====Ignac A. Kolenko (The Ig) watmath!watcgl!electro!ignac===== co-author of QuickST, and the entire line of Quick Shareware!!!! "I don't care if I don't win, 'cause I don't care if I fail" from 'Youth Of Today' by SUBURBAN DISTORTION
andyc@hplsla.HP.COM (Andy Cassino) (10/24/89)
i am not enamoured of the "more" command. i have my own version that is more to my liking (ie. i can search forward/backward, back up a page, choose another file, ...). does anybody know of a way to call a user defined piece of code instead of the routine that gets called when i doubleclick on a file and choose "show"? ---------- I have a way to do this, but it's pretty kludgy. First, let me state I am doing this is in Neodesk 2.04; I haven't tried it in the TOS desktop. Even in Neodesk, I don't think this is supposed to work. So here's what I did. I first installed my preferred "more" as an application for two file suffixes. The problem is, that's not enough, I need about a dozen suffixes. So, I edited the neodesk.inf file and found the line that installed the application. I duplicated this line as much as I needed immediately below the existing line, and changed the suffixes in the duplicate lines. Well, what do you know, but it worked - have my preferred more installed for a dozen suffixes! I've been doing this for a couple of months, and nothing has gotten upset about it yet. Well, I know you can *try* to do the same thing to the TOS desktop.inf file, but I have no idea if it will work. Disclaimer: The opinions expressed herein are those solely of the author, who has no pecuniary interest in the companies mentioned. Copyright (c) 1989 by Andrew Cassino. Permission for distribution on USENET hereby granted. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Andy Cassino % % uucp: hplabs!hplsla!andyc domain: andyc%hplsla@hplabs.hp.com % % Hewlett-Packard Lake Stevens Instrument Division % % 8600 Soper Hill Road Everett, WA 98205-1298 % % (206) 335-2211 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
wsflinn@watcgl.waterloo.edu (Scott Flinn) (10/24/89)
In article <1135@electro.UUCP> ignac@electro.UUCP (Ignac Kolenko) writes: >In article <2315@hcr.UUCP> miken@hcr.UUCP (Mike Nemeth) writes: >>i am not enamoured of the "more" command. i have my own version that >>is more to my liking (ie. i can search forward/backward, back up a >>page, choose another file, ...). does anybody know of a way to call >>a user defined piece of code instead of the routine that gets called >>when i doubleclick on a file and choose "show"? or am i just fingerpainting >>with Prep H... > > >ya, this is actually easier than you most people think. simply use some sort >of desktop.inf editor (ie: QUIKINF.PRG, a fine Quick Utility) to edit >the installed applications for your machine. simply pick your favorite text >editor as the installed application, and set the application mask to be >what ever document you want to look at: [etc.] This method is mainly satisfactory, but suffers from one major drawback: the program must load from disk before it runs. I no longer have anywhere near enough memory to keep a ram disk installed, but I do have enough to store a TSR that provides a decent 'more' and print utility. The supplied 'more' utility runs directly from ROM ... can something in desktop.inf be changed to tell it to run some code from a different place? Cheers, -- Me: Scott Flinn / "If it doesn't fit, force it. Domain: wsflinn@watcgl.waterloo.edu / If it breaks, then it didn't UUCP: watmath!watcgl!wsflinn / fit anyway."
decouty@irisa.fr (Bertrand Decouty) (10/24/89)
In article <1135@electro.UUCP> ignac@electro.UUCP (Ignac Kolenko) writes: | [...] | | ya, this is actually easier than you most people think. simply use some sort | of desktop.inf editor (ie: QUIKINF.PRG, a fine Quick Utility) to edit | the installed applications for your machine. simply pick your favorite text | editor as the installed application, and set the application mask to be | what ever document you want to look at: ie: if you want to look at all *.C | *.H, *.DOC and *.TXT files using TEMPUS.PRG, simply install tempus.PRG as | the installed application and for each installation give it one the above | search masks. once you re-install that desktop.inf file (ie: reboot, or exit | from QUIKINF.PRG), you can then click on any *.DOC file (or any of the | masks you set up in the desktop.inf file) and TEMPUS.PRG will automatically | come up with the file loaded for you. simple, eh!!! | As for me, I have added the following line to desktop.inf: #F FF 04 c:\bin\filespy.prg@ *.*@ and, each time i click on a not-executable file, filespy is called automatically and displays this file. Unfortunately, you can't see another file using f6 funcion key from filespy because mouse is not activated. So, I have installed filespy as a GEM app, suffix: *. Now, I can use f6 function key, BUT BUT... I have no more executable files! All files are displayed by filespy! I can't even de-install filespy.prg as it is no more an exec file! Fortunately, i have not saved this desktop, so a reboot has corrected this trouble. My question is: is there a way to specify all files except PRG, APP, TTP, TOS? | | -- | =====Ignac A. Kolenko (The Ig) watmath!watcgl!electro!ignac===== | co-author of QuickST, and the entire line of Quick Shareware!!!! | "I don't care if I don't win, 'cause I don't care if I fail" | from 'Youth Of Today' by SUBURBAN DISTORTION | Bertrand DECOUTY | EMAIL : decouty@irisa.fr, decouty@irisa.uucp | | IRISA - INRIA | {uunet,mcvax,inria}!irisa!decouty | | Campus de Beaulieu | PHONE : +33 99 36 20 00 | | F-35042 Rennes Cedex - FRANCE| FAX : +33 99 38 38 32 | TELEX: 950473 UNIRISA|
leilabd@syma.sussex.ac.uk (Leila Burrell-Davis) (10/25/89)
miken@hcr.UUCP (Mike Nemeth) writes: > > i am not enamoured of the "more" command. i have my own version that > is more to my liking (ie. i can search forward/backward, back up a > page, choose another file, ...). does anybody know of a way to call > a user defined piece of code instead of the routine that gets called > when i doubleclick on a file and choose "show"? I enclose details of how to do this originally posted by Moshe Braner when he posted his version of more some years ago: ---------------------Start of excerpt------------------------------- Submitted-by: braner@tcgould.tn.cornell.edu (Moshe Braner) Posting-number: Volume 1, Issue 41 Archive-name: more To judge from mail I've been getting, it is time for a repost of MORE.TTP. This is a little utility to print text files to the screen or a printer. See the doc file, or invoke MORE with an empty command line for brief help. I have replaced the desktop "SHOW/PRINT" thing (ugh!) so that when I double-click on a document it is shown via MORE. To do that I modified the desktop.inf file. The last lines of it now say: ... #T 00 07 02 FF BLACK HOLE@ @ #F FF 04 C:\BIN\MORE.TTP@ *.*@ #D FF 01 @ *.*@ #G 03 FF *.APP@ @ #G 03 FF *.PRG@ @ #F 03 04 *.TOS@ @ #P 03 04 *.TTP@ @ Works like a charm. I just wish MORE would work from inside the Laser C shell -- I don't know why it does not. ---------------------End of excerpt------------------------------- Maybe Mike should consider submitting his version of more to the binaries/sources group. I like and use Moshe's version but it only allows one file to be inspected per invocation. Another alternative is less but the ST version doesn't expand wildcards (and neither does TOS) which is frustrating. -- Leila Burrell-Davis, Computing Service, University of Sussex, Brighton, UK Tel: +44 273 678390 Fax: +44 273 678335 JANET: leilabd@uk.ac.sussex.syma INTERNET: leilabd%syma.sussex.ac.uk@nsfnet-relay.ac.uk BITNET: leilabd@syma.sussex.ac.uk UUCP: leilabd@syma.uucp
jbww@ukc.ac.uk (J.B.W.Webber) (10/25/89)
it would appear to be time to post parts of a discussion that has appeared here before .... deskLESS.see.Z Jan 22 11:05 1987 Page 1 There is more that can be done to modify the behaviour of the ST desktop than appears to be gernerally realised, so hope that the following notes are of use. Any information from those that can shed further light would be nice. Desktop.inf contains plain ascii text, and the names of installed applications can be edited to include path information. There are other useful modificaions that can be made, to configure the behaviour of the desktop. Recently, people have queried whether it was possible to do anything about the action of the desktop, when displaying/printing a file. This is particularly relevant now that LESS is available. The few lines of desktop.inf before the application instalation information are : #F FF 04 @ *.*@ #D FF 01 @ *.*@ #G 03 FF *.APP@ @ #G 03 FF *.PRG@ @ #F 03 04 *.TOS@ @ #P 03 04 *.TTP@ @ #P 03 04 d:\DUMP.TTP@ *.BAS@ The action of the desktop is clearly to try matching a 'double-clicked' file against these templates, IN REVERSE ORDER. Once a match has been made, the desktop then takes either the specified action, or if none, the default action. [ Thus if the bottom template is changed to @ *.*@ then an attempt will be made to dump ALL files. Interestingly, not only will .prg (etc) files not be executed, they will also not be displayed as executables on the desktop. ] If no other match is found, the top line wakes up the see/print alert box that so incenses many people. The simple solution is just to insert the name of one's favourite display routine, as below. This will then ensure that any non-executable is then read using the facilities of LESS, (thus ending that sinking feeling, as the crucial paragraph that one was looking for flashes off the top of the page.) (Printing is best handled by a proper configurable printer spooler. #F FF 04 d:\LESS.TTP@ *.*@ #D FF 01 @ *.*@ #G 03 FF *.APP@ @ #G 03 FF *.PRG@ @ #F 03 04 *.TOS@ @ #P 03 04 *.TTP@ @ J.B.Webber Physics Lab., University of Kent. jbww@ukc.ac.uk From mcvax!seismo!lll-crg!lll-lcc!vecpyr!amd!pesnta!hplabs!ucbvax!UHUPVM1.BITNET!ACS1 9 Fri May 23 13:26:25 BST 1986 In response to someones query about the desktop.inf.... tah dah ----- Everything you always wanted to know about desktop.inf, but were afraid to ask. Below is a typical desktop.inf file (with a few changes added for examples). Below each line is a definition of what each value represents. #a000100 This is the first desk accessory, the rs232 config. Each 0 represents the first column of buttons on the set rs232 config dialog box. The first 0 is column 1 row 1, the second 0 is coumn 1 row 2, etc. A 1 value indicates that a button in the second column was chosen. #b000000 This is the set printer config. It works the same way as the rs232 config. #c7770007000600070055200505552220770557075055507703111103 This is the color palette. The color value is set using 3 digits at a time, representing the red, green and blue values. The 3111103 at the end deals with the keyboard repeat rate, and sensitivity. (None of the above three will do anything if the associated desk accessory is not loaded) #d This is apparently reserved for a fourth accessory, and does nothing at this time (so far as I can see). #E C4 02 (#E=Extras) This is two things. The first value has to do with both the Set Preference dialog and the mouse double click rate. The byte is broken down as follows with the indicated bit set performing the noted action: Bit 7 6 5 4 3 | 2 1 0 Value 128 64 32 16 8 | 4 2 1 displays sorted sorted confirm confirm | double click rate TEXT by by deletes copies | all three bits, values (if not set size date | may only be from 0-4 displays \ / | 5-7 will turn off the icons) both bits | mouse buttons sort by type If neither bit 5 or 6 is set the sort is by name The second value is 03 for hi rez, 02 for medium rez, or 01 for low rez. #W 00 00 02 0B 2A 0B 08 A:\*.*@ (#W=Window) #W 00 01 0A 01 45 09 08 A:\TEST.C\*.*@ #W 00 00 0E 09 2A 0B 08 A:\*.INF@ #W 00 00 0F 0A 2A 0B 00 @ The above four are the window defs. The first number is how far over the horizontal slider is, the second is the vertical slider. The third number is the x coordinate of the left hand side of the window (this takes on even values, with odd values the same as next lowest even value). The fourth number is the y coordinate (this takes single increments). The fifth and sixth numbers are the width and height, respectively. The last number indicates where on the screen the window will open from. (The window opens with a different shape and from a different place with each number, but when Jan 22 11:06 1987 Page 2 you close the window, it will go to another place on the screen. I have not hacked at this long enuf to figure it out.) A zero or FF will not open the window. The text indicates which drive's contents will be displayed. If the drive does not exist, the window won't open, ie. drive bits not set. Also, if the display validation is omitted, the window won't open. The second def above will display the contents of the folder TEST.C, while The third def above will open a window, and only display the .INF files on drive A. If you close and open the window, the files will display as defined in the file and program defs below. (NOTE: this only applies to icon images, every file will display in text -- except if the file bits are marked to be hidden, system, volume, read/write and whatever other bits there are, in which case it won't display at all, but if it is read only, it will display -- strange HUH?) The bottom-most open window in the list will be the active window. #M 00 02 00 FF D FLOPPY DISK@ @ (#M=iMage (?)) #M 00 00 00 FF A DRIVE A@ @ #M 00 01 00 FF B FLOPPY DISK@ @ These describe the icon attributes. The first two numbers are the column and row position of the icon. The column can be from 0-7, the row 0-3. The third number determines the icon image which will be displayed. The image number is the same for this and the remaining defs in desktop.inf, as follows: 0= disk drive (drawer) 1= folder (sub-directory) 2= trash can 3= executable file (.PRG, .TOS, or .TTP) 4= text (stack of papers) The fourth value doesn't seem to do anything, but must be a place holder for an unimplemented function. The single letter is the drive identifier, and the text is the drive name. The first @ indicates the end of the drive name. The second @ does nothing, but we can speculate as described below for the file identifiers. The order in the list determines the visual heirarchy of the icons, ie. which will display on top when moved over another icon. #T 00 03 02 FF BLACK HOLE@ @ (#T=Trash) This is the same as the disk drive. If you move a disk drive identifier below this in the list, it will display on top of the trash if moved to the same location. The trash has no identifier letter, but you can put one in. #F 03 04 @ *.INF@ (#F=Files) #D FF 01 @ *.C@ (#D=Directories) These two determine which type of file or directory will be displayed, when displayed as icons. The first line will make GEM display only .INF files for use with the SHOW, PRINT, CANCEL alert box. If you delete this line, no icons will be shown for any file, except as defined below for programs. The second line does the same for sub-directories, only .C
kllove@uokmax.ecn.uoknor.edu (Kenneth L Love) (10/25/89)
In article <1135@electro.UUCP> ignac@electro.UUCP (Ignac Kolenko) writes: > > >ya, this is actually easier than you most people think. simply use some sort >of desktop.inf editor (ie: QUIKINF.PRG, a fine Quick Utility) to edit >the installed applications for your machine. simply pick your favorite text >editor as the installed application, and set the application mask to be [ example deleted ] > >-- >=====Ignac A. Kolenko (The Ig) watmath!watcgl!electro!ignac===== > co-author of QuickST, and the entire line of Quick Shareware!!!! > "I don't care if I don't win, 'cause I don't care if I fail" > from 'Youth Of Today' by SUBURBAN DISTORTION I don't have this quikinf.prg. Anybody know where I can get it? Now on to my main question: I want to load up Empire by clicking on a save game and have that game loaded into my ST. I've used the 'Install Application' and Saved the Desktop and gotten the *.EMP file to load Empire. However, the .EMP is not loaded into the game and I have to use the load saved game option in Empire. Is there something I'm doing wrong? Or can I not load saved games like I'm trying to? Has anybody seen or heard anything about Empire II? What's the latest version of Empire I (mine is 2.05C)? Kenneth Love
ur_lord@the_land (ur-lord) (10/25/89)
Bertrand Decouty asks: >As for me, I have added the following line to desktop.inf: > #F FF 04 c:\bin\filespy.prg@ *.*@ > >and, each time i click on a not-executable file, filespy is called >automatically and displays this file. Unfortunately, you can't see >another file using f6 funcion key from filespy because mouse is not >activated. >So, I have installed filespy as a GEM app, suffix: *. Now, I can use f6 >function key, BUT BUT... I have no more executable files! All files are >displayed by filespy! I can't even de-install filespy.prg as it is no >more an exec file! Fortunately, i have not saved this desktop, so a > reboot has corrected this trouble. > >My question is: is there a way to specify all files except PRG, APP, >TTP, TOS? The Desktop parses the DESKTOP.INF file in REVERSE order, that's why it appends all the installed apps to the end of the file. So to do what you wish to do, place the #F FF 0$ C:\BIN\FILESPY.PRG@ *.*@ line at the very beginning of the program list before the executables. For example: #G 03 04 C:\BIN\TEMPUS.PRG@ *.*@ #G 03 FF *.APP@ @ #G 03 FF *.PRG@ @ #F 03 04 *.TOS@ @ #P 03 04 *.TTP@ @ would allow files with the extensions APP,PRG,TOS and TTP to be executed and all others would call TEMPUS.PRG. One note if you do do this, if you call an GEM editor that has a resource file from a different directory that the current working directory GEM will NOT find the resource file. The only way around this is to have all of your resource files in the root directory of your boot device(* Ugh!*). Jim Kershner ur-lord@the_land synergist@genie jsmodula@bix
roland@cochise (10/27/89)
decouty@irisa.fr (Bertrand Decouty) writes: >My question is: is there a way to specify all files except PRG, APP, >TTP, TOS? Yes, as I said before, put the *.* filespec _above_ the lines containing *.PRG etc. - the order in DESKTOP.INF is significant! I know that You believe You understand what You think I said, but I'm not sure You realize that what You heard is not what I meant. Roland Rambau rra@cochise.pcs.com, {unido|pyramid}!pcsbst!rra, 2:507/414.2.fidonet
roland@pcsbst.UUCP (10/27/89)
>>the installed applications for your machine. simply pick your favorite text >>editor as the installed application, and set the application mask to be >>what ever document you want to look at: [etc.] >This method is mainly satisfactory, but suffers from one major drawback: >the program must load from disk before it runs. I no longer have anywhere >near enough memory to keep a ram disk installed, but I do have enough to >store a TSR that provides a decent 'more' and print utility. The supplied >'more' utility runs directly from ROM ... can something in desktop.inf be >changed to tell it to run some code from a different place? I can not answer your question, but can propose a possible ( tested! :-) workaround: you could load the 'more' as an accessory, and install a
roland@pcsbst.UUCP (10/27/89)
[ about installing a "more" as replacement for the [show]...-box ] >I have a way to do this, but it's pretty kludgy. First, let me state I am >doing this is in Neodesk 2.04; I haven't tried it in the TOS desktop. Even in >Neodesk, I don't think this is supposed to work. But it works well on the TOS Desktop too. >first installed my preferred "more" as an application for two file suffixes. >The problem is, that's not enough, I need about a dozen suffixes. So, I >edited the neodesk.inf file and found the line that installed the >application. I duplicated this line as much as I needed immediately below the >existing line, and changed the suffixes in the duplicate lines. Well, what do >you know, but it worked - have my preferred more installed for a dozen >suffixes! I've been doing this for a couple of mont
gilmore@vms.macc.wisc.edu (Neil Gilmore) (10/28/89)
In article <1989Oct25.063123.30913@uokmax.ecn.uoknor.edu>, kllove@uokmax.ecn.uoknor.edu (Kenneth L Love) writes... >In article <1135@electro.UUCP> ignac@electro.UUCP (Ignac Kolenko) writes: (hows and whys deleted) >I don't have this quikinf.prg. Anybody know where I can get it? Now on to >my main question: > I want to load up Empire by clicking on a save game and have that game >loaded into my ST. I've used the 'Install Application' and Saved the Desktop >and gotten the *.EMP file to load Empire. However, the .EMP is not loaded >into the game and I have to use the load saved game option in Empire. Is >there something I'm doing wrong? Or can I not load saved games like I'm >trying to? It's not your fault. For a program to reallu work as an installed application, it must be willing to accept the information given to it by the desktop. Empire apparently does not do this. But what can you expect from a company who tries to palm off old games as new. >Has anybody seen or heard anything about Empire II? What's the latest version >of Empire I (mine is 2.05C)? > Kenneth Love As I found the original release incredibly boring, I never followed subsequent releases. +-----------------------------------------------------------------------+ | Kitakaze Tatsu Raito Neil Gilmore internet:gilmore@macc.wisc.edu | | Jararvellir, MACC, UW-Madison bitnet: gilmore@wiscmac3 | | Middle Kingdom Madison, Wi | +-----------------------------------------------------------------------+