1

我有 Dyalog APL 13.2.20611.0 64 Unicode 会话,并且我有实用程序功能,我想在按下快捷方式时运行它。我该如何配置?

4

2 回答 2

3

在 Dyalog APL 13.2 版中,]usetup 用户命令在 APL 启动时被调用。你可以在那里做任何你想做的事。如果您运行的是 Windows,您可以根据自己的喜好更改 SALT\spice\setup.dyalog 文件。

于 2014-05-23T11:58:35.120 回答
2

Here is how I do it:

(this is all stored in a separate ns within ⎕SE)

∇ lx
 menpath←'⎕se.mb'

     :With (menpath,'.dls')⎕WC'menu'('Caption' '&Develop')('Posn'(⎕SE.mb.help.Posn-1))
             'L3'⎕WC'menuitem'('Caption'('Tool1',⎕AV[9+⎕IO],'Shift+F1'))('Event' 'Select' '⍎MyCleverfunction1')('Accelerator' 112 1)
             'L4'⎕WC'menuitem'('Caption'('Tool2',⎕AV[9+⎕IO],'Shift+F2'))('Event' 'Select' '⍎MoreCleverneww')('Accelerator' 113 1)
 :EndIf

∇

This function should be called in the ⎕SE.Create-Event.

Hope this helps.

于 2014-05-22T19:53:52.153 回答