in order to create panel and button, HKN can't compile correctly for following issue:
example:
<Command f>
<<AddButtonToPanel TOON1_L LeftPanel %1 %2 %1+%3 %2+%4>
So we have to manually generate the script one by one, but it's not easy , I make a simple c script to do it. in script, it need you to input 3 parameters, the width is button's width, the height is button's height, and the interval is the interval between 2 buttons. you can manually modify the (x,y) when CreatePanel in case you want to re-locate the panel's position.

#include "stdio.h"

void main(){

FILE *p;
int w,h,i;
char str[500];

printf("please input width=\n");
scanf("%d",&w);
printf("input height=\n");
scanf("%d",&h);
printf("input interval value\n");
scanf("%d",&i);

p=fopen("_test.txt","w+");
if(p==NULL){
printf("error to open file\n");
return;
}

/*/<X, Y, WIDTH, HEIGHT, INTERVAL>
// 0 0 %3 %4 %3+%5 0 %3 %4 %3*2+%5*2 0 %3 %4

//0 %4+%5 %3 %4 %3+%5 %4+%5 %3 %4 %3*2+%5*2 %4+%5 %3 %4

//0 %4*2+%5*2 %3 %4 %3+%5 %4*2+%5*2 %3 %4 %3*2+%5*2 %4*2+%5*2 %3 %4

//0 %4*3+%5*3 %3 %4 %3+%5 %4*3+%5*3 %3 %4 %3*2+%5*2 %4*3+%5*3 %3 %4

//0 %4*4+%5*4 %3 %4 %3+%5 %4*4+%5*4 %3 %4 %3*2+%4*2 %4*4+%5*4 %3 %4
*/
sprintf(str,"<CreatePanel LeftPanel %d %d %d %d>\n", 500,500,w*3+i*2,h*5+i*4);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON1_L LeftPanel 0 0 %d %d>\n",w,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON1_M LeftPanel %d %d %d %d >\n", w+i, 0, w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON1_R LeftPanel %d %d %d %d >\n" , w*2+i*2, 0 ,w, h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON2_L LeftPanel %d %d %d %d >\n" , 0, h+i, w, h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON2_M LeftPanel %d %d %d %d >\n" , w+i, h+i ,w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON2_R LeftPanel %d %d %d %d >\n" , w*2+i*2 ,h+i, w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON3_L LeftPanel %d %d %d %d >\n" , 0, h*2+i*2 ,w, h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON3_M LeftPanel %d %d %d %d >\n" , w+i ,h*2+i*2, w, h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON3_R LeftPanel %d %d %d %d >\n" , w*2+i*2 ,h*2+i*2, w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON4_L LeftPanel %d %d %d %d >\n" , 0 ,h*3+i*3 ,w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON4_M LeftPanel %d %d %d %d >\n" , w+i ,h*3+i*3 ,w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON4_R LeftPanel %d %d %d %d >\n" , w*2+i*2 ,h*3+i*3, w, h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON5_L LeftPanel %d %d %d %d >\n" , 0, h*4+i*4 ,w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON5_M LeftPanel %d %d %d %d >\n" , w+i, h*4+i*4, w ,h);
fputs(str,p);
sprintf(str,"<AddButtonToPanel TOON5_R LeftPanel %d %d %d %d >\n" , w*2+i*2, h*4+i*4 ,w ,h);
fputs(str,p);

printf(str);
fclose (p);
return;
}