HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2012
0922
CONµ¼»÷¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤òºî¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¦¡¦¡¦6̤²ò·è


CON

¥ê¥ó¥¯

2012/9/22(Sat) 15:23:43|NO.49485

¥Ç¥¶¥¤¥ó¤ò¹©Éפ·¤¿¤¯¤Æµ¼»÷¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤òºî¤ê¤¿¤¤¤Î¤Ç¤¹¤¬
¼«Ê¬¤Î¥¹¥¯¥ê¥×¥È¤Ë̵Â̤ò´¶¤¸¤Æ¤·¤Þ¤¦¤Î¤Ç³§¤µ¤ó¤Ë²þÁ±¤·¤Æ¤¤¤¿¤À¤­¤¿¤¤¤Ç¤¹¡£


x=6 //¥¢¥¤¥³¥ó¤Î²£¤Î¿ô ix=96 //¥¢¥¤¥³¥ó¤Î²£Éý scx=15 //¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤ÎÉý winx=640-scx //Ž½Ž¸ŽÛŽ°ŽÙŽÊŽÞŽ°¤ò½ü¤¯¥¦¥£¥ó¥É¥¦¤Î²£Éý winy=480 //¥¦¥£¥ó¥É¥¦¤Î½ÄÉý spax=(winx-6*ix)/(x+1) //¥¢¥¤¥³¥ó¤Î²£´Ö³Ö spay=15 //¥¢¥¤¥³¥ó¤Î½Ä´Ö³Ö pcs=300 //¥¢¥¤¥³¥ó¤Î¿ô num=pcs/x //½ÄÎó¤Î¿ô //¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î¢¬¢­¥Ü¥¿¥ó¤Î½ÄÉý scbut=(winy-2*scx)*((winy-2*scx)*100)/(num*(ix+spay))/100 //¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î¢¬¢­¥Ü¥¿¥ó¤ÎyºÂɸ¡Ê¢¬¥Ü¥¿¥óÈ´¤­¡Ë scpos=0 //¥¢¥¤¥³¥ó¤À¤±¤ò¤º¤é¡¼¤Ã¤Èʤ٤ë¥Ð¥Ã¥Õ¥¡ buffer 1,640,(ix+spay)*pcs repeat pcs/x //¤º¤é¡¼¤Ã¤ÈÉÁ²è pos 0,ix+spay gcopy 1,0,0,winx,(ix+spay)*lin repeat x i=cnt+1 color:boxf winx-(spax+ix)*i,spay,winx-(spax+ix)*i+ix,spay+ix pos winx-(spax+ix)*i,spay+3 color 255,255,255:mes 6*lin+i loop lin+=1 await 0 loop //¥á¥¤¥ó¥¦¥£¥ó¥É¥¦ screen 0,640,480 onclick gosub *onc color:boxf winx,0,winx+scx,winy gosub *draw color 255,255,255 gosub *onup:gosub *ondown:gosub *onbutton //¥Û¥¤¡¼¥ë¤ÎÆ°¤­¤ò´Æ»ë¤¹¤ë¥á¥¤¥ó¥ë¡¼¥×(¡©) repeat mw=mousew if mw!0{ scpos+=mw/-20 //¤³¤³¤ÏŬÅö¤Ë¤·¤¿¤Î¤ÇÆ°¤¯¤«¤É¤¦¤« gosub *draw title "wheel "+scpos } wait 1 loop stop *onc mx=mousex:my=mousey if mx>(640-scx){ //¥Þ¥¦¥¹¤¬¥¹¥¯¥í¡¼¥ë¥Ð¡¼Æâ¤ËÆþ¤Ã¤Æ¤¤¤¿¤é //¥Þ¥¦¥¹¤¬¢¬¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤­ if my<scx{ color 0,255,255:gosub *onup repeat getkey key,1 if key=0:break scpos-=2 gosub *draw title "¢¬ "+scpos wait 1 loop color 255,255,255:gosub *onup } //¥Þ¥¦¥¹¤¬¢­¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤­ if my>(winy-scx){ color 0,255,255:gosub *ondown repeat getkey key,1 if key=0:break scpos+=2 gosub *draw title "¢­ "+scpos wait 1 loop color 255,255,255:gosub *ondown } //¥Þ¥¦¥¹¤¬¢¬¢­¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤­ if my>(scx+scpos) and my<(scx+scpos+scbut){ my=my-scx-scpos repeat getkey key,1 if key=0:break scpos=mousey-my-scx gosub *draw title "¢¬¢­ "+scpos wait 1 loop color 255,255,255:gosub *onbutton } }else{ //¥Þ¥¦¥¹¤¬¥¢¥¤¥³¥ó¤ò²¡¤·¤¿¤È¤­ if mx\(ix+spax)-spax>0 and (my+y)\(ix+spay)-spay>0{ //¥Þ¥¦¥¹¤ÎºÂɸ¤Èscpos¤«¤é¥¢¥¤¥³¥ó¤ÎÈÖ¹æ¤ò¼èÆÀ title "hit "+(pcs-((my+y)/(ix+spay)*x)-mx/(ix+spax)) }else:title "out" } return *draw //²èÌ̤ÎÉÁ²è¤È¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î¢¬¢­¥Ü¥¿¥ó¤ÎÉÁ²è //---¤³¤³¤Çscpos¤ÎĶ¤¨¤¹¤®¤òËɤ° if scpos<0:scpos=0 if scpos>(winy-scx*2-scbut):scpos=(winy-scx*2-scbut) y=scpos*(num*(ix+spay)-480+scx)/(winy-2*scx-scbut) redraw 0 color:boxf winx,scx,winx+scx,winy-scx color 0,255,255:gosub *onbutton pos 0,0:gcopy 1,0,y,640-scx,480+y redraw 1 return *onup //¢¬¥Ü¥¿¥ó¤ÎºÆÉÁ²è boxf winx+1,1,winx+scx-2,scx-2 return *ondown //¢­¥Ü¥¿¥ó¤ÎºÆÉÁ²è boxf winx+1,winy-scx+1,winx+scx-2,winy-2 return *onbutton //¢¬¢­¥Ü¥¿¥ó¤ÎºÆÉÁ²è boxf winx+1,scx+scpos+1,winx+scx-2,scx+scpos+scbut-2 return

¤¿¤á¤·¤ËÁȤó¤À¥¹¥¯¥ê¥×¥È¤Ç¤¹

Ê£¿ô¤Î¥Ü¥¿¥ó¤ò°·¤¦¤Î¤Ëifʸ¤Ç¸ÄÊ̤˽èÍý¤µ¤·¤Æ¤¤¤ë¤Î¤Ç
¤½¤Îʬ̵Â̤¬Â¿¤¤µ¤¤¬¤·¤Þ¤¹¡£

¤Þ¤À½é¿´¼Ô¤Ê¤Î¤Ç¤É¤Î¤è¤¦¤Ë²þÁ±¤¹¤ì¤ÐÎɤ¤¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£

ʬ¤«¤ê¤Ë¤¯¤¤¥¹¥¯¥ê¥×¥È¤À¤È»×¤¤¤Þ¤¹¤¬¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


¤¢¤ê

¥ê¥ó¥¯

2012/9/22(Sat) 15:56:49|NO.49486

¤¶¤Ã¤È¸«¤¿´¶¤¸¤Ç¤Ï̵Íý¤ËºÇŬ²½¤µ¤»¤Ê¤¤Êý¤¬
¹½Â¤¤¬Íý²ò¤·¤ä¤¹¤¯±þÍѤµ¤»¤ä¤¹¤¤Íͤ˻ä¤Ï´¶¤¸¤Þ¤¹¡£

¼ÂºÝ¤Ë¥×¥í¥°¥é¥à¤ËÁȤ߹þ¤à»þ¤Î»ö¤ò¹Í¤¨¤Æ
ÊÑ¿ô̾¤òʬ¤«¤ê¤ä¤¹¤¯¤·¤¿¤ê¥â¥¸¥å¡¼¥ë²½¤¹¤ëÄøÅ٤Ǥâ
½½Ê¬»È¤¨¤ë¤â¤Î¤À¤È»×¤¤¤Þ¤¹¡£



¤Æ¤ó

¥ê¥ó¥¯

2012/9/22(Sat) 16:04:05|NO.49487

¤è¤¯ºî¤ê¤³¤Þ¤ì¤Æ¤¤¤Æ¤Ó¤Ã¤¯¤ê¡£
µ¼»÷¥³¥ó¥È¥í¡¼¥ë¤ò¼«ºî¤·¤è¤¦¤È¤¹¤ë¤È¡¢ÂçÄñÁÛÄê³°¤ÎÁàºî¤ËÂбþ¤Ç¤­¤Ê¤¯¤Æ¥Ð¥°¤òµ¯¤³¤¹¤ó¤Ç¤¹¤±¤É¡¢¤½¤ó¤Ê¤³¤È¤â¤Ê¤¯¡£

¤µ¤Æ¡¢

¥Þ¥¦¥¹¤¬²¡¤µ¤ì¤Æ¤«¤éÎ¥¤ì¤ë¤Þ¤Ç¤Î´Ö¡¢¾ï¤Ë¥Þ¥¦¥¹¤Î¥Ü¥¿¥ó¤Î¾õÂÖ¤ò´Æ»ë¤·¤Æ¤¤¤ë¤¿¤á¡¢
¤½¤Î¾¤Î½èÍý¤¬ÃæÃǤ·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

HSP¤Ç¤Ï¥Þ¥¦¥¹¤¬²¡¤µ¤ì¤¿»þ¤Î½èÍý¤òonclickÌ¿Îá¤Ç»ØÄê¤Ç¤­¤Þ¤¹¤Í¡£
¤³¤ì¤Ï¡¢Windows¦¤«¤é¡Ö¥Þ¥¦¥¹¤¬²¡¤µ¤ì¤¿¤¾¡ª¡×¤Ã¤Æ¤¤¤¦¤ªÃΤ餻¡Ê¥¦¥£¥ó¥É¥¦¥á¥Ã¥»¡¼¥¸¡Ë¤¬ÆϤ¤¤Æ¡¢
¤½¤ì¤ò¼õ¤±¼è¤Ã¤Æ½èÍý¤ò¤¹¤ë¤È¤¤¤¦¤â¤Î¤Ê¤ó¤Ç¤¹¤¬¡¢Ê̤˥¯¥ê¥Ã¥¯¤Ë¸Â¤é¤ºWindows¤«¤é¤ÏÂçÎ̤˥á¥Ã¥»¡¼¥¸¤¬ÆϤ­¤Þ¤¹¡£

¤ª¤½¤é¤¯º£²ó»È¤¨¤½¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤Ï

WM_LBUTTONDOWN¡Ä¥Þ¥¦¥¹¤Îº¸¥Ü¥¿¥ó¤¬²¼¤¬¤Ã¤¿
WM_LBUTTONUP¡Ä¥Þ¥¦¥¹¤Îº¸¥Ü¥¿¥ó¤¬¾å¤Ã¤¿
WM_MOUSEWHEEL¡Ä¥Þ¥¦¥¹¤Î¥Û¥¤¡¼¥ë¤¬²óž¤·¤¿

¤Î3¤Ä¤À¤È»×¤ï¤ì¤Þ¤¹¡£

¤³¤Î¥á¥Ã¥»¡¼¥¸¤¬Windows¤«¤éÆϤ¤¤¿»þ¤À¤±¡¢½èÍý¤ò¤¹¤ë¤è¤¦¤Ë²þÎɤ¹¤ë¤ÈÁ᤯¤Ê¤ë¤È»×¤ï¤ì¤Þ¤¹¡£
¾Ü¤·¤¯¤Ï HSP¥Ø¥ë¥×¤«¤é¡Öoncmd¡×¤È¤¤¤¦Ì¿Îá¤òÄ´¤Ù¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

¤Ê¤ª¡¢¥á¥Ã¥»¡¼¥¸¤Ï¼ÂºÝ¤Ë¤Ï¾åµ­¤Î̾Á°¤Ç¤Ï¤Ê¤¯¡¢¿ô»ú¤ÇÆϤ­¤Þ¤¹¡£³Æ¥á¥Ã¥»¡¼¥¸¤¬¤É¤Î¤è¤¦¤ÊÃͤÇÆϤ¯¤Î¤«¤Ï
¡ÖWM_LBUTTONDOWN msdn¡×¤Ê¤É¤Ç¸¡º÷¤¹¤ë¤È¤¹¤°¤Ë¸«¤Ä¤«¤ë¤È»×¤ï¤ì¤Þ¤¹¡£






¾¯¤·Æñ¤·¤¤ÏäǤ¹¤¬¡¢¥³¥ó¥È¥í¡¼¥ë¤òºî¤ë¤È¤­¤Ï
¡¦³Æ¼ï¥¤¥Ù¥ó¥È¡Ê¥Þ¥¦¥¹¤Î¥Ü¥¿¥ó¤¬²¼¤¬¤Ã¤¿¡¦¾å¤¬¤Ã¤¿¡¢¥É¥é¥Ã¥°¤µ¤ì¤¿¡¢etc...¡Ë¤Î½èÍý
¤¬ºÇÂç¤Î¥Ý¥¤¥ó¥È¤Ë¤Ê¤Ã¤Æ¤­¤Þ¤¹¡£

HSP¤Ç¤Ï¤Ê¤¯¡¢Â¾¸À¸ì¤Ç¤Î³«È¯¤Î¾ì¹ç¤Ï¡Ö¥¯¥ê¥Ã¥¯¤µ¤ì¤¿¤é¤³¤Î½èÍý¤ò¸Æ¤Ó½Ð¤·¤Æ¤¯¤ì¡ª¡×¤È
ͽ¤á¡¢³Æ¼ï¥¤¥Ù¥ó¥È¤¬È¯À¸¤·¤¿ºÝ¤Î½èÍý¤òÅÐÏ¿¤·¤Æ¤ª¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡Ê¥³¡¼¥ë¥Ð¥Ã¥¯¤È¤¤¤¤¤Þ¤¹¡Ë

¤·¤«¤·»ÄÇ°¤Ê¤¬¤é¡¢HSP¤Ç¤Ï¸À¸ì»ÅÍ;塢ÉôʬŪ¤Ë¤·¤«¤³¤Î¥³¡¼¥ë¥Ð¥Ã¥¯½èÍý¤ò¼ÂÁõ¤Ç¤­¤Þ¤»¤ó
(onkey, oncmd, onclick¤ä¡¢buttonÌ¿Îá¤Î¥¸¥ã¥ó¥×Àè¥é¥Ù¥ë»ØÄê¤Ê¤É)
´ðËÜŪ¤Ë¤Ï¡¢¥¦¥£¥ó¥É¥¦¤Î¤ß¤¬¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±¼è¤ì¤Æ¡¢¤½¤Î¾¤Î¥³¥ó¥È¥í¡¼¥ë¤Ï¼õ¤±¼è¤ì¤Þ¤»¤ó¡£

¤¿¤È¤¨¤Ð¡¢¡Ö¥Æ¥­¥¹¥È¥Ü¥Ã¥¯¥¹¤Î¥Æ¥­¥¹¥È¤ÎÆâÍƤ¬ÊѲ½¤·¤¿¤È¤­¤Ë½èÍý¤ò¤¹¤ë¡×¤Ê¤É¤È¤¤¤Ã¤¿½èÍý¤Ï
Ä̾̵¸Â¥ë¡¼¥×¤Ç´Æ»ë¤ò¤¹¤ë¤·¤«¼ê¤¬¤¢¤ê¤Þ¤»¤ó¡£

¤Ç¤¹¤Î¤Ç¡¢HSP¤ÇÆȼ«¤Î¥³¥ó¥È¥í¡¼¥ë¤òºî¤í¤¦¤È¤·¤¿¾ì¹ç
º£²ó¤Î¤è¤¦¤Ë¥¦¥£¥ó¥É¥¦¤ËľÀÜÉÁ¤¯ÊýË¡°Ê³°¤Ë¤â
­¡´û¸¤Î¥³¥ó¥È¥í¡¼¥ë¤ò¥ª¡¼¥Ê¡¼¥É¥í¡¼¤¹¤ë¤³¤È¤ÇÂн褹¤ë
­¢¤â¤·¡¢¥¼¥í¤«¤é¤Ä¤¯¤ë¤Ê¤ébgscrÌ¿Îá¤Ç±ï̵¤·¥¦¥£¥ó¥É¥¦¤òºî¤ê¡¢»Ò¥¦¥£¥ó¥É¥¦²½¤·¤Æ¥³¥ó¥È¥í¡¼¥ë¤È¤·¤Æ»ÈÍѤ¹¤ë¡£

¤Ê¤É¤ÎÊýË¡¤¬¹Í¤¨¤é¤ì¤Þ¤¹¡£

­¡¤Î¾ì¹ç¤Ï¡¢ËÜÍèWindows¦¤ËǤ¤»¤Æ¤¤¤ë¡¢¥³¥ó¥È¥í¡¼¥ë¤ÎÉÁ²è¤ò¼«Ê¬¤Ç¹Ô¤¦¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£
¤³¤ÎÊýË¡¤Î¾ì¹ç¡¢¥Ç¥¶¥¤¥ó¤ÏÊѹ¹¤Ç¤­¤Þ¤¹¤¬¡¢µ¡Ç½¤ÏÄɲäǤ­¤Þ¤»¤ó¡£
º£²ó¤ÎÎã¤Ç¤¹¤È¡¢¤³¤ì¤À¤±¤Ç¤âÍ×·ï¤òËþ¤¿¤»¤½¤¦¤Êµ¤¤Ï¤·¤Þ¤¹¡£

­¢¤ÎÊýË¡¤Ï¡¢HSP¤Î¡Ö¥¦¥£¥ó¥É¥¦¤Î¤ß¤¬¥¦¥£¥ó¥É¥¦¥á¥Ã¥»¡¼¥¸¤ò¼õ¤±¼è¤ì¤ë¡×¤È¤¤¤¦¸À¸ìÀ©Ìó¤ò¤à¤ê¤ä¤êÆÍÇˤ·¤¿¤â¤Î¤Ç¤¹¡£
¤Þ¤À¾Ü¤·¤¯¤Ê¤¤¤¦¤Á¤ÏÆäËÃΤé¤Ê¤¯¤Æ¤â¤¤¤¤¤Ç¤·¤ç¤¦¡£



CON

¥ê¥ó¥¯

2012/9/22(Sat) 16:55:03|NO.49488

>>¤¢¤ê¤µ¤ó
¼«Ê¬¤Î±Ññ¸ìÎϤ¬Ìµ¤µ²á¤®¤Æ
ÊÑ¿ô¤ËŬ¤·¤Æ¤ëñ¸ì¤¬½Ð¤Æ¤³¤Ê¤¯¤ÆŬÅö¤Ë¤Ä¤±¤Á¤ã¤¤¤Þ¤·¤¿

¤¿¤·¤«¤Ë¤³¤Î¤Þ¤Þ¤¸¤ã±þÍѤ¬¤·¤Ë¤¯¤¤¤Ç¤¹¤ÍŽ¥Ž¥Ž¥
¤¿¤á¤·¤ËÊÌ¤Î¥×¥í¥°¥é¥à¤ËÁȤ߹þ¤ó¤Ç¤ß¤Þ¤·¤¿¤¬ÂçÊѤǤ·¤¿¡¨

¥â¥¸¥å¡¼¥ë¤Ë¤Ä¤¤¤Æ¤ÏÊÙ¶¯ÉÔ­¤Ç
¼«Ê¬¤Çºî¤Ã¤¿¤³¤È¤Ï̵¤¤¤Ç¤¹¤¬°ìÅÙÄ©À路¤Æ¤ß¤Þ¤¹

>>¤Æ¤ó¤µ¤ó
¤¤¤í¤¤¤í¶µ¤¨¤Æ¤¤¤¿¤À¤­¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

¥ë¡¼¥×¤Ç´Æ»ë¤¹¤ëɬÍפÎ̵¤¤onclick¤äoncmdÌ¿Îá¤ÏÊØÍø¤À¤Ê¤È»×¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬
¤½¤ó¤ÊÊØÍø¤Ê¥¦¥£¥ó¥É¥¦¥á¥Ã¥»¡¼¥¸¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤¿¤ó¤Ç¤¹¤Í

Windows¤Ç¥Ç¥¹¥¯¥È¥Ã¥×³«È¯¤ò¤¹¤ë¾ì¹ç¤ÏÃΤäƤª¤¤¤¿¤Û¤¦¤¬¤è¤µ¤½¤¦¤Ç¤¹¤Í

>­¡¤Î¾ì¹ç¤Ï¡¢ËÜÍèWindows¦¤ËǤ¤»¤Æ¤¤¤ë¡¢¥³¥ó¥È¥í¡¼¥ë¤ÎÉÁ²è¤ò¼«Ê¬¤Ç¹Ô¤¦¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£
ÉÁ²è¤À¤±¼«Ê¬¤Ç¹Ô¤¦¤Ã¤Æ¤³¤È¤Ï¡¢­¡¤ÎÊýË¡¤À¤È¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤ÎÉý¤¬
¸Ä¿Í¤ÎÀßÄê¤Ç¤½¤ì¤¾¤ì°ã¤Ã¤Æ¤¤¤¿¾ì¹ç¥Ç¥¶¥¤¥ó¤òÅý°ì¤·¤Ë¤¯¤«¤Ã¤¿¤ê¤·¤Þ¤¹¤«¡©

µ¤¤Ë¤Ê¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢¥¦¥§¥Ö¥Ö¥é¥¦¥¶¤ÎChrome¤Î¤Ê¤É¥¦¥£¥ó¥É¥¦¤ÏÆȼ«¤Î¥Ç¥¶¥¤¥ó¤Ê¤Î¤Ë
ËÜʪ¤Î¥¦¥£¥ó¥É¥¦¤È¤Þ¤Ã¤¿¤¯Æ±¤¸ÍͤÊÆ°¤­¤ò¤·¤Þ¤¹¡£

¤³¤ì¤â¤½¤ÎÊýË¡¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

­¢¤ÎÊýË¡¤ÏÏȤÎ̵¤¤¥¦¥£¥ó¥É¥¦¤ò¸ÄÊ̤˾å¤ËÈ碌¤ë¤Ã¤Æ´¶¤¸¤Ç¤·¤ç¤¦¤«
¤Ã¤Æ¤³¤È¤Ï°ÜÆ°¤¹¤ë¤¿¤Ó¤Ë°ì½ï¤Ë°ÜÆ°¤Ã¤Æ´¶¤¸¤Ç¤·¤ç¤¦¤«

Íý²òÎϤ¬Ìµ¤¯¤Æ¤¹¤ß¤Þ¤»¤ó¡¨



¤Æ¤ó

¥ê¥ó¥¯

2012/9/22(Sat) 18:05:23|NO.49489

¤´¤á¤ó¤Ê¤µ¤¤orz
¥ª¡¼¥Ê¡¼¥É¥í¡¼¤Ï¤É¤¦¤ä¤é¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Ë¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹¡£
¥Ü¥¿¥ó¤È¤«¤Ê¤é¤¢¤ë¤ó¤Ç¤¹¤±¤É¤Í¡£
>µ¤¤Ë¤Ê¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢¥¦¥§¥Ö¥Ö¥é¥¦¥¶¤ÎChrome¤Î¤Ê¤É¥¦¥£¥ó¥É¥¦¤ÏÆȼ«¤Î¥Ç¥¶¥¤¥ó¤Ê¤Î¤Ë
>ËÜʪ¤Î¥¦¥£¥ó¥É¥¦¤È¤Þ¤Ã¤¿¤¯Æ±¤¸ÍͤÊÆ°¤­¤ò¤·¤Þ¤¹¡£

>¤³¤ì¤â¤½¤ÎÊýË¡¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

¤ª¤½¤é¤¯¡£
Æȼ«¤Î¥¯¥é¥¹¤òºî¤Ã¤Æ¤¤¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È»×¤ï¤ì¤Þ¤¹¡£

>­¢¤ÎÊýË¡¤ÏÏȤÎ̵¤¤¥¦¥£¥ó¥É¥¦¤ò¸ÄÊ̤˾å¤ËÈ碌¤ë¤Ã¤Æ´¶¤¸¤Ç¤·¤ç¤¦¤«
¤½¤Î¤È¤ª¤ê¤Ç¤¹¡£¤¿¤À¡¢¤«¤Ö¤»¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢»Ò¥¦¥£¥ó¥É¥¦²½¤·¤Þ¤¹¡£
Íפϡ¢¥Ü¥¿¥ó¤È¤«¤½¤Î¾¤Î¥³¥ó¥È¥í¡¼¥ëƱÍÍ¡¢±ï̵¤·¥¦¥£¥ó¥É¥¦¤ò±ïÍ­¤ê¥¦¥£¥ó¥É¥¦¤ÎÃæ¤Ë¤·¤Þ¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¡£
>¤Ã¤Æ¤³¤È¤Ï°ÜÆ°¤¹¤ë¤¿¤Ó¤Ë°ì½ï¤Ë°ÜÆ°¤Ã¤Æ´¶¤¸¤Ç¤·¤ç¤¦¤«
¥¦¥£¥ó¥É¥¦¤ÎÃæ¤Ë¤·¤Þ¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¡¢¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤»¤Ð¤Á¤ã¤ó¤È¤Ä¤¤¤Æ¤­¤Æ¤¯¤ì¤Þ¤¹¤è¡£
¤³¤ÎÊýË¡¤À¤È¡¢ËÜÍè¡¢onclick¸å¤Ë¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤ò¥¯¥ê¥Ã¥¯¤·¤¿¤Î¤«¡¢¤½¤ì°Ê³°¤Ê¤Î¤«È½Äꤷ¤Æ¤¤¤¿ºî¶È¤¬ÉÔÍפˤʤê¤Þ¤¹¡£



CON

¥ê¥ó¥¯

2012/9/23(Sun) 01:15:23|NO.49495

>>¤Æ¤ó¤µ¤ó
>¤´¤á¤ó¤Ê¤µ¤¤orz
>¥ª¡¼¥Ê¡¼¥É¥í¡¼¤Ï¤É¤¦¤ä¤é¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Ë¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹¡£
¥ª¥Ö¥¸¥§¥¯¥È¤Ê¤É¤òÇÛÃÖ¤·¤¿²èÌ̤ò¥¹¥¯¥í¡¼¥ë¤¹¤ëͽÄê¤Ç¤Ï¤Ê¤¤¤Î¤Ç
ɸ½à¤Î¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤¬¥Ù¡¼¥¹¤Ç¤Ê¤¯¤Æ¤âÂç¾æÉפǤ¹¡°¡°

>Íפϡ¢¥Ü¥¿¥ó¤È¤«¤½¤Î¾¤Î¥³¥ó¥È¥í¡¼¥ëƱÍÍ¡¢±ï̵¤·¥¦¥£¥ó¥É¥¦¤ò±ïÍ­¤ê¥¦¥£¥ó¥É¥¦¤ÎÃæ¤Ë¤·¤Þ¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¡£
¤½¤ó¤Ê¤³¤È¤¬½ÐÍè¤ë¤Î¤Ç¤¹¤Í
¼Â¸½¤¹¤ë¤Ë¤Ï¤É¤Î¤è¤¦¤Ê¥½¡¼¥¹¤Ë¤Ê¤ë¤Î¤Ç¤·¤ç¤¦¤«¡£

¤Æ¤ó¤µ¤ó¤Ë¶µ¤¨¤Æ夤¤¿WM_MOUSEWHEEL¤Ç¾ï¤Ë¥Û¥¤¡¼¥ë¤ò´Æ»ë¤¹¤ëɬÍפ¬¤Ê¤¯¤Ê¤ê¤Þ¤·¤¿
WM_LBUTTONUP¤â»È¤¨¤½¤¦¤À¤Ã¤¿¤Î¤Ç¤¹¤¬
¥¦¥£¥ó¥É¥¦³°¤Ç¥Þ¥¦¥¹¤¬Î¥¤ì¤¿¾ì¹çÂнè¤Ç¤­¤Ê¤«¤Ã¤¿¤Î¤Ç¡¢¤½¤Î¤Þ¤Þ¤Ë¤·¤Þ¤·¤¿

¤¢¤È¥é¥Ù¥ë·¿ÇÛÎóÊÑ¿ô¤Ê¤É¤ò»È¤¤¥½¡¼¥¹¤ò¾¯¤·Ã»½Ì¤Ç¤­¤Þ¤·¤¿
¡Ê¸úΨ¤ÎÎɤµ¤Ïʬ¤«¤ê¤Þ¤»¤ó¤¬¡¦¡¦¡¦


scSize=15 //¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤ÎÉý Viewx=640-scSize //ɽ¼¨¤¹¤ë²£Éý Viewy=480 //ɽ¼¨¤¹¤ë½ÄÉý iconSide=10 //¥¢¥¤¥³¥ó¤Î²£¤Î¿ô iconSize=48 //¥¢¥¤¥³¥ó¤ÎÂ礭¤µ iconNum=300 //¥¢¥¤¥³¥ó¤Î¿ô(iconSide¤ÎÇÜ¿ô¸ÂÄê) Row=iconNum/iconSide //Îó¤Î¿ô Spacey=15 //¥¢¥¤¥³¥ó¤Î½Ä´Ö³Ö Spacex=(Viewx-iconSide*iconSize)/(iconSide+1) //¥¢¥¤¥³¥ó¤Î²£´Ö³Ö //¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î¢¬¢­¥Ü¥¿¥ó¤Î½ÄÉý scTabSize=(Viewy-2*scSize)*((Viewy-2*scSize)*100)/(Row*(iconSize+Spacey))/100 //¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î¢¬¢­¥Ü¥¿¥ó¤Î°ÌÃÖ scPos=120 //¥Û¥¤¡¼¥ë¤ÎÁý¸ºÎÌ wheel_Plus=5 ;ÇÛÎó¥é¥Ù¥ë¤Î³ä¤êÅö¤Æ ldim redraw_, 3 redraw_(0)=*onup : redraw_(1)=*ondown : redraw_(2)=*onbutton //¥¢¥¤¥³¥ó¤À¤±¤ò¤º¤é¡¼¤Ã¤Èʤ٤ë¥Ð¥Ã¥Õ¥¡ buffer 1,Viewx,(iconSize+Spacey)*iconNum repeat iconNum/iconSide //¤º¤é¡¼¤Ã¤ÈÉÁ²è pos 0,iconSize+Spacey gcopy 1,0,0,Viewx,(iconSize+Spacey)*lin repeat iconSide i=cnt+1 color:boxf Viewx-(Spacex+iconSize)*i,Spacey,Viewx-(Spacex+iconSize)*i+iconSize,Spacey+iconSize pos Viewx-(Spacex+iconSize)*i,Spacey+3 color 255,255,255:mes iconSide*lin+i loop lin+=1 await 0 loop //¥á¥¤¥ó¥¦¥£¥ó¥É¥¦ screen 0,640,480 color:boxf dim on_Color,3 //¢¬¢­¥Ü¥¿¥ó¤Î¿§ on_Color = 255,255,255 gosub *draw:gosub *onup:gosub *ondown:gosub *onbutton oncmd gosub *onc, 0x0201 oncmd gosub *wheel, 0x020A stop *onc xPos = lParam & 0xFFFF // ¥«¡¼¥½¥ëxºÂɸ yPos = (lParam >> 16) & 0xFFFF // ¥«¡¼¥½¥ëyºÂɸ if xPos>Viewx{ //¥Þ¥¦¥¹¤¬¥¹¥¯¥í¡¼¥ë¥Ð¡¼Æâ¤ËÆþ¤Ã¤Æ¤¤¤¿¤é mode=2 //¥Þ¥¦¥¹¤¬¢¬¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤­ if yPos<scSize:scplus=-2:mode=0 //¥Þ¥¦¥¹¤¬¢­¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤­ if yPos>(Viewy-scSize):scplus=2:mode=1 //¥Þ¥¦¥¹¤¬¢¬¢­¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤­ if yPos>(scSize+scPos) and yPos<(scSize+scPos+scTabSize):Clicky=yPos-scSize-scPos:on_Color = 0,255,255 gosub *click_loop on_Color = 255,255,255 }else{ //¥Þ¥¦¥¹¤¬¥¢¥¤¥³¥ó¤ò²¡¤·¤¿¤È¤­ if xPos\(iconSize+Spacex)-Spacex>0 and (yPos+drawy)\(iconSize+Spacey)-Spacey>0{ //¥Þ¥¦¥¹¤Èɽ¼¨¤·¤Æ¤¤¤ë²èÌ̤κÂɸ¤«¤é¥¢¥¤¥³¥ó¤ÎÈÖ¹æ¤ò¼èÆÀ title "hit "+(iconNum-((yPos+drawy)/(iconSize+Spacey)*iconSide)-xPos/(iconSize+Spacex)) }else:title "out" } return *click_loop color 0,255,255:gosub redraw_(mode) repeat getkey key,1:if key=0:break if mode==2{scPos=mousey-Clicky-scSize }else:scPos+=scplus gosub *draw:title "mode="+mode+"¡¡scPos="+scPos wait 1 loop color 255,255,255:gosub redraw_(mode) return *draw //²èÌ̤ÎÉÁ²è¤È¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Î¢¬¢­¥Ü¥¿¥ó¤ÎÉÁ²è //---¤³¤³¤ÇscPos¤ÎĶ¤¨¤¹¤®¤òËɤ° if scPos<0:scPos=0 if scPos>(Viewy-scSize*2-scTabSize):scPos=(Viewy-scSize*2-scTabSize) //ɽ¼¨¤¹¤ë¥Ð¥Ã¥Õ¥¡¤ÎyºÂɸ drawy=scPos*(Row*(iconSize+Spacey)-Viewy+scSize)/(Viewy-2*scSize-scTabSize) redraw 0 color:boxf Viewx,scSize,Viewx+scSize,Viewy-scSize color on_Color.0,on_Color.1,on_Color.2:gosub *onbutton pos 0,0:gcopy 1,0,drawy,Viewx,Viewy+drawy redraw 1 return *onup //¢¬¥Ü¥¿¥ó¤ÎºÆÉÁ²è boxf Viewx+1,1,Viewx+scSize-2,scSize-2 return *ondown //¢­¥Ü¥¿¥ó¤ÎºÆÉÁ²è boxf Viewx+1,Viewy-scSize+1,Viewx+scSize-2,Viewy-2 return *onbutton //¢¬¢­¥Ü¥¿¥ó¤ÎºÆÉÁ²è boxf Viewx+1,scSize+scPos+1,Viewx+scSize-2,scSize+scPos+scTabSize-2 return *wheel //¥Û¥¤¡¼¥ë¤¬²óž¤·¤¿¤È¤­ scPos+=wParam/(-7864320)*wheel_Plus gosub *draw return

¤½¤ì¤ÈÊÑ¿ô̾¤òʬ¤«¤ê¤ä¤¹¤¤Ì¾Á°¤Ë½ñ¤­´¹¤¨¤Þ¤·¤¿
¤³¤¦¤¤¤¦¤È¤­¤Ë¡Öʸ»ú¤ÎÃÖ´¹¡×¤Ã¤ÆÊØÍø¤Êµ¡Ç½¤Ç¤¹¤Í¡¨

¤¢¤È¤Ïmousey¤À¤È¥¦¥£¥ó¥É¥¦¤«¤é¤Ç¤ë¤È»ß¤Þ¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç
¤½¤³¤Î½¤Àµ¤È¢¬¢­¥­¡¼¤ÎÂбþ¤È¤«¤Ç¤¹¤«¤ÍŽ¥Ž¥Ž¥

¤½¤ì¤¬½ÐÍ褿¤éÊÌ¤Î¥×¥í¥°¥é¥à¤ËÁȤ߹þ¤àͽÄê¤Ç¤Ä



½é¿´¼Ô

¥ê¥ó¥¯

2012/9/24(Mon) 18:22:16|NO.49525

¥Æ¥¹¥Èage



ONION software Copyright 1997-2023(c) All rights reserved.