#modfunc
¡¡Åù¤Î¥æ¡¼¥¶¡¼ÄêµÁÌ¿Îá¤Î°ú¿ô¤Î½é´üÃͤòÀßÄê¤Ç¤¤ëµ¡Ç½¤¬¤Û¤·¤¤¤Ç¤¹¡£
¡¡¸½ºß¼«Ê¬ #define ¤È local »ØÄê¤Î¥æ¡¼¥¶¡¼ÄêµÁ´Ø¿ô¤Ç ½é´üÃͤòÀßÄꤷ¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡£
¡¡¤½¤ì¤Ç¤Ï¡¢¥¹¥¯¥ê¥×¥È¤Î²ÄÆÉÀ¤¬¤«¤Ê¤ê°¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡#deffunc Åù¤Î¥æ¡¼¥¶¡¼ÄêµÁÌ¿Îá¤Ï¡¢¼«Í³¤Ë°ú¿ô¤Î°ÌÃÖ¤òÊѤ¨¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¤¬¡£
¡¡#define ¤Ç¤Ï¡¢¤½¤ì¤ÏÆñ¤·¤¤¤Î¤Ç¡¢Êѹ¹¤¹¤ë¤¿¤Ó¤Ë¡¢µç¶þ¤ÇÌÌÅݤÊÌܤ˰©¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
ìÔÂô¤«¤âÃΤì¤Þ¤»¤ó¤¬¡¢²¼¤ÎÍͤʵ½Ò¤¬½ÐÍè¤ë¤è¤¦¤Ê¤ì¤Ð¡£
¤«¤Ê¤ê¡¢²ÄÆÉÀ¤¬¸þ¾å¤¹¤ë¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡£
¡¡
// ¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï°ìÎã¤Ç¤¹¡£¼Â¹Ô¤¹¤ë¤ÈError¤ËÀ®¤ê¤Þ¤¹ ; ¥Ç¥Õ¥©¥ë¥È¤ÎÊÑ¿ô̾¤ò½é´ü²½ dim defaultvar@test , 5 defaultvar@test = 10,20,30,40,50 #module test #include "user32.as" #deffunc func int hwnd_ , int wid_ , str string_ , int x_ , int y_ , var buff_ #funcprm imposs hwnd_ // [ Impossible ] ¾ÊάÉÔ²Äǽ¤Ë¤¹¤ë ¾Êά¤µ¤ì¤¿¾ì¹ç¡¢°ú¿ô¤Ï¾Êά¤Ç¤¤Þ¤»¤ó ¤Î¥¨¥é¡¼¤¬µ¯¤³¤ë¡£ #funcprm imposs wid_ // [ Impossible ] ¾ÊάÉÔ²Äǽ¤Ë¤¹¤ë ¾Êά¤µ¤ì¤¿¾ì¹ç¡¢°ú¿ô¤Ï¾Êά¤Ç¤¤Þ¤»¤ó ¤Î¥¨¥é¡¼¤¬µ¯¤³¤ë¡£ #funcprm poss string_ = "hspwnd" // [ Possible ] ¾Êά²Äǽ¤Ë¤¹¤ë ʸ»úÎ󷿤ΤФ¢¤¤defaultÃͤò»ØÄꤷ¤Ê¤¤¤Èɬ¤º¥¨¥é¡¼ #funcprm x_ = ginfo_winx // ¤â¤·¾Êά¤µ¤ì¤¿¾ì¹ç ginfo_winx ¤¬°ú¿ô¤ËÅϤµ¤ì¤¿»ö¤ËÀ®¤ë #funcprm y_ = ginfo_winy // ¤â¤·¾Êά¤µ¤ì¤¿¾ì¹ç ginfo_winy ¤¬°ú¿ô¤ËÅϤµ¤ì¤¿»ö¤ËÀ®¤ë #funcprm poss buff_ = defaultvar // [ Possible ] ¾Êά²Äǽ¤Ë¤¹¤ë ÊÑ¿ô·¿¤Î¤Ð¤¢¤¤ defaultÃͤò»ØÄꤷ¤Ê¤¤¤Èɬ¤º¥¨¥é¡¼ // ²¿¤â»ØÄꤷ¤Ê¤¤¾ì¹çdefault¤ËÀ®¤ë¡£x_¤Î¾ì¹ç¤Ï 0 ¤è¤Ã¤Æ¡¢°ÊÁ°¤Îµ½Ò¤â²Äǽ dim m_status , length(buff_) memcpy m_status , buff_ , 4*length(buff_) m_size = x_ , y_ gsel wid_ : title string_ SetParent hwnd_ , hwnd return #global