Posted by Robert G Laurin on June 11, 2007 at 12:39:43:
In Reply to: Re: F1 key to launch a CHM help file posted by Mike Saunders on June 11, 2007 at 12:06:22:
F1 uses the standard Nova help. Go see in Qtility 43 - Nova Maintenance
You want to use SYS. Find what is the key for CMHELPB which is the build program (I personnaly use Shift-F1 but I think the default is something in the F11 range).
In your program, where F1 does nothing, hit the build hot-key (Shift-F1 on my system) and put in your help message and/or shortcut to program to run. CED (and my programs) uses the 4 bytes HELPKEY$ variable. Old solutions need to use either screen position and/or program address. This is tricky because the address may change with each modification & compile.
The actual HELP file used by CED is #HELPLNK. You can monitor how it works by creating some keys with CMHELPB.
BEWARE some of the #HELPLNK keys may contain hex values. That was a poor choice by the designer of the HELP because of the unability of QMAINT to deal with hex keys. If my memory serves me well, the keys for #HELPLNK is program name (8 chars) + HELPKEY$ (4 chars) which could also be screen position (in hex) and optionally program address (also in hex).
I tried once to use the thing called "Default" and lets just say that it gave me more trouble than it was worth. Thank goodness I forgot what it does.