¼«µ¡¤¬Åö¤¿¤Ã¤¿¤é¶Ì¤Ï¾Ã¤¨¤ÆÆÀÅÀ¤¬²Ã»»¤µ¤ì¤ë¥²¡¼¥à¤òºî¤Ã¤Æ¤¤¤ë¤ó¤Ç¤¹¤¬¡¢
Åö¤¿¤êȽÄ꤬ʬ¤«¤é¤Ê¤¤¤Î¤Ç¶µ¤¨¤Æ²¼¤µ¤¤!!
¢¢¥¹¥¯¥ê¥×¥È¤Ç¤¹¢¢
//³ÈÄ¥¥×¥é¥°¥¤¥ó¤òÆɤ߹þ¤ß #uselib "user32" #func GetWindowLong "GetWindowLongA" int, int #func SetWindowLong "SetWindowLongA" int, int, int #func SetWindowPos "SetWindowPos" int, nullptr, nullptr, nullptr, nullptr, nullptr, int #func GetClassLong "GetClassLongA" int, int #func SetClassLong "SetClassLongA" int, int, int #include "gdi32.as" //¥Þ¥¯¥í #define ctype RGB(%1,%2,%3) (%1 | %2 << 8 | %3 << 16) //¥â¥¸¥å¡¼¥ë³«»Ï #module #define ctype max( %1, %2 ) ( %1 )*( %1 > %2 ) + ( %2 )*( %1 <= %2 ) #define ctype min( %1, %2 ) ( %1 )*( %1 < %2 ) + ( %2 )*( %1 >= %2 ) #const DEFAULT_R 20 #deffunc rboxf int _x1, int _y1, int _x2, int _y2, int _r x1 = min(_x1, _x2) : x2 = max(_x1, _x2) y1 = min(_y1, _y2) : y2 = max(_y1, _y2) box_width = x2 - x1 : box_height = y2 - y1 if ( _r <= 0 ) { r = DEFAULT_R } else { r = _r } r = min( r, min( box_width / 2, box_height / 2 ) ) boxf x1, y1+r, x2, y2-r boxf x1+r, y1, x2-r, y2 repeat 4 x = x1 + ( cnt \ 2 ) * ( box_width - r * 2 + 1) y = y1 + ( cnt / 2 ) * ( box_height - r * 2 + 1 ) circle x, y, x + r * 2, y + r * 2 loop return #deffunc CenterMes str moji sdim word,1024 font "Þ⥴¥·¥Ã¥¯",20,0 msgx=320-(strlen(moji)*5) pos msgx,230 mes moji return //¥â¥¸¥å¡¼¥ë½ªÎ» #global //ÊÑ¿ô¤ÎÀë¸À dim hInput, 1 sdim word,1024 //ÀäÂФËɬÍפÊÌ¿Îá oncmd gosub *ctlcoloredit, $133 onexit *exit //¥Æ¥¹¥È»þ goto *start //²èÌ̺îÀ® screen 0,ginfo(20),ginfo(21),0,0,0 width 640,480,ginfo(20)/2-320,ginfo(21)/2-300 //¥¿¥¤¥È¥ë̾ title "CircleTraining ver1.0" ¡¡ //*******Ãæά*******// *start //ºÇÂç²½¥Ü¥¿¥ó¤È¥¦¥£¥ó¥É¥¦¥µ¥¤¥º²ÄÊÑ͸ú¤Î¥¦¥£¥ó¥É¥¦¤òºîÀ® screen 0,ginfo(20),ginfo(21),0,0,0 GetWindowLong hwnd, -16 SetWindowLong hwnd, -16, stat | $10000 | $40000 width 640,480,ginfo(20)/2-320,ginfo(21)/2-300 //¥¿¥¤¥È¥ë̾ title "CircleTraining ver1.0" //ÊÑ¿ôÀë¸À score = 10 esa_max = 10000 repeat esa_max esar(cnt)=rnd(256) esag(cnt)=rnd(256) esab(cnt)=rnd(256) esax(cnt)=rnd(50000) esay(cnt)=rnd(50000) loop //¥á¥¤¥ó¥ë¡¼¥× *mainloop //ÉÁ²è³«»Ï redraw 0 //ÇØ·Ê color 255,255,255 : boxf //ÊÑ¿ô´ÉÍý if score \ 250 = 0 : size = size + 1 if score >= 999999999 : score = 999999999 if size >= 100 : size = 100 //¼«µ¡ÉÁ²è color 255,0,0 circle ginfo_winx/2-(size+1)+2,(ginfo_winy/2-(size+1))-12,ginfo_winx/2+(size+1)+12,ginfo_winy/2+(size+1)-2,1 color 0,0,0 font "Þ⥴¥·¥Ã¥¯",20,0 moji = ""+score msgx=ginfo_winx/2-(strlen(moji)*5)+5 msgy=ss pos msgx,ginfo_winy/2-20 mes moji if mousex>=ginfo_winx/2 : mx=mx-(1+speed) if mousex<=ginfo_winx/2 : mx=mx+(1+speed) if mousey>=ginfo_winy/2 : my=my-(1+speed) if mousey<=ginfo_winy/2 : my=my+(1+speed) GetClassLong hwnd, -26 SetClassLong hwnd, -26, stat | $8 //¶Ì¤òÉÁ²è repeat esa_max color esar(cnt),esag(cnt),esab(cnt) circle esax(cnt)+mx,esay(cnt)+my,esax(cnt)+mx+5,esay(cnt)+my+5,1 if esax(cnt) >= mx -5 & esay(cnt) <= my - 5 & esax(cnt) >= mx & esay(cnt) <= my : else : score = score + 1 loop //ÉÁ²è½ªÎ» redraw 1 //»þ´ÖÂÔ¤Á await 1 //¥á¥¤¥ó¥ë¡¼¥×¤Ø goto *mainloop *ctlcoloredit if hInput.0 = lparam { SetTextColor wparam, RGB($FF, $FF ,$FF) SetBkColor wparam, RGB(124, 92, 220) return hBrush.0 } return *exit DeleteObject hBrush.0 end