From: Jackson
GJDB wrote:
>> It seems I can only use zero and not zero to force ESC or ENTER.
>
>I don't understand what you are trying to do here... Can you give me an
>example?
keydef PickFileX
EndProcess(0)
EndProcess(1)
EndProcess(10)
end PickFileX
proc mPickDirStartup()
enable(PickFileX)
end mPickDirStartup
proc Main()
string filename[80] = ''
Hook(_PICKFILE_STARTUP_, mPickDirStartup)
filename = PickFile('.txt')
Unhook(mPickDirStartup)
if Length(filename)
warn(filename)
endif
end
I'm using TSE 2.50d
In this example f3 is like ESC, f4 and f5 like ENTER.
To get 1 or 10 I'm trying to return, I think I've to use your
equivalent code.
>
>> Why so many undocumented items?
>
>We talk about Process() and keydefs in the documentation (page 70 of the
macro
>guide), and provide macro source for examples of the doing other things with
>Process() and List().
Veeery sorry if it seems like a complaint, it was just frustration.
I was looking the GetHelp Macro (bravo! to Chris Antos) and in the hlp file
I kept finding "Undocumented" stuff (for example in Hook and DisplayMode)
so I felt frustrated.
_AFTER_GET_KEY_ and _BEFORE_GET_KEY_ are really undocumented Hook events?
My SC.EXE gives "unknown keyword", maybe they're for 2.6 only?
Thank you.
Ciao. Jackson
----------------------------
Andrea "Jackson" Casamurata
Italy
E-mail: jackson@akros.it
----------------------------
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|