>HSPの命令を登録して、命令の色を変えたい
リッチエディットではほぼ不可能。他のコントロールの使用を考えた方がいい。
>それをHSPで実行できるようにしたい
hspcmp.dllを使ってコンパイルすればできる。
#include "hspcmp.as"
#ifdef _debug
chdir dir_exe
#endif
#define OBJECTFILE "obj"
sdim rt, 261
dialog "hsp", 16, "HSP Script"
if stat = 0 : end
hsc_ini refstr
hsc_refname getpath(refstr, 8)
hsc_objname OBJECTFILE
hsc_comp 1
if stat : goto *failed
hsc3_getruntime rt, OBJECTFILE
if rt = "" : rt = "hsp3.exe"
cl = "" + rt + " " + OBJECTFILE + " "
hsc3_run cl
end
*failed
hsc3_messize ms : sdim temp, ms
hsc_getmes temp
hsc_ver
dialog "Compile failed.\n\n" + temp, 1, refstr
end
hspcmp.dllは勝手に配布できないので注意。