|
| ̤²ò·è |
| ²ò·è |
| Ää»ß |
| ºï½üÍ×ÀÁ |
|
2006/9/3(Sun) 22:05:03|NO.2248
¤³¤ó¤Ë¤Á¤ï¢ö
¤³¤ÎÁ°¡¢£Ã¸À¸ì¤ÎÊÙ¶¯¤·¤Æ¤¿¤é¡¢¤³¤ó¤Ê¤Î¸«¤Ä¤±¤Þ¤·¤¿¡£
// x ¤È y ¤òÆþ¤ìÂؤ¨¤ë¤À¤±¤Ç¤¹
// °ì»þÊÑ¿ô¤ò»È¤¤¤Þ¤¹
x=128
y=512
a=x
x=y
y=a
¤Ã¤Æ½ñ¤¯¤È¤³¤í¤ò¡¢
// x ¤È y ¤òÆþ¤ìÂؤ¨¤ë¤À¤±¤Ç¤¹
// °ì»þÊÑ¿ô¤ò»È¤¤¤Þ¤»¤ó
x=128
y=512
x-=y
y+=x
x=y-x
¤È¤¹¤ì¤Ð¡¢Í¾Ê¬¤ÊÊÑ¿ô¤ò»È¤ï¤º¤ËÆþ¤ìÂؤ¨¤é¤ì¤ë¤è¡¢¤È¤¤¤¦¤³¤È¤Ç¤·¤¿¡£
ÌÞÏÀ¡¢£È£Ó£Ð¤Ç¤â¤Ç¤¤Þ¤¹¡£
¤³¤ì¤òÉ´Ëü²ó¤¯¤é¤¤·«¤êÊÖ¤·¤Æ¤ß¤¿¤È¤³¤í¡¢¸å¼Ô¤ÎÊý¤¬¾¯¤·Ä㮤Ǥ·¤¿¡£
¤Î¤Ç¡¢¤¢¤ó¤Þ¤ê°ÕÌ£¤Ê¤¤¤Ç¤¹¡Ê¾Ð
¤³¤ì¤Ã¤Æ¾ï¼±¤Ê¤Î¤«¤âÃΤì¤Þ¤»¤ó¡¦¡¦¡¦
¤Ç¤â¤¢¤¿¤·Åª¤Ë¤Ï¿·Á¯¤À¤Ã¤¿¤Ç¤¹¡ù
¾¤Ë¤â¡¢¤Ê¤Ë¤«ÌÌÇò¤¤¥¹¥¯¥ê¥×¥È¤¬¤¢¤Ã¤¿¤é¡¢¤¼¤Ò¶µ¤¨¤Æ¤â¤é¤¨¤Þ¤»¤ó¤«¡©¡Ê¡±¢¦¡±¡ï
% ÆâÍƤÏwiki¤Ã¤Ý¤¤¤Ç¤¹¤±¤É¡¢¤½¤³¤Þ¤Ç¤Î¥â¥Î¤¸¤ã¤Ê¤¤¤Î¤Ç¡Ê¡°¡°¡¨
% ¤½¤ì¤Ë»È¤¤Êýʬ¤«¤é¤Ê¤¤¤·¡Ê¡§Õ¡®
|
|
2006/9/3(Sun) 22:13:49|NO.2249
¤¢¤È¡¢HSP3.0¤Ã¤Æʸ»úÎó¤Î²Ã»»¤Ë»þ´Ö¤¬³Ý¤«¤ë¤¸¤ã¤Ê¤¤¤Ç¤¹¤«¡©
¤À¤«¤éʸ»úÎó¤Ø·¿ÊÑ´¹¤ò¤¹¤ë¤È¤¤Ï¡¢
x=""+x
¤è¤ê
x=str(x)
¤Î¤¬¹â®¤Ç¤·¤¿¡£
¤½¤³¤Þ¤Ç¤Ï¤¤¤¤¤ó¤Ç¤¹¤¬¡¢¤¢¤¿¤·¤Î´Ä¶¤Ç¤Ï¡¢
À°¿ôÃͤط¿ÊÑ´¹¤¹¤ë¤È¤¤Ï¡¢
x=int(x)
¤è¤ê
x=0+x
¤ÎÊý¤¬¹â®¤Ë¤Ê¤ê¤Þ¤¹¡£ÌÌÇò¤¤¤Ç¤¹¤Í¡ù
# Windows9X 4.90 256MB
# WindowsNT 5.10 224MB
# ¤ÎξÊý¤Ç»î¤·¤Þ¤·¤¿
|
|
2006/9/4(Mon) 01:43:16|NO.2251
>¤³¤ì¤Ã¤Æ¾ï¼±¤Ê¤Î¤«¤âÃΤì¤Þ¤»¤ó¡¦¡¦¡¦
Í̾¤ÊÊýË¡¤ß¤¿¤¤¤Ç¤¹¤Í¡£
Àλä¤â¤¢¤ëÆü¤Õ¤È»×¤¤¤Ä¤¤¤Æ°ì¿Í¤Ç¡Ö¥¹¥²¡¼¼«Ê¬¤â¤·¤«¤·¤ÆÅ·ºÍ¡×¤È¡¢´î¤ó¤Ç¤¤¤¿¤ó¤Ç¤¹¤¬¡¢
¤·¤Ð¤é¤¯¤·¤ÆƱ¤¸Êª¤ò¥Í¥Ã¥È¾å¤Ç¸«¤Ä¤±¤Æ¥¬¥Ã¥«¥ê¤·¤¿¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
x=128
y=512
x^=y
y^=x
x^=y
¤³¤Î¤è¤¦¤Ê¤µ¤é¤Ë¹âÅ٤ʤä¤êÊý¤âºÜ¤Ã¤Æ¤¤¤Æ¡¢¤½¤ì¤ò»Ï¤á¤Æ¸«¤¿»þ¡Ö¥Ó¥Ã¥È¤«¤¡¡ª¡×¤È´¶Æ°¤·¤Þ¤·¤¿¡£
|
|
2006/9/4(Mon) 10:16:50|NO.2257
osakana¤µ¤ó¡¢¤ªÊÖ»ö¤¢¤ê¤¬¤È¤©¤´¤¶¤¤¤Þ¤¹¡ù
¤³¤ì¤Ã¤Æ¥Ó¥Ã¥È±é»»¤Ç¤³¤ó¤Ê¤Ë¥·¥ó¥×¥ë¤Ë¤Ç¤¤ë¤ó¤Ç¤¹¤Í¡Ê¡°£÷¡°¡´
>Àλä¤â¤¢¤ëÆü¤Õ¤È»×¤¤¤Ä¤¤¤Æ
¤³¤ì¤ò¼«Ê¬¤Ç»×¤¤¤Ä¤¤¤¿¤À¤±¤Ç¤â¥¹¥´¥¤¤«¤â¡¦¡¦¡¦¡Ê¾Ð
10,000,000²ó¼Â¹Ô¤·¤Æ¤ß¤¿·ë²Ì¤ò½ñ¤¤¤Æ¤ª¤¤Þ¤¹¡£
¡ÊÃͤÏ10,000,000¤Ç³ä¤Ã¤Æ¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢£±²ó¤ÎÊ¿¶Ñ¼Â¹Ô®Å٤Ǥ¹¡Ë
ÊÑ¿ô£³¤Ä»ÈÍÑ¡§ 0.001016ms
ÊÑ¿ô£²¤Ä¤À¤±¡§ 0.001082ms¡¡¡Ê¥Ó¥Ã¥È±é»»¤Ç¡Ë
#
¤½¤ì¤«¤é¡¢¾¯¤·Á°¤Ë¡¢repeat-loop ¤È *label-goto ¤òÈæ¤Ù¤Æ¤Þ¤·¤¿¤è¤Í¡£
¤Ç¤âÈæ¤ÙÊý¤¬¥¢¥ó¥Õ¥§¥¢¤Êµ¤¤¬¤¹¤ë¤ó¤Ç¤¹¡£
repeat-loop ¤Ï¥ë¡¼¥×²ó¿ô·è¤á¤é¤ì¤Þ¤¹¤·¤Í¡ù
¤ó¤Ç¡¢¤³¤¦¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
// sample.1 [repeat-loop]
x=0
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat
x++
if x=10000000 :break
loop
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
mes time2-time1
stop
repeat 10000000 ¤¸¤ã¤Ê¤¤¤È¤³¤í¤¬¥Ý¥¤¥ó¥È¤Ç¤¹¢ö
// sample.2 [*-goto]
x=0
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
*label
x++
if x=10000000 :goto *fin
goto *label
*fin
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
mes time2-time1
stop
¤³¤Î·ë²Ì¤ò¸«¤ë¤È¡¢
¤¢¤¿¤·¤Î´Ä¶¤Ç¤Ï¡¢Á´¤¯Æ±¤¸¡Ê¤Ã¤Æ¤¤¤¦¤Î¤âÊѤʤó¤Ç¤¹¤¬¡Ë¤Ç¤·¤¿¡£
¤É¤Ã¤Á¤¬¡©¡¦¡¦¤Ã¤Æ¤¤¤¦¤Î¤Ï¡¢Ã±½ã¤Ê̵¸Â¥ë¡¼¥×»þ¤Î¤ßÈæ¤Ù¤ë²ÁÃͤ¬¤¢¤ë¤È»×¤¤¤Þ¤¹¡ù
¿¼¤¤¤È¤³¤Ï¡¢Æ¬°¤¤¤ó¤Ç¤è¤¯Ê¬¤«¤é¤Ê¤¤¤Ç¤¹¡Á¡Ê¡÷¡±¢¢¡±¡÷
¤¢¤È¡¢¥×¥í¥°¥é¥àÀ©¸æ¥Þ¥¯¥í¤Ï¡¢¥Þ¥¯¥í¤Ê¤À¤±¤ËÄ㮤Ǥ·¤¿¡£
¤Ê¤ó¤ÇÌ¿Îá¤Ë¤Ê¤é¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤Í¡©¡©
| |
|
2006/9/4(Mon) 13:01:39|NO.2261
¤ó¡¢¤Þ¤¡¼«Ê¬¤¬»×¤¦¤ËHSP¤ÏC¤ß¤¿¤¤¤ËºÇ½é¤ËÊÑ¿ô¤òÀë¸À¤·¤Ê¤¯¤Æ¤â
¤è¤¤¤Î¤Ç¤¢¤Þ¤êµ¤¤Ë¤·¤Ê¤¯¤Æ¤â¤¤¤¤¤È»×¤¤¤Þ¤¹¡£
¼ÂºÝ¡¢¼«Ê¬¤Ï¤¤¤Á¤¤¤Á¼«Ê¬¤Ç½èÍý¤ÎÊýË¡¤ò¹Í¤¨¤Æ¤¤¤Æ¡¢
¥Þ¥¯¥í¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ë¼«Ê¬¤Ç´Ø¿ô¤òºî¤Ã¤Á¤ã¤Ã¤¿¤³¤È¤¬²¿²ó¤â¡¦¡¦¡¦(^^;
|
|
2006/9/4(Mon) 14:29:40|NO.2262
>C¤ß¤¿¤¤¤ËºÇ½é¤ËÊÑ¿ô¤òÀë¸À¤·¤Ê¤¯¤Æ¤â
³Î¤«¤Ë¤½¤¦¤Ê¤ó¤Ç¤¹¤è¤Í¡Ê¡°¡°
¤Ç¤â¡¢¤¢¤¿¤·¤ÏÀë¸À¤·¤¿¤¤ÇɤǤ¹¡Ê¾Ð
¤¤¤¤Ê¤êÊÑ¿ô¤ò»È¤¦¤Ã¤Æ¤³¤È¤¬¡¢¤Ê¤ó¤«µ¤»ý¤Á°¤¤¤ó¤Ç¤¹¡Ê¡ä¡ã¡¨
ÀΡ¢dim ¤ò»È¤Ã¤¿Àë¸À¤ÎÏ䬤¢¤ê¤Þ¤·¤¿¤¬¡¢¾¯¤·´¶Æ°¤·¤Á¤ã¤¤¤Þ¤·¤¿¡£
¤¹¤´¤¤ÌµÂ̤Ǥ¹¤è¡£Â¾¤Î¿Í¤¬Æɤó¤À¤é¡£
for ¥Þ¥¯¥í¤ÎÁ°¤Ë¡¢¥«¥¦¥ó¥¿ÊÑ¿ô¤ò½é´ü²½¤·¤¿¤ê¡¦¡¦
¥¹¥¯¥ê¥×¥È¤ÎºÇ½é¤Ë¡¢ÊÑ¿ôÁ´¤Æ¤ò½é´ü²½¤·¤Æ¤¿¤ê¡¦¡¦¡Ê¡°¡°¡ï
¤³¤À¤ï¤ê¤Ã¤Æ¤¢¤ê¤Þ¤¹¤è¤Í¡©¡©
¤¢¤¿¤·¤À¤±¤¸¤ã¤Ê¤¤¤Ç¤¹¤è¤Í¡©
|
|
2006/9/4(Mon) 19:44:18|NO.2267
>¥¹¥¯¥ê¥×¥È¤ÎºÇ½é¤Ë¡¢ÊÑ¿ôÁ´¤Æ¤ò½é´ü²½¤·¤Æ¤¿¤ê¡¦¡¦¡Ê¡°¡°¡ï
¤ï¤¿¤·¤Ï·ë¹½ÌÌÅݤ¯¤µ¤¬¤ê¤ä¤Ê¤Î¤Ç¤¤¤¤Ê¤êÊÑ¿ô¤ò»È¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤Ç¤â¾¯¤·Âç¤ÌÜ¤Î¥×¥í¥°¥é¥à¤ò½ñ¤¯»þ¤Ï¡¢¤ä¤Ï¤ê´Êñ¤ÊÊÑ¿ô¤Î»ÈÍÑÌÜŪ¤Î¥³¥á¥ó¥È¤È°ì½ï¤Ë¾å¤ÎÊý¤ÇÀë¸À¤·¤Æ¤¤¤Þ¤¹¡£
ºî¤Ã¤Æ¤ëÆâ¤Ëʬ¤«¤é¤Ê¤¯¤Ê¤Ã¤ÆÍè¤ë¤Î¤Ç¡¦¡¦¡¦¡£
¤¢¤ÈºÇ¶á»×¤¤¤Ä¤¤¤¿¤Î¤¬¡¢
*main
if ¾ò·ï1 :½èÍý1 :goto *aaa
if ¾ò·ï2 :½èÍý2 :goto *aaa
if ¾ò·ï3 :½èÍý3 :goto *aaa
*aaa
wait 1
goto *main
ÅÓÃæ¤Ç¥é¥Ù¥ë¤¬¤¢¤Ã¤Æµ¤»ý¤Á°¤¤¤Î¤Ç
*main
repeat 1
if ¾ò·ï1 :½èÍý1 :break
if ¾ò·ï2 :½èÍý2 :break
if ¾ò·ï3 :½èÍý3 :break
loop
wait 1
goto *main
¤ÇƱ¤¸¤è¤¦¤Ë½ÐÍè¤ë¡£
ÁÇľ¤Ëswitch¤ò»È¤¨¤Ð¤¤¤¤¤ó¤Ç¤¹¤±¤É
²¿¤È¤Ê¤¯¥Þ¥¯¥í¤Ï»È¤¤¤¿¤¯¤Ê¤ó¤Ç¤¹¤è¤Í¡£
|
|
2006/9/4(Mon) 23:47:13|NO.2270
>²¿¤È¤Ê¤¯¥Þ¥¯¥í¤Ï»È¤¤¤¿¤¯¤Ê¤ó¤Ç¤¹¤è¤Í
´Ö°ã¤¤¤Ê¤¤¤Ç¤¹¤Í¢ö
¤¢¤¿¤·¤â¥Þ¥¯¥í¤Ï½ÐÍè¤ë¤À¤±»È¤ï¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤Þ¤¹¡£
¤¿¤À¸Ä¿ÍŪ¤Ë switch ¼«ÂΤ¬¹¥¤¤Ê¤Î¤Ç¡¢
¡Ê¤·¤«¤âfor,while¤Ïrepeat¤ÇÂåÍѤǤ¤Þ¤¹¤¬¡¢switch¤Ï½ÐÍè¤Ê¤¤¤Ç¤¹¤·¡Ë
switch¥Þ¥¯¥í¤À¤±¤ÏÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£
Íýͳ¤¬¤¢¤ë¤Î¤«¤ÏÆæ¤Ç¤¹¤¬¡¢switch¤òÌ¿Îá¤È¤·¤ÆÍߤ·¤¤¤Ç¤¹¡ù
>(ά)¡¦¡¦¡¦¤ÇƱ¤¸¤è¤¦¤Ë½ÐÍè¤ë¡£
¤Ê¤ë¤Û¤É¤©¡£
½èÍýÎ̤äʬ´ôÎ̤ˤè¤Ã¤Æ¤Ï¡¢
*main
if ¾ò·ïA :½èÍý1 :else {
if ¾ò·ïB :½èÍý2 :else {
if ¾ò·ïC :½èÍý3
}
}
wait 1
goto *main
¤Ã¤Æ¤Î¤â¥¢¥ê¤«¤â¤·¤ì¤Þ¤»¤ó¤Í¡Ê¡°¡°
¤¿¤À¡¢Ê¬´ô¤Î³ä¹ç¤È¤«¤¬ÌäÂê¤Ç¡¢½èÍý®ÅÙ¤òÈæ³Ó¤¹¤ë¤Î¤ÏÆñ¤·¤½¤¦¤Ç¤¹¡¦¡¦¡¦
osakana¤µ¤ó¤ÎÊý¤¬¸«¤¿Ìܤ¬¥¹¥Æ¥¤Ç¤¹¤±¤É¤Í¡Ê¾Ð
#
¤è¤¯¡¢
if x :y++
¤Ê¤ó¤Æ¥¹¥¯¥ê¥×¥È½ñ¤¤Þ¤¹¤¬¡¢½ñ¤¤¤Æ¤ë»þ¤Ë
¡Ö¤¢¤¿¤·¤Ã¤Æ¥¹¥´¤¯¤Ê¤¤¡©¡×¤ß¤¿¤¤¤Êµ¤»ý¤Á¤Ë¤Ê¤ì¤Þ¤¹¡Ê¡°§»¡°¡¿
¤Ç¤â£È£Ó£Ð¤Ï¥Ó¥Ã¥ÈÈæ³Ó¤é¤·¤¯¡¢
// x!=0 ¤« Enter|Space
stick ky
if x&(ky&0b110000) :y++
¤ß¤¿¤¤¤Ê¤³¤È¤¬½ÐÍè¤Ê¤¤¤Î¤¬»ÄÇ°¤Ç¤¹¡£
¤¢¤È¡¢º¸¤«¤é½ç¤Ëɾ²Á¤·¤Æ¤¯¤ì¤Ê¤¤¤Î¤Ç¡¢
x&&(y=1)
¤ä
if (++x)>y :½èÍý
¤Î¤è¤¦¤Ê½ñ¤Êý¤¬¤Ç¤¤Ê¤¤¤Î¤â¡¢¤Ä¤Þ¤é¤Ê¤¤µ¤¤¬¤·¤Þ¤¹¡£
¤¹¤¤¤Þ¤»¤ó¡¢¥ï¥¬¥Þ¥Þ¤Ç¤¹¡Ê¾Ð
| |
|
2006/9/7(Thu) 03:05:14|NO.2306
>¡Ê¤·¤«¤âfor,while¤Ïrepeat¤ÇÂåÍѤǤ¤Þ¤¹¤¬¡¢switch¤Ï½ÐÍè¤Ê¤¤¤Ç¤¹¤·¡Ë
switch¤âhspdef.as¤ò¸«¤Æ¤ß¤¿¤égoto¤ÇÄ·¤Ð¤·¤Æ¤ë¤À¤±¸«¤¿¤¤¤Ç¤¹¤Í¡¦¡¦¡¦¡£
>Íýͳ¤¬¤¢¤ë¤Î¤«¤ÏÆæ¤Ç¤¹¤¬¡¢switch¤òÌ¿Îá¤È¤·¤ÆÍߤ·¤¤¤Ç¤¹¡ù
Ʊ´¶¤Ç¤¹¡£Ì¿Îá¤Ë¤Ê¤Ã¤¿¤é¥Ó¥·¥Ð¥·»È¤¨¤Þ¤¹¤â¤ó¤Í(¡°¡°
C¤Ê¤É¾¤Î¸À¸ì¤òÃΤäƤ¤¤ë¤È¡¢HSP¤â¤³¤¦½ÐÍ褿¤éÎɤ¤¤¤¤Ê¤¢
¤È¤«»×¤Ã¤¿¤ê¤·¤Þ¤¹¤¬¡¢Í¾¤ê¿§¡¹¤Ê½ñ¤Êý¤¬½ÐÍè¤Æ¤·¤Þ¤¦¤È
½é¿´¼Ô¤µ¤ó¤Îº®Íð¤Î¸µ¤Ë¤Ê¤ê¤½¤¦¡¦¡¦
¤Ç¤âÁ°¡¹¤«¤é¸À¤ï¤ì¤Æ¤¤¤ë¹½Â¤ÂΤ¬»È¤¨¤¿¤é¡¦¡¦¤È¤Ï»×¤¤¤Þ¤¹¡£
ºÇ¶á¶öÁ³È¯¸«¤·¤¿Ä¾ÀÜ¥×¥í¥°¥é¥à¤È¤Ï´Ø·¸¤Ê¤¤¥Í¥¿¡£
hsed3.exe¸ÂÄê¡£
¥³¡¼¥Ç¥£¥ó¥°¤·¤Æ¤¤¤ë»þ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¤Ç
¿ô¹ÔÁªÂò¤·¤Æ[tab]¤ò²¡¤¹¤È°ì³ç¤Ç¥¤¥ó¥Ç¥ó¥È½ÐÍè¤ë¡£
¥Õ¥ê¡¼¤Î¥Æ¥¥¹¥È¥¨¥Ç¥£¥¿¤Ç¤â½ÐÍè¤ëʪ¤¬¤¢¤ë¡£
¤½¤ì¤À¤±¡¦¡¦¡¦¡£
¤â¤·¤«¤·¤ÆÍ̾¡©¡¦¡¦¡¦
|
|
2006/9/7(Thu) 08:34:53|NO.2310
>¿ô¹ÔÁªÂò¤·¤Æ[tab]¤ò²¡¤¹¤È°ì³ç¤Ç¥¤¥ó¥Ç¥ó¥È½ÐÍè¤ë¡£
[Shift+TAB]¤À¤È¥¢¥ó¥¤¥ó¥Ç¥ó¥È¤Ç¤¹¡£
|
|
2006/9/7(Thu) 12:56:58|NO.2311
>½é¿´¼Ô¤µ¤ó¤Îº®Íð¤Î¸µ¤Ë¤Ê¤ê¤½¤¦¡¦¡¦
¤½¤¦¤Ç¤¹¤Í¡£
¤³¤ì¤¬°ìÈÖ¤ÎÌäÂê¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤«¤âÃΤì¤Þ¤»¤ó¡Ê¡°¡°¡¨
¤Ç¤¹¤±¤É¡¢°ìÊý¤Ç¡¢£È£Ó£Ð¤ò³Ø¤ó¤À¤³¤È¤Ç¡¢
£Ã¸À¸ì¤Î·«¤êÊÖ¤·Ì¿Îá¤À¤È¤«¡¢´Ø¿ô¤À¤È¤«¤ò¡¢
¥¹¥à¡¼¥º¤ËÍý²ò¤Ç¤¤ë¤È¤¤¤¦¥á¥ê¥Ã¥È¤¬¤¢¤ë¤È»×¤¤¤Þ¤¹¡Ê¡±£÷¡±¡¿
¤¢¤¿¤·¤â¤½¤¦¤Ç¤·¤¿¡£
¾¯¤·¶ì¼ê°Õ¼±¤â¤Ã¤Æ¤ë£Ã¤ò¡¢£È£Ó£Ð¤Ç³Ø¤Ù¤¿¤é¤Ê¤¡¡Á¤Ã¤Æ»×¤¤¤Þ¤¹¡ù
¿§¡¹¤Ê°ÕÌ£¤Ç¡¢¹½Â¤ÂΤ¬»È¤¨¤¿¤é¤È¡¢Æ±¤¸¤¯»×¤¤¤Þ¤¹£÷£÷
>°ì³ç¤Ç¥¤¥ó¥Ç¥ó¥È½ÐÍè¤ë
¤³¤ì¤Ã¤Æ¡¢ÃΤé¤Ê¤¤¿Í¤â¤¤¤ë¤È»×¤¤¤Þ¤¹¤è¡Ê¡¬§Õ¡¬¡×
¤¢¤¿¤·¤ÏVC++»È¤Ã¤Æ¤ë¤ó¤Ç¡Ê»È¤¨¤Æ¤Ê¤¤¤Ç¤¹¤±¤É¡Ê¾Ð¡¢¤¢¤ì¤¬Æ±¤¸Æ°ºî¤ò¤·¤Þ¤¹¡ù
£È£Ó£Ð¤Ç½ÐÍè¤ó¤Î¤«¤Ê¤¡¡¦¡¦¡¦¤¯¤é¤¤¤Ç¤ä¤Ã¤¿¤é¡¢½ÐÍ褿¤Î¤ò³Ð¤¨¤Æ¤Þ¤¹£÷
>[Shift+TAB]¤À¤È¥¢¥ó¥¤¥ó¥Ç¥ó¥È¤Ç¤¹¡£
ÃΤê¤Þ¤»¤ó¤Ç¤·¤¿m(_ _)m
¡Ö¤Ê¤ó¤Ç½ÐÍè¤Ê¤¤¤ó¤À¡©¡×¤È»×¤¤¤Ä¤Ä¡¢
¢¬¡¡BackSpace ¢¬¡¡BackSpace ¡¦¡¦¡¦¤ò²¿É´²ó¤â²¡¤·¤Æ¤Þ¤·¤¿¡Ê¾Ð
ifʸ¤ÎÁÞÆþ¤Ê¤ó¤«¤Ç¡¢¥¤¥ó¥Ç¥ó¥È°ÌÃÖ¤¬ÊѤï¤ê¤Þ¤¹¤«¤é¤Í¡£
¼Â¤Ï°Õ³°¤ÈÊØÍø¤Ç¤¹¤Í¡¢¥¹¥¯¥ê¥×¥È¥¨¥Ç¥£¥¿¡Êº£¹¹£ö
¤ß¤ó¤Ê¤Î°Ù¤Ë¤âÍ̾¤Ë¤·¤¿¤¤¤Ç¤¹¤Í¡Á
¤â¤·¤«¤·¤ÆÍ̾¤À¤Ã¤¿¤ê¡¦¡¦¡¦
#
ºÇ¶áÃΤ俤³¤È¤Ê¤ó¤Ç¤¹¤±¤É¡¢
¥¦¥£¥ó¥É¥¦¤Î¥¿¥¤¥È¥ë¤Ë"HotSoupPro..."¤Èɽ¼¨¤µ¤ì¤ë¤Î¤Ç¡¢
¥Ç¥Õ¥©¥ë¥È¤Ç¤½¤¦¤Ê¤Î¤«¤È»×¤Ã¤Æ¤¿¤ó¤Ç¤¹¤¬¡¢
¼Â¹Ô²Äǽ¥Õ¥¡¥¤¥ë¤Ë¤¹¤ë¤È""¤Ë¡Ê¡±¢¢¡±¡¨
²áµî¥í¥°Ä´¤Ù¤¿¤é¡¢¤¢¤ê¤Þ¤·¤¿¡¦¡¦¡¦¤±¤É¡¢
½é¤á¤«¤é"HotSoupPro..."¤È¤¢¤ë¤Î¤¬½é¿´¼Ô¤Ë¤Ïʬ¤«¤ê¿É¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¡¢¤È¡£
| |
|
2006/9/7(Thu) 20:28:41|NO.2312
>[Shift+TAB]¤À¤È¥¢¥ó¥¤¥ó¥Ç¥ó¥È¤Ç¤¹¡£
ÃΤäƤϤ¤¤¿¤Î¤Ç¤¹¤¬¡¢Ê¸Ì®¹Í¤¨¤ë¤Î¤Ëµ¤¤ò¼è¤é¤ì¤Æ˺¤ì¤Æ¤Þ¤·¤¿¡¦¡¦
kz3¤µ¤ó¤Ä¤Ã¤³¤ßÍÆñ¤¦¤´¤¶¤¤¤Þ¤¹¡£
¥ª¥Ö¥¸¥§¥¯¥È¤ÎÁªÂò¤Ç¤âtab¤Ç¿Ê¤ß¡¢shift+tab¤ÇÌá¤ë¤Ê¤é¤ª¤½¤é¤¯
¤³¤ì¤â½ÐÍè¤ë¤Ï¤º¡¢¥à¥à¥à¡£¤È¤ä¤Ã¤Æ¤Þ¤·¤¿¡£
>¤Ç¤¹¤±¤É¡¢°ìÊý¤Ç¡¢£È£Ó£Ð¤ò³Ø¤ó¤À¤³¤È¤Ç¡¢
>£Ã¸À¸ì¤Î·«¤êÊÖ¤·Ì¿Îá¤À¤È¤«¡¢´Ø¿ô¤À¤È¤«¤ò¡¢
>¥¹¥à¡¼¥º¤ËÍý²ò¤Ç¤¤ë¤È¤¤¤¦¥á¥ê¥Ã¥È¤¬¤¢¤ë¤È»×¤¤¤Þ¤¹¡Ê¡±£÷¡±¡¿
¤½¤¦¤Ç¤¹¤Í¡¼»ä¤âPerl¤ËºÃÀÞ¤·¤ÆHSP¤ò³Ð¤¨¤Æ
C¤ËÄ©À路¤¿¸ý¤Ê¤Î¤Ç¡¢¤è¤¯¤ï¤«¤ê¤Þ¤¹¡£
>½é¤á¤«¤é"HotSoupPro..."¤È¤¢¤ë¤Î¤¬½é¿´¼Ô¤Ë¤Ïʬ¤«¤ê¿É¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¡¢¤È¡£
³Î¤«¤Ë¡£
HSP¤Ç¥ê¥ó¥¯¥ê¥¹¥È¤¬ºî¤ì¤¿¤é¥«¥Ã¥³¤¤¤¤¤«¤â¡£
|
|
2006/9/7(Thu) 22:00:44|NO.2314
>»ä¤âPerl¤ËºÃÀÞ¤·¤ÆHSP¤ò³Ð¤¨¤ÆC¤ËÄ©À路¤¿¸ý¤Ê¤Î¤Ç¡¢¤è¤¯¤ï¤«¤ê¤Þ¤¹¡£
¤½¤¦¤Ê¤ó¤Ç¤¹¤«¤¡¢ö
¤½¤¦¤¤¤¦°ÕÌ£¤Ç¤Ï¡¢£È£Ó£Ð¤Ã¤Æ¥¹¥´¥¤¡Ê¡©¡Ë¤Ç¤¹¤è¤Í¡ù
>HSP¤Ç¥ê¥ó¥¯¥ê¥¹¥È¤¬ºî¤ì¤¿¤é¥«¥Ã¥³¤¤¤¤¤«¤â¡£
¤Ã¤Æ¤¤¤¦¤Î¤Ï¡¢¤É¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¤«¡Ê¡°¡°¡©
°ÕÌ£¤¬°ã¤¦¤«¤â¤Ê¤ó¤Ç¤¹¤¬¡¢¤½¡¼¤¤¤¨¤Ð¡¢£È£Ó£Ð¤Ï¥ê¥ó¥¯ºîÀ®¤¬Æñ¤·¤¤¤Ç¤¹¤è¤Í¡£
¤â¤Á¤í¤óɸ½àÌ¿Îá¤À¤±¤Ç¡¢¤Ç¤¹¡Ê¡±§Ø¡±
repeat
stick ky
if ky {
if (mousex>200)&(mousex<300)&(mousey>10)&(mousey<20) :½èÍýA :continue
if (mousex>200)&(mousex<300)&(mousey>20)&(mousey<30) :½èÍýB :continue
}
await 1
loop
¤ß¤¿¤¤¤Ë¡¢¾ò·ï¤ò»ÍÊýÀßÄꤷ¤Ê¤¤¤È¥ê¥ó¥¯¸«¤¿¤¤¤Î¤Ïºî¤ì¤Ê¤¤¤Ç¤¹¤·¡¢
£È£Ó£Ð¤Î¾ì¹ç¤Ï½èÍý¤¬¤½¤³¤Þ¤Ç¹â®¤Ç¤Ê¤¤¤Î¤Ç¡¢
¥ê¥ó¥¯¿ô¤¬Â¿¤¤¤ÈÆ°ºî¤¬ÃÙ¤¯¤Ê¤Ã¤Á¤ã¤Ã¤¿¤ê¤·¤Þ¤¹¡¦¡¦¡¦¡Ê¡ä¡ã¡¨
Æäˣȣԣ̤ͣΡ¡link=#000000 alink=#606060 vlink=#A0A0A0>
¤ß¤¿¤¤¤Ê¤â¤Î¤ò¼Â¸½¤·¤è¤¦¤È¤¹¤ë¤È¡¢¾°¹¹¤Ç¤¹¡£
ʸ»ú¥Ü¥¿¥ó¤Î¤è¤¦¤Ê¤â¤Î¤Ë´Ø¤·¤Æ¡¢¥³¥Ä¤È¤«¤¢¤Ã¤¿¤ê¤¹¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
¤â¤·ÃΤäƤ¤¤Þ¤·¤¿¤é¡¢À§È󶵤¨¤Æ¤¯¤À¤µ¤¤¤Þ¤· m(_ _)m
|
|
2006/9/8(Fri) 02:50:38|NO.2316
> ʸ»ú¥Ü¥¿¥ó¤Î¤è¤¦¤Ê¤â¤Î
mod_customizebutton.hsp
http://hspwiki.nm.land.to/?Module%2Fcustomizebutton
¤½¤Î¥Ü¥¿¥ó¤ò»È¤Ã¤¿¥ê¥ó¥¯¤â¤É¤¡£
#include "mod_customizebutton.hsp"
font msgothic, 16
mes "¥ê¥ó¥¯¤â¤É¤"
pos 0, 24 : mes "dialog 1 ɽ¼¨¡¢dialog 2 ɽ¼¨¡¢½ªÎ»¤Î¥ê¥ó¥¯¡£"
dim bi, 3
objmode 2
color 0,0,255
objsize 48,16 : pos 64, 24 : button "ɽ¼¨", *d1 : bi(0)=stat
custombutton bi(0), -2, -1, 0, 48
objsize 64,16 : pos 120, 24 : button "dialog 2", *d2 : bi(1)=stat
custombutton bi(1), -2, -1, 0, 48
objsize 16,16 : pos 336, 24 : button "¡£", *ed : bi(2)=stat
custombutton bi(2), -2, -1, 0, 48
stop
*d1
color 255, 0, 255
custombutton bi(0), -2, -1, 0, 48
dialog "dialog 1"
stop
*d2
color 255, 0, 255
custombutton bi(1), -2, -1, 0, 48
dialog "dialog 2"
stop
*ed
end
|
|
2006/9/8(Fri) 12:58:45|NO.2319
naznyark¤µ¤ó¡¢¤ªÊÖ»ö¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡Ê¡°¡°
´Ö°ã¤¤¤Ê¤¯¡¢ link , vlink ¤¬ºîÀ®¤µ¤ì¤Æ¤¤¤Þ¤¹¤Í¡ù
¤³¤ó¤Ê¤³¤È¤â½ÐÍè¤ë¤ó¤Ç¤¹¤Í¤Ã¡Á¡¢¤Á¤ç¤Ã¤È¶Ã¤¤Ç¤¹¡£
¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹m(__)m
¤³¤ì¤ò¤É¤¦¤Ë¤«¤Ë¤Æ¡¢alink ¤òÄɲ䷤Ƥߤ褦¤È¤·¤¿¤ó¤Ç¤¹¤¬¡¢
¤¢¤¯¤Þ¤Ç¡Ö¥Ü¥¿¥ó¡×¤È¤·¤Æ¸ºß¤·¤Æ¤¤¤ë¤è¤¦¤Ç¡¢
¥ª¥Ö¥¸¥§¥¯¥È¤Î¾å¤Ë¥«¡¼¥½¥ë¤¬¤¢¤ë¾õÂ֤ǤÎȽÃǤÏÆñ¤·¤½¤¦¤Ç¤¹¡Ê¡±£î¡±¡¨
¤½¤³¤Ç¡¢
£±¡¥¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥Þ¥¦¥¹¥Õ¥©¡¼¥«¥¹¤¬°Ü¤Ã¤¿¤é
£²¡¥mousex,mousey¤¬¥ê¡¼¥¸¥ç¥ó¾å¤Ë¤¤¤¿¤é
¤Î¤É¤Á¤é¤«¤Ç¡¢¤ä¤Ã¤Æ¤ß¤ë¤³¤È¤Ë¤·¤Þ¤·¤¿¡£
£Í£Ó£Ä£Î¤Ë¹Ô¤Ã¤Æ¤ß¤¿¤ó¤Ç¤¹¤¬¡¢¤Ê¤Ë¤Ö¤ó´·¤ì¤Æ¤¤¤Ê¤¤¤â¤ó¤Ç¡£
°ì»þ´Öõ¤·¤Æ¸«¤Ä¤±¤¿¤Î¤¬¡¢
/*»ØÄꤵ¤ì¤¿ÅÀ¤¬¡¢»ØÄꤵ¤ì¤¿¥ê¡¼¥¸¥ç¥ó¤ÎÆ⦤ˤ¢¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤Þ¤¹¡£*/
BOOL PtInRegion(
HRGN hrgn, // ¥ê¡¼¥¸¥ç¥ó¤Î¥Ï¥ó¥É¥ë
int X, // ÅÀ¤Î x ºÂɸ
int Y // ÅÀ¤Î y ºÂɸ
);
¤³¤ì¤Ç¤¹¡Ê¡°¡°¡¨
¤³¤ì¤¬£È£Ó£Ð¤Î´Ø¿ô¤È¤·¤Æ»È¤¨¤ë¤Î¤«¤È¤«¡¢
¥ê¡¼¥¸¥ç¥ó¤Î¥Ï¥ó¥É¥ë¤Ï²¿¤«¤È¤«¤Ï¡¢Íý²ò¤Ç¤¤Þ¤»¤ó¤¬
¤Ê¤ó¤È¤Ê¤¯¡¢¤³¤ì¤ÇȽÄê¤ò·«¤êÊÖ¤¹¤³¤È¤Ç¡¢alink ¤¬ºî¤ì¤ë¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¡¦¡¦¡¦
¤È»×¤¤¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¡£(^^;
#uselib "gdi32.dll"
¤Î¤È¤³¤í¤Ë¡¢
#func PtInRegion "PtInRegion" int,int,int
¤ÈÄɲ䷤Ƥߤ¿¤â¤Î¤Î¡¢
repeat
PtInRegion b(0),mousex,mousey
if stat :dialog
await 1
loop
夤¤¿¥¹¥¯¥ê¥×¥È¤Îstop¤Î¤È¤³¤í¤ò¡¢¢¬¤ËÊѤ¨¤¿¤Î¤Ç¤¹¤¬¡¢
ʸˡ¥¨¥é¡¼¤¬¡¦¡¦¡¦¡ÊÆæ¡Ë
¼êõ¤ê¤Ê¤Î¤ÇÅöÁ³¤Ê¤ó¤Ç¤¹¤¬¡Ê¡ä¡ã¡¨
¤³¤³¤«¤é¡¢¾¯¤·¥Ò¥ó¥È¤ò失¤Þ¤»¤ó¤Ç¤·¤ç¤¦¤«¡©
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹M(__)M
| |
|
2006/9/9(Sat) 01:18:59|NO.2328
> ʸˡ¥¨¥é¡¼¤¬¡¦¡¦¡¦¡ÊÆæ¡Ë
3.0(a) , 3.1b5 ¤Ç¤Ï¥â¥¸¥å¡¼¥ëÆâ¤Ç #func , #cfunc ¤ÇÄêµÁ¤·¤¿Ì¿Îá(´Ø¿ô)¤Ï
¥í¡¼¥«¥ë°·¤¤¤Ç¤½¤Î¥â¥¸¥å¡¼¥ëÆâ¤Ç¤·¤«»ÈÍѤǤ¤Þ¤»¤ó¡£
¥â¥¸¥å¡¼¥ë³°¤Ç»ÈÍѤ·¤¿¤¤¤È¤¤ÏÄêµÁ»þ¤Ë global »ØÄê¤ò¤¹¤ë¤«¡¢
»ÈÍÑ»þ¤Ë (Ì¿Îá)@(¥â¥¸¥å¡¼¥ë̾) ¤È¥â¥¸¥å¡¼¥ë̾¤òÌÀ¼¨¤·¤Þ¤¹¡£
(¤¢¤ë¤¤¤Ï¥â¥¸¥å¡¼¥ë³°¤ÇÄêµÁ¤ò¹Ô¤¤¤Þ¤¹¡£)
> ¤³¤ì¤ò¤É¤¦¤Ë¤«¤Ë¤Æ¡¢alink ¤òÄɲ䷤Ƥߤ褦¤È¤·¤¿¤ó¤Ç¤¹¤¬¡¢
¼Â¤Ï»ä¤Ê¤ê¤Ëºî¤Ã¤Æ¤ß¤¿¥µ¥ó¥×¥ë¤Ï¤¢¤ê¤Þ¤¹¤¬¡¢¤È¤ê¤¢¤¨¤º¥Ò¥ó¥È¤Î¥¡¼¥ï¡¼¥É
WindowFromPoint
ginfo(0)
ginfo(1)
¸å¤Ç»ä¤Î¥µ¥ó¥×¥ë¤â½ñ¤¹þ¤ß¤Þ¤¹¡£
|
|
2006/9/9(Sat) 21:29:41|NO.2337
¤´¿ÆÀڤˡ¢¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹m(_ _)m
>¥â¥¸¥å¡¼¥ë³°¤Ç»ÈÍѤ·¤¿¤¤¤È¤¤ÏÄêµÁ»þ¤Ë global »ØÄê¤ò
¤½¤¦¤À¤Ã¤¿¤ó¤Ç¤¹¤«¡ù¤´»ØŦ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¤Ã¡ª
>¥Ò¥ó¥È¤Î¥¡¼¥ï¡¼¥É
ËÜÅö¤Ë¤¹¤¤¤Þ¤»¤ó¤Ã¡ª
夤¤¿¥Ò¥ó¥È¤ò¶î»È¤·¤Æ¡¢¿§¡¹»î¤·¤¿¤¤¤È»×¤¤¤Þ¤¹¡ù
¤¢¤¿¤·¤Ï¡¢£±¡¦£²Æü¤¸¤ãÄü¤á¤Ê¤¤À³Ê¡Ê¡©¡Ë¤Ê¤Î¤Ç¡¢
¤â¤·¤«¤·¤¿¤é¥¹¥´¥¯»þ´Ö¤¬¤«¤«¤Ã¤Æ¤·¤Þ¤¦¤«¤â¤Ç¤¹(^^;
¼«Ê¬¤Ê¤ê¤Ë¥á¥¤¥Ã¥Ñ¥¤´èÄ¥¤ê¤Þ¤¹¤Î¤Ç¡¢Ä¶¹Í(¾Ð)¤ò¤ªµö¤·¤¯¤À¤µ¤¤¤Þ¤»¡Ê><;
¤â¤·¤½¤Î´Ö¤ËƱ¤¸¤è¤¦¤ÊÊý¤¬¤¤¤é¤Ã¤·¤ã¤Ã¤Æ¡¢²òÅú¤ò˾¤ó¤Ç¤ª¤é¤ì¤ë¤è¤¦¤Ç¤·¤¿¤é
¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤òºÜ¤»¤ÆÌ㤨¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡©
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹m(__)m
¤½¤ì¤«¤é¡¢½ÐÍè¤ì¤Ð¶µ¤¨¤Æ夤¿¤¤¤Î¤Ç¤¹¤¬¡¢
Íߤ·¤¤Ì¿Îᡦ´Ø¿ô
¡¡¡¡¢
¸ºß¤¹¤ëÌ¿Îᡦ´Ø¿ô
¡¡¡¡¢
HSP¤Ç»ÈÍѲÄǽ¤ÊÌ¿Îᡦ´Ø¿ô
¤È¤¤¤¦Î®¤ì¡¢¡Êº£²ó¤Ç¤¤¤¦¡¢alink ¢ª WindowFromPoint)
¤È¤¤¤¦¤Î¤ò¤É¤¦¤¤¤¦É÷¤Ë¼èÆÀ¤µ¤ì¤¿¤Î¤Ç¤·¤ç¤¦¤«¡©
¤Þ¤¿¤Ï¡¢¤É¤¦¤¹¤ì¤Ð¼èÆÀ¤Ç¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
¤³¤ì¤¬¡¢Ê¬¤«¤ì¤Ð¡¢HSPɸ½àÌ¿Îá¤ËÊá¤é¤ï¤ì¤º¡¢
¤è¤ê¹¤¤À¤³¦¤Ç¥×¥í¥°¥é¥ß¥ó¥°¤¬¤Ç¤¤ë¤«¤â(¡±¢¦¡±¥«¥â¡©ÃΤì¤Ê¤¤¤È»×¤¤¤Þ¤¹¡Ê¡°¡°v
¤Ê¤Ë¤è¤êÍê¤é¤º¤Ë¥×¥í¥°¥é¥ß¥ó¥°¤¬¤Ç¤¤Þ¤¹¤Ç¤·¤ç¤¦¤·¡¦¡¦¡¦
#
¥Ü¥¿¥ó¤ò»ý¤Ä¥×¥í¥°¥é¥à¤Ç¡¢¥Ü¥¿¥ó¤Î¸«±É¤¨¤äµ¡Ç½¤Ï¤È¤Æ¤â½ÅÍפÀ¤È»×¤¤¤Þ¤¹¡£
¤³¤Îalink,vlink¤Î¤è¤¦¤Êµ¡Ç½¤Ï¡¢É¬Íפʥª¥Ö¥¸¥§¥¯¥È¤Î°ì¤Ä¤Î¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹ww
| |
|
2006/9/10(Sun) 02:59:55|NO.2340
> ¤¢¤¿¤·¤Ï¡¢£±¡¦£²Æü¤¸¤ãÄü¤á¤Ê¤¤À³Ê¡Ê¡©¡Ë¤Ê¤Î¤Ç¡¢
> ¤â¤·¤«¤·¤¿¤é¥¹¥´¥¯»þ´Ö¤¬¤«¤«¤Ã¤Æ¤·¤Þ¤¦¤«¤â¤Ç¤¹(^^;
> ¼«Ê¬¤Ê¤ê¤Ë¥á¥¤¥Ã¥Ñ¥¤´èÄ¥¤ê¤Þ¤¹¤Î¤Ç¡¢Ä¶¹Í(¾Ð)¤ò¤ªµö¤·¤¯¤À¤µ¤¤¤Þ¤»¡Ê><;
»ä¤Î¤³¤È¤Ïµ¤¤Ë¤»¤º¤ËǼÆÀ¤¤¤¯¤Þ¤Ç¤ä¤Ã¤Æ¤¯¤À¤µ¤¤¡£
»ä¤Î¥µ¥ó¥×¥ë¤Ï¤¢¤¯¤Þ¤Ç»²¹Í¤Ë¤¹¤ë¤¿¤á¤Î°ìÎã¤È¹Í¤¨¤Æ¤¤¤Þ¤¹¤«¤é
ɬÍפ¬¤Ê¤¤¤Ê¤é¤½¤ì¤Ç¤«¤Þ¤¤¤Þ¤»¤ó¡£
> ¤½¤ì¤«¤é¡¢½ÐÍè¤ì¤Ð¶µ¤¨¤Æ夤¿¤¤¤Î¤Ç¤¹¤¬¡¢
¤³¤Á¤é¤Î¼ÁÌä¤Ï¤¦¤Þ¤¯Ê¸¾Ï¤¬¤Þ¤È¤Þ¤é¤Ê¤¤¤Î¤ÇÅú¤¨¤é¤ì¤Þ¤»¤ó¡£
ʸ¾Ï¤Ë¤Þ¤È¤á¤é¤ì¤¿¤Ê¤é¸å¤Ç½ñ¤¹þ¤ß¤Þ¤¹¡£
|
|
2006/9/10(Sun) 03:48:36|NO.2342
>HSP¤Ç¥ê¥ó¥¯¥ê¥¹¥È¤¬ºî¤ì¤¿¤é¥«¥Ã¥³¤¤¤¤¤«¤â¡£
ÊÑ¿ô¤ò¥Ý¥¤¥ó¥¿¤Ç·Ò¤¤¤Ç¥Ë¥ç¥¥Ë¥ç¥¿¤Ð¤·¤Æ¹Ô¤¯¥ä¥Ä¤Î
¤Ä¤â¤ê¤Ç¤·¤¿¤¬¡¢Ï䬹¤¬¤Ã¤¿¤Î¤Ç·ë²Ì¥ª¡¼¥é¥¤¡¢Ëü»ö£Ï£Ë¡£
>mod_customizebutton.hsp
HSP³«È¯wiki¤ò¸«¤Æ¸ºß¤ÏÃΤäƤ¤¤Þ¤·¤¿¤¬¡¢
¤¢¤é¤¿¤á¤Æ¸«¤Æ¤ß¤ë¤È¿§¡¹½ÐÍ褽¤¦¤Ç¤¹¤Í¡£
¤È¤¤¤¦¤«¡¢À¨²á¤®¤Æ»È¤¤¤³¤Ê¤»¤Ê¤¤¡¦¡¦¡¦¡£
¤³¤¦¤¤¤¦»¨ÃÌ¥¹¥ì¥Ã¥É¤â¤¤¤¤¤Ç¤¹¤Í¡£¡Êº£¤´¤í...¡Ë
|
|
2006/9/11(Mon) 09:38:36|NO.2364
¤²...¡£
¤Þ¤¡¤¢¤ì¤Ï¥Ý¥¤¥ó¥¿¤ò»È¤ï¤Ê¤¤¤Ç¼ÂÁõ¤¹¤ëHSP¸þ¤±¤Î¥µ¥ó¥×¥ë¤È¤¤¤¦¼ñ¸þ¤Ç½ñ¤¤Þ¤·¤¿¤Ç¤¹¡£
|
|
2006/9/12(Tue) 10:21:05|NO.2379
ÃÙ¤¯¤Ê¤Ã¤Æ¤¹¤¤¤Þ¤»¤ó¤Ã¡ª
naznyark¤µ¤ó¡¢osakana¤µ¤ó¡¢¤¯¤Ë¤µ¤ó¡¢kz3¤µ¤ó¡¢
¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ù
>¤Î¤³¤È¤Ïµ¤¤Ë¤»¤º¤ËǼÆÀ¤¤¤¯¤Þ¤Ç¤ä¤Ã¤Æ¤¯¤À¤µ¤¤¡£
ʬ¤«¤ê¤Þ¤·¤¿(^^¡¡¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
>ʸ¾Ï¤Ë¤Þ¤È¤á¤é¤ì¤¿¤Ê¤é¸å¤Ç½ñ¤¹þ¤ß¤Þ¤¹¡£
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹m(_ _)m
>ÊÑ¿ô¤ò¥Ý¥¤¥ó¥¿¤Ç·Ò¤¤¤Ç¥Ë¥ç¥¥Ë¥ç¥¿¤Ð¤·¤Æ¹Ô¤¯
¤¢¤Ã¡¢¤½¤¦¤À¤Ã¤¿¤ó¤Ç¤¹¤«¡ª¤¹¤¤¤Þ¤»¤ó(^^;
>¥é¥Ü/¥ê¥ó¥¯¥ê¥¹¥È
¥ê¥ó¥¯¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹(^^/
#
MSDN¤Çõ¤·¤¿¤Î¤Ç¤¹¤¬¡¢
< WindowFromPoint >
»ØÄꤵ¤ì¤¿¥Ý¥¤¥ó¥È¤ò´Þ¤à¥¦¥£¥ó¥É¥¦¤ò¼èÆÀ¤·¤Þ¤¹¡£
point ¤Ë¤Ï¡¢²èÌ̾å¤Ë¥Ý¥¤¥ó¥È¤Î²èÁüºÂɸ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
static CWnd* PASCAL WindowFromPoint(
POINT point
);
[ ¥Ñ¥é¥á¡¼¥¿ ]
point Ä´¤Ù¤ëÅÀ¤òÄêµÁ¤¹¤ë CPoint ¥ª¥Ö¥¸¥§¥¯¥È¤Þ¤¿¤Ï POINT ¥Ç¡¼¥¿¹½Â¤ÂΤò»ØÄꤷ¤Þ¤¹¡£
[ Ìá¤êÃÍ ]
»ØÄꤵ¤ì¤¿ÅÀ¤ò´Þ¤à¥¦¥£¥ó¥É¥¦ ¥ª¥Ö¥¸¥§¥¯¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¡£
»ØÄꤵ¤ì¤¿ÅÀ¤¬¤¤¤º¤ì¤Î¥¦¥£¥ó¥É¥¦¤Ë¤â´Þ¤Þ¤ì¤Ê¤¤¾ì¹ç¤Ï¡¢NULL ¤òÊÖ¤·¤Þ¤¹¡£
ÊÖ¤µ¤ì¤ë¥Ý¥¤¥ó¥¿¤Ï¡¢°ì»þŪ¤Ê¥Ý¥¤¥ó¥¿¤Ç¤¹¡£¸å¤Ç»ÈÍѤ¹¤ë¤¿¤á¤ËÊݸ¤·¤Æ¤ª¤¯¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
¤³¤ì¤Ç¤¤¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©
C++ ¤ÎʬÎà¤À¤Ã¤¿¤Î¤Ç¡¢¤â¤·¤«¤·¤¿¤é°ã¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡Ê´À
¤½¤ì¤«¤é¡¢¥Ò¥ó¥È¤Î¥¡¼¥ï¡¼¥É¤Ê¤ó¤Ç¤¹¤¬¡¢
mousex,mousey ¤Ç¤Ï¤Ê¤¯¤Æ¡¢ginfo(0)¤Èginfo(1)¤Ê¤Î¤Ï¡¢
WindowFromPoint¤ËÅϤ¹ÃͤËɬÍפÀ¤«¤é¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡©
¤¢¤Þ¤ê¤Ë¤âʬ¤«¤é¤Ê¤¤¤³¤È¤¬Â¿¤¤¤Î¤Ç¡¢
¤¤¤¤Ê¤êÌܱ£¤·¾õÂÖ¤ËÆÍÆþ¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡Ê¡ä¡ã¡¨
¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¤Ç¤¹¡ÊÎÞ
| |
|
2006/9/12(Tue) 15:40:49|NO.2383
¿§¡¹Ä´¤Ù¤Æ»î¤·¤Æ¤ß¤¿¤é¡¢¤³¤ì¤Çµ¡Ç½¤¹¤ë¤ß¤¿¤¤¤Ç¤¹¡£
¿¼¤¤°ÕÌ£¤Ï̵¤¤¤Ç¤¹¤¬¡¢³ÎǧÍѤËhwnd¤âɽ¼¨¤·¤Æ¤¤¤Þ¤¹¡£
#uselib "user32.dll"
#cfunc WindowFromPoint "WindowFromPoint" int,int
repeat
cls
mes WindowFromPoint(ginfo(0),ginfo(1))
mes hwnd
wait 50
loop
|
|
2006/9/12(Tue) 23:02:16|NO.2389
¤Ê¤ó¤È¤Ê¤¯Ê¬¤«¤Ã¤Æ¤¤Þ¤·¤¿¡ù
WindowFromPoint´Ø¿ô¤Î°ú¿ô¤¬£±¤Ä¤À¤Ã¤¿¤Î¤Ç¡¢º®Í𤷤Ƥ¤¤Þ¤·¤¿¤Ã¡£
¤È¤ê¤¢¤¨¤º¡¢¥¹¥¯¥ê¥×¥È¤ò¡¦¡¦¡¦
#include "mod_customizebutton.hsp"
#uselib "user32.dll"
#cfunc WindowFromPoint "WindowFromPoint" int,int
color :boxf
color 0xFF,0xFF,0xFF
font msmincho,16
pos 0,32
mes "MessageButton with HSP\n"
mes "<body bgcolor=#000000 text=#FFFFFF link=#B00000 alink=#FF0000 vlink=#800000>"
pos 0,120
mes "Function [ WindowFromPoint ]"
mes "HWND WindowFromPoint( POINT point );"
mes "Return Value"
dim bi,3 // Object ID
dim bh,3 // Object pointer
dim vlink,3 // vlink ON/OFF
obj=0
objmode 2
color 0xB0
// Object 1
objsize 120,16 :pos 88,120 :button "WindowFromPoint",*vlink1
bi(0)=stat :custombutton bi(0),-2,-1,0,48
// Object 2
objsize 40,16 :pos 224,136 :button "point",*vlink2
bi(1)=stat :custombutton bi(1),-2,-1,0,48
// Object 3
objsize 96,16 :pos 0,152 :button "Return Value",*vlink3
bi(2)=stat :custombutton bi(2),-2,-1,0,48
repeat
switch ( WindowFromPoint(ginfo(0),ginfo(1)) )
case bh(0)
gosub *alink1
swbreak
case bh(1)
gosub *alink2
swbreak
case bh(2)
gosub *alink3
swbreak
default
gosub *clear
swbreak
swend
await 10
loop
/* 1st SubRoutine */
// vlink
*vlink1
obj=0
gosub *click
dialog "The WindowFromPoint function retrieves a handle to the window that contains the specified point."
stop
*vlink2
obj=1
gosub *click
dialog "[in] Specifies a POINT structure that defines the point to be checked."
stop
*vlink3
obj=2
gosub *click
dialog "The return value is a handle to the window that contains the point. \nIf no window exists at the given point, the return value is NULL. "
stop
// alink
*alink1
obj=0
gosub *hover
stop
*alink2
obj=1
gosub *hover
stop
*alink3
obj=2
gosub *hover
stop
*clear
repeat 3
if vlink(cnt) :color 0x80 :else :color 0xB0
custombutton bi(cnt),-2,-1,0,48
loop
stop
/* 2nd SubRoutine */
*click
color 0x80
custombutton bi(obj),-2,-1,0,48
vlink(obj)=1
return
*hover
color 0xFF
custombutton bi(obj),-2,-1,0,48
return
ÇÛÎó bh ¤Ï¡¢WindowFromPoint´Ø¿ô¤ÎÌá¤êÃͤÈÈæ³Ó¤¹¤ë¤¿¤á¤ËÍÑ°Õ¤·¤Þ¤·¤¿¡£
¤Ç¤¹¤¬¡¢¤½¤ì¤¾¤ì¤Î¥Ü¥¿¥ó¤Î¥¦¥£¥ó¥É¥¦¤Ø¤Î¥Ï¥ó¥É¥ë¤Î¼èÆÀÊýË¡¤¬Ê¬¤«¤ê¤Þ¤»¤ó(><;
°ì±þ¡¢¤³¤ó¤Êή¤ì¤Ç¤¤¤¤¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤Ç¤·¤ç¤¦¤«¡©
| |
|
2006/9/12(Tue) 23:12:40|NO.2390
WindowFromPoint ¤ò»È¤Ã¤¿¥¹¥¯¥ê¥×¥È¤¬¤¢¤ê¤Þ¤·¤¿¤Í¡Á¢ö
¡Úº£¤É¤Î¥¦¥£¥ó¥É¥¦¤Ë¥Þ¥¦¥¹¥«¡¼¥½¥ë¤¬¾è¤Ã¤Æ¤¤¤ë¤«Ä´¤Ù¤¿¤¤¡Û
¡¡ ¡Ê http://hsp.tv/play/pforum.php?mode=all&num=2382¡Ë
Shinya¤µ¤ó¤¬²óÅú¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢
¤½¤ì¤¾¤ì¡¢hwnd¤Ç¥¦¥£¥ó¥É¥¦¥Ï¥ó¥É¥ë¤ò¼èÆÀ¤·¤Æ¡¢
WindowFromPoint´Ø¿ô¤ÎÌá¤êÃͤÈÈæ³Ó¤·¤Æ¤ë¤è¤¦¤Ç¤¹(¡±¢¦¡±J|L
¤³¤ì¤Ê¤éÍý²ò¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡ù
·ë¹½¡¢¿§¡¹¤Ê¾ì½ê¤Ç»È¤ï¤ì¤Æ¤¤¤ë´Ø¿ô¤Ê¤ó¤Ç¤¹¤Í¡Á¡Ê^^´Ø¿´
|
|
2006/9/13(Wed) 07:54:24|NO.2396
>¥Ü¥¿¥ó¤Î¥¦¥£¥ó¥É¥¦¤Ø¤Î¥Ï¥ó¥É¥ë¤Î¼èÆÀ
#uselib "user32.dll"
#cfunc WindowFromPoint "WindowFromPoint" int,int
#define max 8
repeat max
button "¥Ü¥¿¥ó"+cnt,*main
hbtn(cnt)=objinfo(stat,2)
loop
*main
redraw 0
repeat max
if hbtn(cnt)=WindowFromPoint(ginfo(0),ginfo(1)) {
color 255,255,255 :boxf
pos 100,0
color 0,0,0 :mes ""+cnt+" = "+hbtn(cnt)
}
loop
wait 1
redraw 1
goto *main
¡¦¡¦¡¦¤Ê¤ó¤Æ¤Î¤Ï¡¢¤É¤¦¤Ç¤·¤ç¤¦¡©
|
|
2006/9/13(Wed) 10:39:45|NO.2397
¾¯¤·¤À¤±½¤Àµ¡£
#uselib "user32.dll"
#cfunc WindowFromPoint "WindowFromPoint" int,int
#define max 8
y=0,5,2,7,4,1,6,3
repeat max
pos 0,y(cnt)*25 :button "¥Ü¥¿¥ó"+cnt,*main
hbtn(cnt)=stat
loop
*main
redraw 0
repeat max
if objinfo(hbtn(cnt),2)=WindowFromPoint(ginfo(0),ginfo(1)) {
color 255,255,255 :boxf
color 0,0,0 :pos 100,0
mes ""+hbtn(cnt)+" = "+objinfo(hbtn(cnt),2)
break
}
loop
wait 4
redraw 1
goto *main
|
|
2006/9/13(Wed) 14:02:36|NO.2398
osakana¤µ¤ó¡¢¤¹¤¤¤Þ¤»¤ó¤Ã(^^;
¥Ò¥ó¥ÈÂô»³Ìã¤Ã¤Á¤ã¤¤¤Þ¤·¤Æ£÷£÷
1. #cfunc WindowFromPoint "WindowFromPoint" int,int
2. ¥¦¥£¥ó¥É¥¦¥ª¥Ö¥¸¥§¥¯¥È¥Ï¥ó¥É¥ë¤Î¼èÆÀ ( objinfo )
¤È¤¤¤¦¤³¤È¤Ç¡¢¤ª¤«¤²¤µ¤Þ¤Ç¡¢´°À®¤·¤Þ¤·¤¿(^^/
#include "mod_customizebutton.hsp"
#uselib "user32.dll"
#cfunc WindowFromPoint "WindowFromPoint" int,int
color :boxf
color 0xFF,0xFF,0xFF
font msmincho,16
pos 0,32
mes "MessageButton with HSP\n"
mes "<body bgcolor=#000000 text=#FFFFFF link=#B00000 alink=#FF0000 vlink=#800000>"
pos 0,120
mes "Function [ WindowFromPoint ]"
mes "HWND WindowFromPoint( POINT point );"
mes "Return Value"
dim id,3 // Object ID
dim vlink,3 // vlink ON/OFF
obj=0
objmode 2
color 0xB0
// Object 1
objsize 120,16 :pos 88,120 :button gosub "WindowFromPoint",*vlink1
id(0)=stat :custombutton id(0),-2,-1,0,48
// Object 2
objsize 40,16 :pos 224,136 :button gosub "point",*vlink2
id(1)=stat :custombutton id(1),-2,-1,0,48
// Object 3
objsize 96,16 :pos 0,152 :button gosub "Return Value",*vlink3
id(2)=stat :custombutton id(2),-2,-1,0,48
// MAIN LOOP
repeat
switch ( WindowFromPoint(ginfo(0),ginfo(1)) )
case objinfo(id(0),2)
gosub *alink1
swbreak
case objinfo(id(1),2)
gosub *alink2
swbreak
case objinfo(id(2),2)
gosub *alink3
swbreak
default
gosub *clear
swbreak
swend
await 10
loop
/* 1st SubRoutine */
// vlink
*vlink1
obj=0
gosub *click
dialog "The WindowFromPoint function retrieves a handle to the window that contains the specified point."
return
*vlink2
obj=1
gosub *click
dialog "[in] Specifies a POINT structure that defines the point to be checked."
return
*vlink3
obj=2
gosub *click
dialog "The return value is a handle to the window that contains the point. \nIf no window exists at the given point, the return value is NULL. "
return
// alink
*alink1
obj=0
gosub *hover
return
*alink2
obj=1
gosub *hover
return
*alink3
obj=2
gosub *hover
return
*clear
repeat 3
if vlink(cnt) :color 0x80 :else :color 0xB0
custombutton id(cnt),-2,-1,0,48
loop
return
/* 2nd SubRoutine */
*click
color 0x80
custombutton id(obj),-2,-1,0,48
vlink(obj)=1
return
*hover
color 0xFF
custombutton id(obj),-2,-1,0,48
return
¤Á¤ã¤ó¤È¡¢link,alink,vlink ¤¬ºî¤ì¤Æ¤¤¤ë¤È»×¤ï¤ì¤Þ¤·¡ù
¤È¤¯¤Ë¡¢osakana¤µ¤ó¡¢naznyark¤µ¤ó¤Ë¤Ï¡¢Âç´¶¼Õ¤Ç¤¹m(_ _)m
#
¤³¤ì¤Ë¡¢¤â¤¦¾¯¤·µ¡Ç½¤òÉÕ¤±¤Æ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹£ö
¤â¤¦¤Á¤ç¤Ã¤È´èÄ¥¤ê¤Þ¤Õ¡Á¡Áp¡±£ö¡±q
| |
|
2006/9/13(Wed) 14:20:56|NO.2399
¤¢¤Ã¢ö
ÄɲäǤ¹(^^
³«È¯wiki ¤Çnaznyark¤µ¤óÄ󶡤Îmod_customizebutton.hsp¤¬
¤¢¤Þ¤ê¤Ë¿µ¡Ç½¤À¤Ã¤¿¤Î¤Ç¡¢¤¤¤¯¤é¤Ç¤âÁõ¾þ¤Ç¤¤ë¤³¤È¤Ëµ¤¤¬ÉÕ¤¤Þ¤·¤¿¡£
alink»þ¤Ë¡¢ÇØ·Ê¿§¤òÊѹ¹¤·¤Æ¤ß¤¿¤«¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
( javascript ¤Î hover ¤ß¤¿¤¤¤Ê)¡¡¤¹¤°¤Ë½ÐÍè¤Á¤ã¤¤¤Þ¤·¤¿¡ù
¤½¤ì¤«¤é¡¢ÆɤßÊÖ¤·¤Æµ¤ÉÕ¤¤¤¿¤ó¤Ç¤¹¤¬¡¢
¡ãpre¡ä-¡ã/pre¡ä´Ö¤Î¥¹¥¯¥ê¥×¥È¤¬°Õ³°¤ËŤ¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤Þ¤·¤¿¡£
¤¹¤¤¤Þ¤»¤ó(--;
¥µ¥Ö¥ë¡¼¥Á¥ó *hover ¤ò¤³¤ì¤ËÊѤ¨¤ì¤Ð¡¢Á°½Ò¤·¤¿¤Î¤¬¤Ç¤¤Þ¤¹¤Ã
*hover
color 0xFF
custombutton id(obj),-2,0x00FF00,0,48
return
¡À¡±¢¦¡±¡¿¡¡¤¹¤´¡Á¤¤¡ª¡¡¡À¡±¢¦¡±¡¿
|
|
2006/9/13(Wed) 15:51:15|NO.2400
¹¹¤ËÄɵ¤Ç¤¹¡ù
¤³¤Î¤è¤¦¤Ë Win32API ¤¬¼«Í³¤Ë»È¤¨¤ë¤È¤¤¤¦¤³¤È¤¬Ê¬¤«¤ê¤Þ¤·¤¿¤Î¤Ç¡¢
HSP ¤Î PSET ¤òºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
RGB¥Þ¥¯¥í¤¬¤Ê¤¤¤Î¤Ç¡¢#defcfunc ¤Çºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡ù¥ß
#module "macro_RGB"
#defcfunc RGB int v1,int v2, int v3
return (v1+(v2<<8)+(v3<<16))
#global
#uselib "gdi32.dll"
#func global SetPixelV "SetPixelV" int,int,int,int
// ÅÀ¤ÇÀþ¤òÉÁ¤¤¤Æ¤ß¤ë
redraw 0
repeat 100
SetPixelV hdc,cnt,10,RGB(255,0,0)
SetPixelV hdc,cnt,20,RGB(0,255,0)
SetPixelV hdc,cnt,30,RGB(0,0,255)
loop
redraw 1
stop
¤³¤ì¤ò¸«¤ë¤È¡¢Windows¥×¥í¥°¥é¥ß¥ó¥°¤ò¤·¤Æ¤¤¤ë°Ê¾å¡¢
¡Ö¸À¸ì¡×¤¬²¿¤«¤È¤¤¤¦¤Î¤Ï¡¢Á´¤¯¤È¸À¤Ã¤Æ¤¤¤¤Äø¡¢
´Ø·¸¤¬¤Ê¤¤¤³¤È¤À¤È¤¤¤¦¤Î¤¬Íý²ò¤Ç¤¤Þ¤¹¡Ê¡°¡°
ÀΡ¢¡ÖHSP¥×¥í¥°¥é¥Þ¤Ï¡¢¥×¥í¥°¥é¥Þ¤Ê¤Î¤«¡©¡×¤È¤¤¤¦Ê¸¾Ï¤òÆɤó¤À¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢
¤½¤â¤½¤â´ð½à¤¬¸À¸ì¤ËÃÖ¤«¤ì¤ë¤Ù¤¤Ç¤Ï¤Ê¤¤¤è¤¦¤Êµ¤¤¬¤·¤Æ¤¤Þ¤¹¤Í£÷£÷
|
|
2006/9/13(Wed) 19:15:19|NO.2405
¤´¤á¤ó¤Ê¤µ¤¤¡Ê¡°¡°¡¨
¹¹¤Ë¹¹¤ËÄɵ¤Ç¤¹¡ù
¥Þ¥¯¥í¤Ï¡¢¥Þ¥¯¥í¤È¤·¤Æµ½Ò¤¹¤Ù¤¤Ç¤·¤¿¡£
¤ï¤¶¤ï¤¶´Ø¿ô¤Ë¤¹¤ë¤³¤È¤Ê¤«¤Ã¤¿¤Ç¤¹¡£
#define global ctype RGB(%1,%2,%3) (%1+(%2<<8)+(%3<<16))
#uselib "gdi32.dll"
#func global SetPixelV "SetPixelV" int,int,int,int
redraw 0
repeat 320
SetPixelV hdc,cnt*2,10,RGB(255,0,0)
SetPixelV hdc,cnt*2,20,RGB(0,255,0)
SetPixelV hdc,cnt*2,30,RGB(0,0,255)
loop
redraw 1
stop
º£Å٤ϡ¢ÅÀÀþ¤òÉÁ¤¤¤Æ¤ß¤Þ¤·¤¿¤Ã¡á¡±w¡±¡á
|
|
2006/9/14(Thu) 02:57:52|NO.2410
> ¤È¤¤¤¦¤³¤È¤Ç¡¢¤ª¤«¤²¤µ¤Þ¤Ç¡¢´°À®¤·¤Þ¤·¤¿(^^/
¤ª¤á¤Ç¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£¤Ç¤¹¤¬Ãí°ÕÅÀ¤ò°ì¤Ä¡£
custombutton ¤Ï(ºÆ)ÀßÄꤹ¤ë¤¿¤Ó¤Ë¥Ü¥¿¥ó¤ÎºÆÉÁ²è¤ò¤¹¤ë¾å¤Ë¡¢
Æ©²á½èÍý¤ÎÉÁ²è¤ÏÄ̾ï¤ÎÉÁ²è¤è¤ê¤â½èÍý¤È¤·¤Æ¤Ï½Å¤¤¤Î¤Ç
¥ë¡¼¥×¤ÎÅÙ¤ËËè²ó custombutton ¤ÇÀßÄê¤ò¹Ô¤¦¤Î¤ÏÈò¤±¤ë¤Ù¤¤Ç¤¹¡£
(ÀßÄêÆâÍƤÎÊѹ¹¤Ê¤·¤ÎºÆÀßÄê¤Ç¤âºÆÉÁ²è¤·¤Æ¤·¤Þ¤¦¥â¥¸¥å¡¼¥ë¤Î»ÅÍͤ¬°¤¤¤Î¤Ç¤¹¤¬¡¦¡¦¡¦¤¹¤¤¤Þ¤»¤ó¡£)
Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤ËÀßÄê¤òÊѹ¹¤¹¤ëɬÍפ¬¤¢¤ë¤È¤¤Î¤ß
custombutton ¤Ç¤ÎºÆÀßÄê¤ò¹Ô¤¦¤è¤¦¤Ë¤·¤¿¤Û¤¦¤¬Îɤ¤¤Ç¤¹¡£
old=-1 : cur=-1
// MAIN LOOP
repeat
hwm=WindowFromPoint(ginfo(0),ginfo(1))
cur=-1
repeat 3
if hwm=objinfo(id(cnt), 2) : cur=cnt : break
loop
if old!=cur {
switch cur
case 0
gosub *alink1
swbreak
case 1
gosub *alink2
swbreak
case 2
gosub *alink3
swbreak
default
gosub *clear
swbreak
swend
old=cur
}
await 10
loop
|
|
2006/9/14(Thu) 03:01:16|NO.2411
> Íߤ·¤¤Ì¿Îᡦ´Ø¿ô
> ¡¡¡¡¢
> ¸ºß¤¹¤ëÌ¿Îᡦ´Ø¿ô
> ¡¡¡¡¢
> HSP¤Ç»ÈÍѲÄǽ¤ÊÌ¿Îᡦ´Ø¿ô
> ¤È¤¤¤¦Î®¤ì¡¢¡Êº£²ó¤Ç¤¤¤¦¡¢alink ¢ª WindowFromPoint)
> ¤È¤¤¤¦¤Î¤ò¤É¤¦¤¤¤¦É÷¤Ë¼èÆÀ¤µ¤ì¤¿¤Î¤Ç¤·¤ç¤¦¤«¡©
> ¤Þ¤¿¤Ï¡¢¤É¤¦¤¹¤ì¤Ð¼èÆÀ¤Ç¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
·ë¶É¤¦¤Þ¤¯¤Þ¤È¤Þ¤é¤Ê¤«¤Ã¤¿¡£¥á¥âÄøÅÙ¤Îʸ¾Ï¡£
¤Þ¤º¤ÏÍߤ·¤¤Ì¿Îá¤Îµ¡Ç½¤½¤Î¤â¤Î¡¢¤ª¤è¤Ó¡¢¤½¤Îµ¡Ç½¤ËľÀÜ´Ø·¸¤·¤Æ¤¤¤ë¸ÀÍդǸ¡º÷¡£
(alink¡¢¥ê¥ó¥¯¡¢¥¯¥ê¥Ã¥¯¡¢¥¸¥ã¥ó¥×¡¢°ÜÆ°¤Ê¤É)
¸«¤Ä¤«¤é¤Ê¤±¤ì¤Ð¾¤ÎÌ¿Îá¤òÁȤ߹ç¤ï¤»¤ÆÍߤ·¤¤Ì¿Îá¤ò¼«Ê¬¤Çºî¤ë¤³¤È¤ò¹Í¤¨¤ë¡£
¤Þ¤ºÌ¿Îá¤ÎÆ°ºî¤ò¹Í¤¨¤ë¡£
(°Æ 1)
¥ê¥ó¥¯¤ÎÃÖ¤«¤ì¤¿¾ì½ê¤ÎºÂɸ¤È¥Þ¥¦¥¹¥«¡¼¥½¥ë¤ÎºÂɸ¤òÈæ¤Ù¤Æ¤½¤Î·ë²Ì¤Ë±þ¤¸¤Æ½èÍý¤ò¤¹¤ë¡£
(°Æ 2)
(º£²ó¤Ï¥ê¥ó¥¯¤Ë¥Ü¥¿¥ó¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢)¥Ü¥¿¥ó¤Î¾å¤Ë¥Þ¥¦¥¹¥«¡¼¥¾¥ë¤¬¤¢¤ë¤«¤òÄ´¤Ù¤Æ
¤½¤Î·ë²Ì¤Ë±þ¤¸¤Æ½èÍý¤ò¤¹¤ë¡£
¤½¤ÎÆ°ºî¤ËɬÍפÊÌ¿Îá¤ò´Ø·¸¤¹¤ë¸ÀÍդǸ¡º÷¤·¤Æõ¤¹¡£
(°Æ 1) ¤Î¸¡º÷¥¡¼¥ï¡¼¥É
¥ê¥ó¥¯¤ÎÃÖ¤«¤ì¤¿¾ì½ê¤Ï¶ë·Á¤ÎºÂɸ¤Çɽ¸½¤Ç¤¤ë¡£
(¶ë·Á¡¢ÅÀ¡¢ºÂɸ¤Ê¤É)
(°Æ 2) ¤Î¸¡º÷¥¡¼¥ï¡¼¥É
¥Ü¥¿¥ó¤Ï¥³¥ó¥È¥í¡¼¥ë¡¢¤Ä¤Þ¤ê¥¦¥£¥ó¥É¥¦¡£
(¥Ü¥¿¥ó¡¢¥³¥ó¥È¥í¡¼¥ë¡¢¥¦¥£¥ó¥É¥¦¡¢¥Þ¥¦¥¹¥«¡¼¥½¥ë¤Ê¤É)
˾¤ß¤É¤¦¤ê¤ÎÌ¿Î᤬¸«¤Ä¤«¤é¤Ê¤±¤ì¤ÐÊ̤Τä¤êÊý¤ò¹Í¤¨¤¿¤ê¡¢
Ì¿Îá¤òºî¤ë¤¿¤á¤ÎÌ¿Îá¤òºî¤ë¤¿¤á¤ÎÌ¿Îá¤òõ¤¹¡¦¡¦¡¦¤È·«¤êÊÖ¤¹¡£
¥×¥í¥°¥é¥à¾å¤Î´ðËÜŪ¤ÊÍ×ÁÇ(¶ë·Á¡¢ÅÀ¡¢ºÂɸ)¤ä¥¦¥£¥ó¥É¥¦¥º¤Î¥·¥¹¥Æ¥à¤Ë´Ø¤ï¤ëÍ×ÁÇ
(¥Ü¥¿¥ó¡¢¥³¥ó¥È¥í¡¼¥ë¡¢¥¦¥£¥ó¥É¥¦¡¢¥Þ¥¦¥¹¥«¡¼¥½¥ë)¤Ê¤É¤Ë¤Ä¤¤¤Æ¤Ï
web Æâ¤òÇùÁ³¤È¸¡º÷¤¹¤ë¤è¤ê¤Ïõ¤¹¾ì½ê¤ò¸ÂÄꤷ¤¿¤Û¤¦¤¬·ë²ÌŪ¤ËÁ᤯ËܼÁŪ¤Ê¾ðÊó¤òÆÀ¤ä¤¹¤¤¡£
(»ä¤Ï¾åµ¤Î¤è¤¦¤Ê¾ì¹ç HSP¤Î¥É¥¥å¥á¥ó¥È¡¦¥Ø¥ë¥× ¢ª MSDN ¤Î½ç¤Çõ¤¹)
MSDN Æâ¤ÇɬÍפʾðÊó¤ò¸«¤Ä¤±¤ë¤Î¤Ï´·¤ì¤¬É¬Í×(?)¡£»ä¤Î MSDN ¤Î»È¤¤Êý¤Ï¼¡¤Î¤è¤¦¤Ê¤â¤Î¡£
¡¦MSDN(±Ñ¸ìÈÇ)¤ò»È¤¦¡£
¡¦Æ°ºî¤Ç¤Ï¤Ê¤¯Í×ÁǤò¼´¤Ëõ¤¹¡£(Î㤨¤Ð¡Ö¥¯¥ê¥Ã¥¯(click)¡×¤Ç¤Ï¤Ê¤¯¡Ö¥Þ¥¦¥¹(mouse)¡×¤Çõ¤¹¤Ê¤É)
¡¦¤Þ¤º xxxx , xxxxs ¤È¤¤¤Ã¤¿¥¡¼¥ï¡¼¥É¤Ç¸¡º÷(xxxx ¤ÏÄ´¤Ù¤¿¤¤Í×ÁÇ)
¡¦xxxx reference (Í×ÁǤ˴ط¸¤¹¤ë´Ø¿ô¤ä¥á¥Ã¥»¡¼¥¸¤Î³µÎ¬¤Î¥Ú¡¼¥¸)
xxxx overview , about xxxx (Í×ÁǤ˴ؤ¹¤ëÀâÌÀ¤Î¥Ú¡¼¥¸)
¤È¤¤¤Ã¤¿¥Ú¡¼¥¸¤ò¸«¤Ä¤±¤ë¡£
| |
|
2006/9/14(Thu) 04:18:34|NO.2412
>¥ë¡¼¥×¤ÎÅÙ¤ËËè²ó custombutton ¤ÇÀßÄê¤ò¹Ô¤¦¤Î¤ÏÈò¤±¤ë¤Ù¤
³Î¤«¤Ë¤ª¤Ã¤·¤ã¤ëÄ̤ê¤Ç¤¹¤Ã¡¢´ðËܤǤ·¤¿¡ù¡°¡°¡ù
¤³¤ì¤Ï¡¢º£²ó¤Ë¸Â¤é¤º¡¢½ÐÍè¤ë¸Â¤êºÆÉÁ²è¤òÈò¤±¤ë¤Î¤¬¥Ù¥¿¡¼¤Ç¤¹¤Í(^¡þ^
ÄûÀµ¥¹¥¯¥ê¥×¥È¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
>¥á¥âÄøÅÙ¤Îʸ¾Ï¡£
¤¤¤¨¤¤¤¨¡¢¤½¤ì¤À¤±¤Ç¤â½¼Ê¬»²¹Í¤Ë¤Ê¤ê¤Þ¤¹¡°¡°
>´Ø·¸¤·¤Æ¤¤¤ë¸ÀÍդǸ¡º÷
¤È¤Ë¤«¤¯¥Þ¥Ë¥å¥¢¥ë¡¦²áµî¥í¥°¡¦¤°¤¥¤°¤ë¡¡¤Ã¤Æ¤æ¡Á¤Î¤Ï¡¢°ìÈÖÂçÀڤǤ¹¤è¤Í¢ö
>Ì¿Îá¤òºî¤ë¤¿¤á¤ÎÌ¿Îá¤òºî¤ë¤¿¤á¤ÎÌ¿Îá¤òõ¤¹
¤³¤ì¤Ï·ë¹½¥Ï¡¼¥É¤Ç¤¹¤Í¡£
¥¢¥ë¥´¥ê¥º¥à¤¬¤Ï¤Ã¤¤êÍý²ò½ÐÍè¤Æ¤¤¤ì¤Ð¡¢²Äǽ¤«¤â¤Ç¤¹¡£
>MSDN(±Ñ¸ìÈÇ)¤ò»È¤¦¡£
¤Þ¤¸¤Ç¤¹¤«¡Ê¾Ð¡Ë
¤¢¤¿¤·¤âÆüËܸì¤Ç¾å¼ê¤¯¸«¤Ä¤±¤é¤ì¤Ê¤«¤Ã¤¿¤ó¤Ç¡¢±Ñ¸ìÈǤǻ¤Æ¤ß¤¿¤ó¤Ç¤¹¡£
¾åµ¥¹¥ì¤Î¥¹¥¯¥ê¥×¥È¤Ç¡¢¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ½Ð¤Æ¤¯¤ë¥À¥¤¥¢¥í¥°¤Ç¤Ï¡¢
±Ñ¸ì¤Î²òÀâ¤Î°ìÉô¤òºÜ¤»¤Æ¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤½¤³¤ÇGET¤·¤Þ¤·¤¿¡°¡°¡¨
¸«¤Æ¤ß¤ë¤È¡¢±Ñ¸ì¤ÎÊý¤¬¹àÌܤ¬Â¿¤¤¤è¤¦¤Êµ¤¤¬¤·¤Þ¤¹¡Ê¡©¡Ë
¤ä¤Ã¤Ñ¤ê±Ñ¸ìÈǤÎÊý¤¬¥á¥ê¥Ã¥È¤¬¤¢¤ë¤ó¤Ç¤¹¤Í¡ù
>Æ°ºî¤Ç¤Ï¤Ê¤¯Í×ÁǤò¼´¤Ëõ¤¹¡¦¡¦¡¦
¤³¤ì½ÅÍפäݤ¤¤Ç¤¹¤Í¡ª
¤½¤â¤½¤âº£²ó¤Î¾ì¹ç¤Î¤è¤¦¤Ê¥Ü¥¿¥ó¤«¤é¡¢
¥¯¥ê¥Ã¥¯¤ÏÁÛÄê¤Ç¤¤Æ¤â¡¢¥Þ¥¦¥¹¤Ï»×¤¤¤Ä¤«¤Ê¤¤¤è¤¦¤Ç¤¹¡£
¡Ê¤½¤â¤½¤â¡ÖºÂɸ¤òÄ´¤Ù¤ë¤³¤È¤ò¤»¤º¤Ë¡¢¥ê¥ó¥¯¤òÀ½ºî¤¹¤ë¡×¤È¤¤¤¦¥Æ¡¼¥Þ¤Ç¤·¤¿¤·¡Ë
¼¡²ó¤«¤é¤Ï¡¢¤³¤ì¤ò»²¹Í¤Ë¼«Ê¬¤ÇÄ´¤Ù¤Æ¡¢¼«Ê¬¤ÇAPI¤ò»ÈÍѤ·¤Æ¤ß¤è¤¦¤È»×¤¤¤Þ¤¹¡ù
¾Ü¤·¤¤ÀâÌÀ¤ò¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹ m<(_ _)>m
#
HSP³«È¯wiki : MAKE HPI
http://hspwiki.nm.land.to/?MakeHPI
¤Ç kz3¤µ¤ó¤¬Ä󶡤µ¤ì¤Æ¤ë¥³¡¼¥É¤ò¡¢¼«Ê¬¤Î´Ä¶¤Ç¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
ȾǯÁ°¤«¤é¤ä¤Ã¤Æ¤¤¤Æ¡¢£·²ó¤ä¤Ã¤Æ£·²ó¥À¥á¤Ç¤·¤¿¡Ê¥¨¥é¡¼¤Ç¡Ë
¤Ç¤¹¤¬¡¢º£Æü¤ä¤Ã¤¿¤é¥³¥ó¥Ñ¥¤¥ë¤ËÀ®¸ù¤·¡¢hsmsgbox.hpi ¤òºîÀ®¤Ç¤¤Þ¤·¤¿¡ª
²¿¸Î¤«¤Ïʬ¤«¤ê¤Þ¤»¤ó(¡ä¡ã¡Ë¡Ê¾Ð
¤¢¤¿¤·¤Ï̤¤À¤Ë Microsoft Visual C++ 6.0 SE ¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡£¤±¤É¡¢
#regcmd "hsmsgboxinit","hsmsgbox.hpi"
#cmd msgbox $000
¢
#regcmd "_hsmsgboxinit@4","hsmsgbox.hpi"
#cmd msgbox $000
¤È¤¤¤¦Êѹ¹¤À¤±¤Ç¡¢¤Á¤ã¤ó¤È¥á¥Ã¥»¡¼¥¸¥Ü¥Ã¥¯¥¹¤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡ù
´èÄ¥¤Ã¤Æ¡¢¿§¡¹¤Ê¥×¥é¥°¥¤¥ó¤òºî¤Ã¤Æ¤ß¤¿¤¤¤È»×¤Ã¤Æ¤Þ¤¹£ö£ö
| |
|
2006/9/15(Fri) 04:01:04|NO.2434
>¤È¤¤¤¦¤³¤È¤Ç¡¢¤ª¤«¤²¤µ¤Þ¤Ç¡¢´°À®¤·¤Þ¤·¤¿(^^/
´°À®¤ª¤á¤Ç¤È¤¦¤´¤¶¤¤¤Þ¤¹¤Ç¤¹¡ª¡ª
¡ä¥Ò¥ó¥ÈÂô»³Ìã¤Ã¤Á¤ã¤¤¤Þ¤·¤Æ£÷£÷
º£»×¤¨¤Ð»ä¤Ï²£¤«¤é¤Á¤ç¤Ã¤«¤¤¤ò½Ð¤·¤Æ¤¿ÍͤÊʪ¤Ç¤¹¤Í¡£µÕ¤Ë¤¹¤¤¤Þ¤»¤ó¡Ê~o~
>MSDN(±Ñ¸ìÈÇ)¤ò»È¤¦¡£
±Ñ¸ì¡¦¡¦¡¦¡¦¤ä¤Ï¤ê¡¢Èò¤±¤Æ¤ÏÄ̤ì¤Ê¤¤¤Î¤«¡¦¡¦¡¦
>¤³¤Î¤è¤¦¤Ë Win32API ¤¬¼«Í³¤Ë»È¤¨¤ë¤È¤¤¤¦¤³¤È¤¬Ê¬¤«¤ê¤Þ¤·¤¿¤Î¤Ç¡¢
>HSP ¤Î PSET ¤òºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
¤È¸À¤¦¤³¤È¤Ç¿§¡¹Î®ÍѤ·¤Æ´Êñ¤Ë»þ´Ö¤ò·×¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
1 API + RGB(module)
2 API + RGB(macro)
3 color + pset ¤Þ¤È¤á¤Æ
4 color + pset °ì¿§¤º¤Ä
¤Á¤ç¤Ã¤È¤À¤±Ä¹¤¤¤Ç¤¹¡£¡£¡£
#define global ctype RGB_(%1,%2,%3) (%1+(%2<<8)+(%3<<16))
#module "macro_RGB"
#defcfunc RGB int v1,int v2, int v3
return (v1+(v2<<8)+(v3<<16))
#global
#uselib "gdi32.dll"
#func global SetPixelV "SetPixelV" int,int,int,int
max=1000
max2=640
//----------------
redraw 0
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat max
repeat max2
SetPixelV hdc,cnt,10,RGB(255,0,0)
SetPixelV hdc,cnt,20,RGB(0,255,0)
SetPixelV hdc,cnt,30,RGB(0,0,255)
loop
loop
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
pos 0,30 :mes strf("£Á£Ð£É¡Ü£Ò£Ç£Â¥â¥¸¥å¡¼¥ë=%d",time2-time1)
redraw 1
//----------------
redraw 0
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat max
repeat max2
SetPixelV hdc,cnt,50,RGB_(255,0,0)
SetPixelV hdc,cnt,60,RGB_(0,255,0)
SetPixelV hdc,cnt,70,RGB_(0,0,255)
loop
loop
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
pos 0,70 :mes strf("£Á£Ð£É¡Ü£Ò£Ç£Â¥Þ¥¯¥í=%d",time2-time1)
redraw 1
//----------------
redraw 0
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat max
repeat max2
color 255,0,0 :pset cnt,90
color 0,255,0 :pset cnt,100
color 0,0,255 :pset cnt,110
loop
loop
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
pos 0,110 :mes strf("ɸ½àÌ¿Îá°ì³ç=%d",time2-time1)
redraw 1
//----------------
redraw 0
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat max
color 255,0,0 :repeat max2 :pset cnt,130 :loop
color 0,255,0 :repeat max2 :pset cnt,140 :loop
color 0,0,255 :repeat max2 :pset cnt,150 :loop
loop
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
pos 0,150 :mes strf("ɸ½àÌ¿Îáʬ³ä=%d",time2-time1)
redraw 1
//----------------
stop
°ì½Ö¡ÖAPI + RGB(macro)¡×¤¬ºÇ®¤«¤È»×¤¤¤Þ¤·¤¿¤¬ºÇ¸å¤Îɸ½àÌ¿Î᤬°ìÈÖ¥À¥ó¥È¥Ä¤Ç¤·¤¿¡£
»î¤·¤Æ¤Æʬ¤«¤Ã¤¿¤ó¤Ç¤¹¤¬ redraw ¤Ã¤Æ API¤Ë¤Ï¸ú²Ì¤¬Ìµ¤¤¤ß¤¿¤¤¤Ç¤¹¡£
¤¢¡¦¡¦¤Þ¤À vram + poke ¤¬¤¢¤ê¤Þ¤·¤¿¤Í¡¦¡¦¡¦¤Þ¤¡¤¤¤Ã¤«¡¦¡¦¡¦¡£
| |
|
2006/9/15(Fri) 05:20:06|NO.2436
>µÕ¤Ë¤¹¤¤¤Þ¤»¤ó¡Ê~o~
¤½¤ó¤Ê¤³¤È̵¤¤¤Ç¤¹¤è¡ª¡©¡¡¤Á¤ç¤Ã¤È¿¤á¤Î¥Ò¥ó¥È失¤¿¤Ê¤Ã¤Æ´¶¤¸¤Ç¡ù
>±Ñ¸ì¡¦¡¦¡¦¡¦
¤Ç¤â´Ø¿ô¤â±Ñ¸ì¤ß¤¿¤¤¤Ê¤â¤ó¤Ç¤¹¤·¤Í¡Ê¡°¡°
¥¦¥£¥ó¥É¥¦¤È¤«¥Ý¥¤¥ó¥¿¤È¤«¥Þ¥¦¥¹¤È¤«¥¤¥ó¥¹¥¿¥ó¥¹¤È¤«¥Ï¥ó¥É¥ë¤È¤«¡¢
¤ß¤ó¤Ê¥¨¡Á¥´¤¸¤ã¤Ê¤¤¤Ç¤¹¤«¡Á¢ö
>´Êñ¤Ë»þ´Ö¤ò·×¤Ã¤Æ¤ß¤Þ¤·¤¿
¤ªÈè¤ìÍͤǤ¹¡Ê¡±£ö¡±¡´
·ë²Ì¤Ï¼Â¹Ô¤¹¤ë¤Þ¤Ç¡¢Á´¤¯ÁÛÁü¤Ç¤¤Ê¤«¤Ã¤¿¤Ç¤¹¡£
£±¤è¤ê£²¤¬¡¢£³¤è¤ê£´¤¬Áᤤ¤Î¤Ïʬ¤«¤ê¤Þ¤¹¤Í£÷£÷
£²¤È£´¤ÏƱ¤¸¤¯¤é¤¤¤À¤È»×¤Ã¤Æ¤¿¤ó¤Ç¤¹¤±¤É¡¦¡¦¡¦¡¦Á´Á³¤Á¤¬¤¦¤¥¡Ê¡±¢¢¡±¡¨
>redraw ¤Ã¤Æ API¤Ë¤Ï¸ú²Ì¤¬Ìµ¤¤¤ß¤¿¤¤¤Ç¤¹¡£
¤³¤ì¤Ï¤¢¤¿¤·¤â»×¤¤¤Þ¤·¤¿¡£
¤Ã¤Æ¤¤¤¦¤Î¤â¡¢ redraw 1 ¤ò¼Â¹Ô¸å¤ËÆþ¤ì¤Ê¤¤¤È¡¢ÅÀ¤¬É½¼¨¤µ¤ì¤Ê¤¤¤ó¤Ç¤¹¡Ê¡°¡°¡©
¤¢¤¿¤·¤ÎÃμ±¤Ç»×¤¤¤Ä¤¯¤Î¤Ï¡¢
¡ÖEndPaint´Ø¿ô¤¬É¬Íס©¡×¤È¤«¤°¤é¤¤¤Ç¡¢Á´¤¯¤â¤Ã¤ÆÆæ¤Á¤ã¤ó¤Ç¤¹¡Ê¡ä¡ã
¤Ê¤ó¤Ç¤Ê¤Î¤Ç¤·¤ç¤¦¤«¤Í¡©¤³¤ì¤¬Á´ÂΤμ¹Ô®Å٤˴ط¸¤¢¤ë¤È»×¤¦¤ó¤Ç¤¹¤¬¡¦¡¦
#
WindowsXP 224MB-RAM ¤Ç¤Ï¡¢
¡4562
¢2969
£3140
¤1641
¤È¤Ê¤ê¤Þ¤·¤¿¡£¡Ê£³²ó¤ÎÊ¿¶Ñ¤Ç¤¹¡Ë
°µÅÝŪ¤Ç¤¹¤Í¡Ê¾Ð¡Ë
¤½¤ì¤«¤é¡¢Æ±¤¸´Ä¶¤Ç¡¢redraw 0 ¤ò¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Þ¤·¤¿¡£
¡Ê redraw 1 ¤Ï¡¢API»ÈÍÑÈǤÎɽ¼¨¤ËɬÍפʤΤǡË
¡4562
¢2844
£14594
¤12156
¤È¤Ê¤ê¤Þ¤·¤¿¡£¡Ê£³²ó¤ÎÊ¿¶Ñ¤Ç¤¹¡Ë
¶¼°Ò¤Ç¤·¡Ê¡°¡°£ö
¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤â¤¦¾¯¤·Ä´¤Ù¤Æ¤ß¤Þ¤¹¡Ê¡°¡°
¤â¤·Ê¬¤«¤ëÊý¤¬¤¤¤é¤Ã¤·¤ã¤¤¤Þ¤·¤¿¤é¡¢µ¹¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹ m<(_ _)>m
#
³«È¯wiki¤Ç¥×¥é¥°¥¤¥ó³«È¯¤Î¥µ¥ó¥×¥ë¤ò¿¿»÷¤Ç¤¤¿¤Î¤Ç¡¢
¼«Í³¤Ë¥á¥Ã¥»¡¼¥¸¥Ü¥Ã¥¯¥¹¤òºî¤ì¤ë¤è¤¦¤Ë¡¢MessageBox´Ø¿ô¤ÈƱ¤¸¤Ë¤·¤Æ¤ß¤¿¤¤¤Î¤Ç¤¹¤¬¡¢
void msgbox( void )
{
HWND hwnd;
int iprm;
char *sprm, *text, *title;
/* Âè°ì¥Ñ¥é¥á¡¼¥¿¼èÆÀ */
hwnd = (HWND)code_getdi( 0 );
/* ÂèÆó¥Ñ¥é¥á¡¼¥¿¼èÆÀ */
sprm = code_getds( "" );
text = hspmalloc( lstrlen( sprm ) + 1 );
lstrcpy( text, sprm );
/* Âè»°¥Ñ¥é¥á¡¼¥¿¼èÆÀ */
sprm = code_getds( "" );
title = hspmalloc( lstrlen( sprm ) + 1);
lstrcpy( title, sprm );
/* Âè»Í¥Ñ¥é¥á¡¼¥¿¼èÆÀ */
iprm = code_getdi( 0 );
stat = MessageBox( hwnd, text, title, iprm );
return;
}
Âè°ì¥Ñ¥é¥á¡¼¥¿¤Î¼èÆÀÉôʬ¤¬¡¢¤³¤ì¤Ç¤¤¤¤¤Î¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£
°ì±þ¡¢DLL¤Ë¤·¤Æ¡¢HSP¤«¤éÂè°ì¥Ñ¥é¥á¡¼¥¿¤Ë
hWnd ¤òÆþ¤ì¤ë¤È¡¡¡¢¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤ËÀ©¸æ¤ò°Ü¤¹¤³¤È¤¬½ÐÍè¤Ê¤¯¤Ê¤ê¡¢
NULL(0)¤òÆþ¤ì¤ë¤È¡¢¥á¥¤¥ó¥¦¥£¥ó¥É¥¦¤ËÀ©¸æ¤òÌ᤹¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¡Ê¥á¥Ã¥»¡¼¥¸¥Ü¥Ã¥¯¥¹¤ò½Ð¤·¤¿¤Þ¤Þ¤Ç¡¦¡¦¡¦¤Ç¤¹¡Ë
¤Ê¤Î¤Ç¡¢¼Â¸½½ÐÍè¤Æ¤¤¤ë¤è¤¦¤Ê¤Î¤Ç¤¹¤¬¡¢Àµ¤·¤¯¼Â¹Ô¤Ç¤¤Æ¤¤¤ë¤Î¤«É԰¤ʤΤǡ¢
¤¼¤Ò¡¢¥¢¥É¥Ð¥¤¥¹¡¦½õ¸À¤ò失¤Þ¤»¤ó¤Ç¤·¤ç¤¦¤«¡Ê¡°¡°¡©¡©
| |
|
2006/9/15(Fri) 06:14:51|NO.2437
>Âè°ì¥Ñ¥é¥á¡¼¥¿¤Î¼èÆÀÉôʬ¤¬¡¢¤³¤ì¤Ç¤¤¤¤¤Î¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£
»ä¤â¾Ü¤·¤¯¤Ê¤¤¤Ç¤¹¤¬¡¢MessageBox ¤Ë´Ø¤·¤Æ¤ÎÆ°ºî¤Ï
¹ç¤Ã¤Æ¤¤¤ë¤Î¤Ç¤Ï¤Ê¤«¤í¤¦¤«¡©¤È»×¤¤¤Þ¤¹¡£
¤¿¤·¤«NULL¤Ï¥ª¡¼¥Ê¡¼¥¦¥£¥ó¥É¥¦¤Î̵¤¤¥á¥Ã¥»¡¼¥¸¥Ü¥Ã¥¯¥¹¤À¤Ã¤¿¤Ï¤º¡¢
¤Ê¤ó¤«¤Þ¤¿Åª¤¬³°¤ì¤Æ¤½¤¦¤Ê¤Î¤Ç¤³¤ÎÊդˤ·¤È¤¤Þ¤¹¡£
|
|
2006/9/15(Fri) 07:03:32|NO.2438
>Ū¤¬³°¤ì¤Æ¤½¤¦¤Ê¤Î¤Ç¤³¤ÎÊÕ¤Ë
¹½¤ï¤Ê¤¤¤Ç¤¹¤è¡Á¡£¾ðÊó¤¬Ìµ¤¤¤è¤ê¡¢¤¼¤ó¤¼¤ó½õ¤«¤ê¤Þ¤¹¤Ã¡Ê¡°¡°
¹Í¤¨¤Æ失¤ë¤À¤±¤Ç¡¢´ò¤·¤¤¤Ç¤¹m(_ _)m
>·×¤Ã¤Æ¤ß¤Þ¤·¤¿
¤½¡Á¤¤¤¨¤Ð¡¢osakana¤µ¤ó¤Î´Ä¶¤Ï¤É¤ó¤Ê¤Ç¤¹¤«¤¡¡©
¶µ¤¨¤Æ¤â¤é¤¨¤ë¤È»²¹Í¤Ë¤Ê¤ê¤Þ¤¹¤Ã¡ù
¤¢¤¿¤·¤â¤Ä¤é¤ì¤Æ¡¢¿§¡¹·×¤Ã¤Æ¤ß¤Þ¤·¤¿¡Ê¾Ð¡Ë
¥ê¥¹¥È¤Ë¤Ç¤â¤·¤Æ¡¢¤Þ¤È¤á¤¿¤¤¤Ç¤¹¤Í£÷£÷
1. ̵Â̤ʥ¹¥Ú¡¼¥¹¤ò¤¿¤¯¤µ¤óÁÞÆþ
2. ̵Â̤ʥ¿¥Ö¤ò¤¿¤¯¤µ¤óÁÞÆþ
3. ̵Â̤ʥ³¥á¥ó¥È¤ò¤¿¤¯¤µ¤óÁÞÆþ
¤·¤Æ¤ß¤¿¤È¤³¤í¡¢´ðËÜÄ̤ê¤Ë¡¢Á´¤¯ÊѤï¤é¤º¤Î·ë²Ì¤Ç¤·¤¿¡£¸íº¹¤â¤Ç¤Ê¤¤¤Û¤É¤Ç¤¹¢ö
¤½¤ì¤òƧ¤Þ¤¨¤Æ¡¢¡Öif ʸ¡×¤Î½èÍý®ÅÙ¤ò·×¬¤·¤Þ¤·¤¿¡£
´Ä¶¤Ï¡¢¡Ê²¿ÅÙ¤â½ñ¤¤¤Æ¤ëµ¤¤¬¤·¤Þ¤¹¤Ã¡Ê¾Ð¡Ë
¡¡WinXP 224MB¡¡¤È¡¡WinME 255MB¡¡¤Ç¤¹¡£
// A
repeat 10000000
if x :a++ :b++ :c++ :else :a++ :b++ :c++
loop
// B
repeat 10000000
if x {
a++
b++
c++
} else {
a++
b++
c++
}
loop
// C
repeat 10000000
if x { a++ :b++ :c++ } else { a++ :b++ :c++ }
loop
¤³¤ì¤ò¡¢x=0 ¤Î¤È¤¤È¡¢ x=1 ¤Î¤È¤¤Çʬ¤±¤Æ¹Í¤¨¡¢¡Ê·×£¶¥Ñ¥¿¡¼¥ó¡Ë
¤½¤ì¤¾¤ì¤ò£³²ó·×¬¤·¤Þ¤·¤¿¡Ê·×£±£¸²ó¡Ë
A(x=1) A(x=0) B(x=1) B(x=0) C(x=1) C(x=0)
WinXP 4141 3797 4156 3813 4140 3828
WinME 8730 7960 8630 7960 8620 7910
¤µ¤é¤Ë¡¢a++ :b++ :c++ ¤ò¡¢ pos 0,0 :mes "A" ¤ÈÊѤ¨¤¿¤È¤³¤í(⤷1000000²ó¥ë¡¼¥×)
A(x=1) A(x=0) B(x=1) B(x=0) C(x=1) C(x=0)
WinXP 27078 26703 27313 26890 27047 26375
WinME 24550 24500 24600 24600 24600 24550
¤³¤¦¤Ê¤ê¤Þ¤·¤¿¡£Á´Éô¤Ç£³£¶²ó¤Î·×¬¤Ç¤¹¤¬¡¢Â¤ê¤Ê¤¤¤è¤¦¤Ç¤¹£ö
¤Þ¤À¤Ð¤é¤Ä¤¤¤Æ¤¤¤Þ¤·¤¿¡¦¡¦¡¦£ðT T£ñ
¤Ç¤¹¤¬¡¢ÃíÌܤ·¤Æ夤¿¤¤¤Î¤Ï¡¢x=0 ¤Î»þ¤Ç¤¹¡£
¤¢¤¿¤·¤¬Â¬Äꤷ¤¿¸Â¤ê¤Ç¤Ï¡¢x=0 ¤Î»þ¤ÎÊý¤¬¡¢½èÍý¤¬Áᤤ¤Î¤Ç¤¹¡ª¡ª
¤Ä¤Þ¤ê¡¢Ê¬´ô¤ÎÊФ꤬¤¢¤ëÄøÅÙʬ¤«¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
else ¸å¤Ëµ½Ò¤·¤¿Êý¤¬¤è¤¤¡¢¤È¤¤¤¦·ëÏÀ¤Ë㤷¤Þ¤¹¡ù
¡¦¡¦¡¦Ã£¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢¤Ê¤Ë¤»
¡¡¡·×¬²ó¿ô¤¬¾¯¤Ê¤¤
¢¡¡»î¤·¤¿´Ä¶¤¬¾¯¤Ê¤¤
£¡¡¥ë¡¼¥×²ó¿ô¤ò¾å¤²À©ÅÙ¤ò¾å¤²¤ë¤È¡¢»þ´Ö¤¬¤«¤«¤ê²á¤®¤ë
¤È¤¤¤¦ÌäÂ꤬¤¢¤ë¤Î¤Ç¡¢¤Ê¤«¤Ê¤«³Î¿®¤¬»ý¤Æ¤Þ¤»¤ó¤Ã¡Ê¡°¡°¡¨
¤Ç¤âÌÌÇò¤¤ÆâÍƤ¸¤ã¤Ê¤¤¤Ç¤¹¤«¡Ê¡°¡»¡°¡©¤Á¤ç¤Ã¤È¼ÂÍÑŪ¤«¤â¡ù
| |
|
2006/9/15(Fri) 09:46:30|NO.2439
¤³¤ÎÁ°¡Ê¡©¡Ë¡¢switch¥Þ¥¯¥í¤¬ÃÙ¤¤¤È¤¤¤¦Ïäò¤·¤¿¤Î¤Ç¡¢¤½¤ì¤âÄ´¤Ù¤Æ¤ß¤Þ¤·¤¿¡£
ʬ´ô¿ô¤¬¾¯¤Ê¤¤¤Î¤Ç¡¢»²¹Í¤Ë¤Ê¤ë¤«¤Ïʬ¤«¤ê¤Þ¤»¤ó¤¬¡¦¡¦¡¦
½ÐÍè¤ë¸Â¤ê¡¢¾ò·ï¤ò¹ç¤ï¤»¤Æ¤ß¤Þ¤·¤¿¤Î¤Ç¡¢
default¥Þ¥¯¥í¤Ï»ÈÍѤ»¤º¡¢case ¤ÎºÇ¸å¤Ë¤â swbreak ¤òÆþ¤ì¤Þ¤·¤¿¡ù
#define else_if else:if
#const nLoop 500000
mes "BenchMark ["+nLoop+"Loops] (ms)\n\nswitch :\nif :\nif else :"
dim timeA,10 :dim timeB,10 :dim timeC,10
repeat 10
c=0
randomize cnt
time1=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat nLoop
x=rnd(3)
// BenchMark /////////////////////
switch ( x )
case 0
c++ :swbreak
case 1
c++ :swbreak
case 2
c++ :swbreak
swend
//////////////////////////////////
loop
time2=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat nLoop
x=rnd(3)
// BenchMark /////////////////////
if x=0 :c++
if x=1 :c++
if x=2 :c++
//////////////////////////////////
loop
time3=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
repeat nLoop
x=rnd(3)
// BenchMark /////////////////////
if x=0 {
c++
} else_if x=1 {
c++
} else_if x=2 {
c++
}
//////////////////////////////////
loop
time4=gettime(4)*3600000+gettime(5)*60000+gettime(6)*1000+gettime(7)
pos 90+cnt*45,36
timeA(cnt)=time2-time1 :mes timeA(cnt)
timeB(cnt)=time3-time2 :mes timeB(cnt)
timeC(cnt)=time4-time3 :mes timeC(cnt)
loop
time1=0 :time2=0 :time3=0
repeat 10
time1+=timeA(cnt) :time2+=timeB(cnt) :time3+=timeC(cnt)
loop
pos 540,36 :mes "@AVRG "+(time1/10)+"\n@AVRG "+(time2/10)+"\n@AVRG "+(time3/10)
stop
WinXP(224MB) 735,514,415 (ms) ¤Ç¤·¤¿¡£
¤â¤·¡¢»î¤·¤Æ失¤ëÊý¤¬¤¤¤é¤Ã¤·¤ã¤¤¤Þ¤·¤¿¤é¡¢¤´Êó¹ð¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹m<(_ _)>m
¡ØÉÔÍ×Éôʬ¤Î¿¤¤Ä¹¤¤¥¹¥¯¥ê¥×¥È¤ÎÅê¹Æ¤Ï ¤´±óθ¤¯¤À¤µ¤¤¡£¡Ù
¤¹¤¤¤Þ¤»¤ó¡£
Ʊ¤¸¥¹¥¯¥ê¥×¥È¤Ç»î¤·¤Æ夤¿¤¤¤Î¤Ç¡¢¤½¤Î¤Þ¤Þµ½Ò¤·¤Þ¤·¤¿¡£
¡Ê½ÐÍè¤ë¸Â¤ê¡¢¹Ô¿ô¤Ï¸º¤é¤·¤Þ¤·¤¿¡Ë
¤â¤·¡¢ÉÔÅԹ礬¤¢¤Ã¤¿¤ê¡¢ÉÔŬÀÚ¡¦ÉÔɬÍפÀ¤È´¶¤¸¤Þ¤·¤¿¤é¡¢ºï½ü¤·¤Þ¤¹¡Ê¡ä¡ã¡¨
| |
|
2006/9/15(Fri) 20:32:17|NO.2445
> ¤ß¤ó¤Ê¥¨¡Á¥´¤¸¤ã¤Ê¤¤¤Ç¤¹¤«¡Á¢ö
ËÜÅö¤À¡Á...¤Ã¤Æ¡¢³Î¤«¤Ë¤½¤¦¤Ê¤ó¤Ç¤¹¤¬¡¢Ê¸Ë¡¤¬¡¦¡¦¡¦
¤³¤³¤Ï¥¤¥¨¥¹¡¡¥¢¥¤¡¡¥É¥¥¡¼¤È¸À¤Ã¤Æ¤ª¤³¤¦(¡¦o¡¦¡£
> 1 API + RGB(module)
> 2 API + RGB(macro)
> 3 color + pset ¤Þ¤È¤á¤Æ
> 4 color + pset °ì¿§¤º¤Ä
> ¤½¡Á¤¤¤¨¤Ð¡¢osakana¤µ¤ó¤Î´Ä¶¤Ï¤É¤ó¤Ê¤Ç¤¹¤«¤¡¡©
> ¶µ¤¨¤Æ¤â¤é¤¨¤ë¤È»²¹Í¤Ë¤Ê¤ê¤Þ¤¹¤Ã¡ù
¤Ç¤Ï¤Ç¤Ï·×¤Ã¤¿·ë²Ì¤ò½ñ¤¤Þ¤¹¡£
´Ä¶¤Ï¡§WinXP384MB RAM¤Î¥¢¥¹¥í¥ó2.19GHz
max:10000,max2:640¡¡¤Î·ë²Ì¤ò10¤Ç³ä¤Ã¤Æ¤Þ¤¹¡£
ÊÑ¿ô¤Çmax,max2
1:3245 //RGB´Ø¿ô(module-global)
1:3167 //RGB´Ø¿ô(module»ØÄê¤Ê¤·)
2:2021
3:2336
4:1110
define¤Çmax,max2
1:3115 //RGB´Ø¿ô(module-global)
1:3093 //RGB´Ø¿ô(module»ØÄê¤Ê¤·)
2:1959
3:2278
4:1090
ÂçÂÎͽÁÛÄ̤ꡢ¤³¤³¤Þ¤Ç¤Ï¤Ã¤¤ê½Ð¤ë¤È¤Ï¡£
¼¡¤Î¤Ïredraw 0¤ò¥³¥á¥ó¥È¥¢¥¦¥È¡£
ÊÑ¿ô¤Çmax,max2
1:3168 //RGB´Ø¿ô(module-global)
1:3157 //RGB´Ø¿ô(module»ØÄê¤Ê¤·)
2:1969
3:9968
4:8203
define¤Çmax,max2
1:3117 //RGB´Ø¿ô(module-global)
1:3101 //RGB´Ø¿ô(module»ØÄê¤Ê¤·)
2:1984
3:9797
4:8000
¸íº¹¤«¤Ê¡¦¡¦¡©¶²¤ë¤Ù¤·redraw¡ª
>¡Öif ʸ¡×¤Î½èÍý®ÅÙ¤ò·×¬¤·¤Þ¤·¤¿¡£
x=1
A:2875
B:2890
C:2891
x=0
A:2796
B:2734
C:2750
> pos 0,0 :mes "A" ¤ÈÊѤ¨¤¿¤È¤³¤í(⤷1000000²ó¥ë¡¼¥×)
x=1
A:5891
B:5922
C:5859
x=0
A:5843
B:5828
C:5828
¸íº¹¤Ã¤Ý¤¤¤±¤É¡£¤É¤¦¤À¤í¤¦¡©
> x=0 ¤Î»þ¤ÎÊý¤¬¡¢½èÍý¤¬Áᤤ¤Î¤Ç¤¹¡ª¡ª
Âçȯ¸«¡ª¡©ÉԻ׵ĤǤ¹¤Í¡£¤¿¤·¤«¤Ë0¤ÎÊý¤¬Áᤤ¤ß¤¿¤¤¡¢
> switch¥Þ¥¯¥í¤¬ÃÙ¤¤¤È¤¤¤¦Ïäò¤·¤¿¤Î¤Ç¡¢¤½¤ì¤âÄ´¤Ù¤Æ¤ß¤Þ¤·¤¿¡£
> ¤â¤·¡¢»î¤·¤Æ失¤ëÊý¤¬¤¤¤é¤Ã¤·¤ã¤¤¤Þ¤·¤¿¤é¡¢¤´Êó¹ð¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹m<(_ _)>m
¤³¤Á¤é¤â»î¤·¤Æ¤ß¤Þ¤·¤¿¡£
switch :540
if :376
if else :314
¤ä¤Ã¤Ñ¤êif else¡¢¤¬¤Ï¤ä¡¼¤¤¡£¤½¤ì¤Çif¤ò
if x=0 :c++ :continue
if x=1 :c++ :continue
if x=2 :c++
¤Ë¤·¤Æ»î¤·¤Æ¤ß¤Þ¤·¤¿¤é¡¢if:321¡£¾¯¤·¤Ð¤«¤êÁ᤯¤Ê¤ê¤Þ¤·¤¿¡£
¤Ä¤¤¤Ç¤Ëif else¤Ë¤âcontinue¤òÉÕ¤±¤Æ¤ß¤¿¤é¡¢
²¿½è¤Ë¤Ä¤±¤Æ¤âÃÙ¤¯¤Ê¤ê¤Þ¤·¤¿¡¦¡¦¡£
¤Ê¤ó¤«±ü¤¬¿¼¤¤¤Ç¤¹¤Í¡£¤½¤·¤Æ¤ªÈè¤ìÍͤǤ¹(^-^
> ¤â¤·¡¢ÉÔÅԹ礬¤¢¤Ã¤¿¤ê¡¢ÉÔŬÀÚ¡¦ÉÔɬÍפÀ¤È´¶¤¸¤Þ¤·¤¿¤é¡¢ºï½ü¤·¤Þ¤¹
µöÍÆÈϰϤÀ¤È¤ª¤â¤¤¤Þ¤¹¤è¡£
¤½¤ì¤è¤ê1¥¹¥ì¥Ã¥É¤ÎµöÍÆÈϰϤΤۤ¦¤¬¿´Çۤˤʤê¤Þ¤¹¡£
| |
|
2006/9/16(Sat) 01:38:05|NO.2472
>redraw ¤Ã¤Æ API¤Ë¤Ï¸ú²Ì¤¬Ìµ¤¤¤ß¤¿¤¤¤Ç¤¹¡£
API ¤È¤¤¤¦¤è¤êÉÁ²è¤Î»ÅÁȤߤÎÏäǤ¹¡£
1 HSP ¤Ïɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤ȤÏÊ̤˥¦¥£¥ó¥É¥¦¤´¤È¤ËÉÁ²èÍѥХåե¡²èÌ̤òÊÝ»ý¤·¤Æ¤ª¤ê¡¢
Ä̾ï¤Î HSP ¤ÎÉÁ²è¤Ï
¥Ð¥Ã¥Õ¥¡²èÌ̤ËÉÁ²è ¢ª ¥Ð¥Ã¥Õ¥¡²èÌ̤ÎÆâÍƤòɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤˥³¥Ô¡¼
¤È¤¤¤¦ 2Ãʳ¬¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£
redraw 0 ¤Î¾õÂ֤Ǥϡ֥Хåե¡²èÌ̤ËÉÁ²è¡×¤Î¤ß¤¬¹Ô¤ï¤ì
¡Ö¥Ð¥Ã¥Õ¥¡²èÌ̤ÎÆâÍƤòɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤˥³¥Ô¡¼¡×¤Ï¹Ô¤ï¤ì¤Þ¤»¤ó¡£
redraw 1 ¤Ç¤Ï¡Ö¥Ð¥Ã¥Õ¥¡²èÌ̤ÎÆâÍƤòɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤˥³¥Ô¡¼¡×¤ò
¶¯À©Åª¤Ë¹Ô¤¤¤Þ¤¹¡£
2 HSP ¤Î¥·¥¹¥Æ¥àÊÑ¿ô hdc ¤¬ÊÖ¤¹¤Î¤Ï HSP ¤¬ÆâÉô¤ËÊÝ»ý¤·¤Æ¤¤¤ë¥Ð¥Ã¥Õ¥¡²èÌ̤Î
¥Ç¥Ð¥¤¥¹¥³¥ó¥Æ¥¥¹¥¿¥Ï¥ó¥É¥ë¤Ç¤¢¤Ã¤Æɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤ÎDC¥Ï¥ó¥É¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¥·¥¹¥Æ¥àÊÑ¿ô hdc ¤È API ¤ò»È¤Ã¤ÆÉÁ²è¤ò¹Ô¤Ã¤¿¾ì¹ç¤Ï
hdc ¤Î¼¨¤¹²èÌÌ(¥Ð¥Ã¥Õ¥¡²èÌÌ)¤ËÉÁ²è
¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
API ¤Ï HSP ¤Î»ÅÍͤΤ³¤È¤Ê¤ÉÃΤé¤Ê¤¤¤Î¤Ç¡Ö¥Ð¥Ã¥Õ¥¡²èÌ̤ÎÆâÍƤòɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤˥³¥Ô¡¼¡×
¤Ï¹Ô¤¤¤Þ¤»¤ó¡£
¡Ö¥Ð¥Ã¥Õ¥¡²èÌ̤ÎÆâÍƤòɽ¼¨¤µ¤ì¤Æ¤¤¤ë²èÌ̤˥³¥Ô¡¼¡×¤ò¹Ô¤¤¤¿¤¤¾ì¹ç¤Ï API ¤Ë¤è¤ëÉÁ²è¤È¤ÏÊ̤Ë
redraw 1 ¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
> Âè°ì¥Ñ¥é¥á¡¼¥¿¤Î¼èÆÀÉôʬ¤¬¡¢¤³¤ì¤Ç¤¤¤¤¤Î¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£
¼Â¼ÁÌäÂê¤Ï̵¤¤¤È»×¤¤¤Þ¤¹¡£(°ú¿ô¤ÎÃͤòÄ´¤Ù¤Æ NULL ¤òÌÀ¼¨Åª¤ËÂåÆþ¤·¤¿¤Û¤¦¤¬
Íî¤ÁÃ夯´¶¤¸¤Ï¤·¤Þ¤¹¤¬µ¤Ê¬¤ÎÌäÂê¤Ç¤·¤ç¤¦¡£)
¤½¤ì¤ÈưŪ¤Ë³ÎÊݤ·¤¿¥á¥â¥ê¤ÏÍѤ¬¤¹¤ß¼¡Âè¡¢¤¹¤ß¤ä¤«¤Ë²òÊü¤·¤¿¤Û¤¦¤¬Îɤ¤¤È»×¤¤¤Þ¤¹¡£
| |
|
2006/9/16(Sat) 15:29:22|NO.2477
>>redraw ¤Ã¤Æ API¤Ë¤Ï¸ú²Ì¤¬Ìµ¤¤¤ß¤¿¤¤¤Ç¤¹¡£
>API ¤È¤¤¤¦¤è¤êÉÁ²è¤Î»ÅÁȤߤÎÏäǤ¹¡£
2Ãʹ½¤¨¤È¸À¤¦¤Î¤Ï¤É¤³¤«¤Ç¸«Ê¹¤¤·¤¿»ö¤¬¤¢¤ê¤Þ¤·¤¿¤¬¡¢
¤½¤¦¤¤¤¦»ö¤À¤Ã¤¿¤ó¤Ç¤¹¤Í¡£¤ª°þÍͤÇÍý²ò¤Ç¤¤Þ¤·¤¿¡£
naznyark¤µ¤óÍÆñ¤¦¤´¤¶¤¤¤Þ¤¹¡£
|
|
2006/9/17(Sun) 10:51:41|NO.2487
¤ªÊÖ»öÃÙ¤ì¤Þ¤·¤¿¤Ã m(_ _)m
>ÆâÉô¤ËÊÝ»ý¤·¤Æ¤¤¤ë¥Ð¥Ã¥Õ¥¡²èÌ̤ÎhDC
Ʊ¤¸¤¯¡¢¤È¤Æ¤â¤ï¤«¤ê°×¤¤ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ù
¤³¤Î»ö¼Â¤ÏÉÁ²è¤Ë´Ø¤·¤Æ¤Ï¤È¤Æ¤â½ÅÍפʤ³¤È¤Ê¤Î¤Ç¡¢
»ÅÍͤò³Ø¤Ö¤³¤È¤¬¤Ç¤¤Æ¡¢¤È¤Æ¤â´ò¤·¤¤¤Ç¤¹¡Ê¡°¡°¡¿
>²òÊü¤·¤¿¤Û¤¦¤¬
¤½¤¦¤Ç¤¹¤«¤Ã¡ª
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡Ê¡±¡±¡´
SDK¤Î²òÀâ¤òÆɤó¤À¸Â¤ê¤Ç¡¢¤¢¤Ã¤¿Êý¤¬¤¤¤¤¤«¤È¤â»×¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
ÅϤµ¤ì¤ëʸ»úÎó¤Ï¡¢¥á¥â¥ê¤Ë¤½¤ìÄø¤Î±Æ¶Á¤òÍ¿¤¨¤Ê¤¤¤«¤È¤â¹Í¤¨¤Æ¤¤¤¿¤Î¤Ç¡¢
³«Êü¤Ï¤·¤Þ¤»¤ó¤Ç¤·¤¿¡£
¤ä¤Ï¤ê¤·¤¿¤Û¤¦¤¬¤¤¤¤¤ó¤Ç¤¹¤Í¡£°Ê¸å¡¢Ãí°Õ¤·¤Þ¤¹¡Ê¡°¡°£ö
>·×¤Ã¤¿·ë²Ì¤ò½ñ¤¤Þ¤¹
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡¢¤´ÃúÇ«¤Ëm(_ _)m
¤â¤¦¾¯¤·¿§¡¹¤ä¤Ã¤Æ¤ß¤Æ¡¢º£²ó»î¤·¤Æ夤¤¿·ë²Ì¤È¶¦¤Ë
¤Þ¤È¤á¤ÆHSP¤ÎÆÃÀ¤ò½ñ¤½Ð¤·¤Æ¤ß¤è¤¦¤È»×¤Ã¤Æ¤¤¤Þ¤¹¡ù
osakana¤µ¤ó¤Î´Ä¶¤Ç¤â¡¢x=0 ¤ÎÊý¤¬Áᤤ¤ó¤Ç¤¹¤Í¡Á¢ö
¤â¤¦¤Á¤ç¤Ã¤È¹Í¤¨¤ò³ÈÄ¥¤·¤Æ¡¢Î¢µ»Åª¤Ê¤³¤È¤ò¸«¤Ä¤±¤é¤ì¤¿¤é¤¤¤¤¤ó¤Ç¤¹¤¬¡Ê¡°¡°¡¨
¥Þ¥¯¥í¤È¤Î½èÍýÈæ³Ó¤â¡¢
¥Þ¥¯¥í¸µ¤ò¹Íθ¤·¤Æ¤Ê¤ó¤é¤«¤ÎÀ®²Ì¡Ê¡¦¡¦¡¦¤ª¤ª¤²¤µ¤Ç¤¹¤¬¡Ë¤ò
½Ð¤·¤Æ¤ß¤è¤¦¤È´èÄ¥¤Ã¤Æ¤Þ¤¹¡£¤â¤¦¾¯¤·¤ªÂÔ¤Á¤¯¤é¤µ¤¤ww
#
API¤òľÀÜÍøÍѤ¹¤ë¤È¡¢¾ï¤Ëredraw¤¬ÉÕ¤¤Þ¤È¤¦¤ó¤Ç¤¹¤Í¡£
¤Á¤ç¤Ã¤ÈÌÌÅݤÀ¤Ã¤¿¤ê¤·¤Þ¤¹¤Í¡Á¡£
¥Ð¥Ã¥Õ¥¡²èÌ̤ÎhDC¤Ï¡¢Ê¬¤«¤Ã¤¿¤ê¤Ï¤·¤Ê¤¤¤ó¤Ç¤¹¤«¡©
¤½¤ì¤¬Ê¬¤«¤ë¤È¿§¡¹¤Ç¤¤½¤¦¤Ç¤¹¡£
¤Þ¤À¤½¤ì¤Û¤ÉÄ´¤Ù¤Æ¤Ê¤¤¤Î¤Ç¡¢»þ´Ö¤¬¶õ¤¼¡Â衢õ¤·¤Æ¤ß¤Þ¤¹¡ù
>¶²¤ë¤Ù¤·redraw¡ª
³Î¤«¤Ë¤Ã¢ö
¤¿¤À¡¢naznyark¤µ¤ó¤Î¥á¥Ã¥»¡¼¥¸¤òÆɤà¸Â¤ê¡¢
¡Öredraw¤¬¡×¤È¤¤¤¦¤è¤ê¡Ö²¾ÁÛ²èÌ̤¬¡×¡¢¹â®¤ÊÉÁ²è¤ò¼Â¸½¤·¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¤Í¡£
¤«¤Ê¤ê±ü¤¬¿¼¤¤¤Ç¤¹¤Í¡Á¡Ê¡°¡°¡ï
¥Ù¥ó¥Á¥Þ¡¼¥¯¡¦²òÀâ¡¢¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹m(_ _)m
#
>¥¹¥ì¥Ã¥É¤ÎµöÍÆÈϰϤΤۤ¦¤¬
¡ÊÇú¡ËÍÆÎÌÀ©¸Â¡¦¡¦¤¢¤ë¤ó¤Ç¤¹¤«¤Í¡¦¡¦¡©
¤â¤·¥¢¥ì¤À¤Ã¤¿¤é¿·¤·¤¤¤Î¤Ø°Ê¹ß¡ª¤Ç¤¹¤Í¡£
¤Þ¤À¿§¡¹¤È»¨Ã̤·¤ÆÌ㤨¤ë¤Ê¤é¡¦¡¦¡Ê¡°¡°
| |
|
2006/9/19(Tue) 05:19:58|NO.2504
>>²òÊü¤·¤¿¤Û¤¦¤¬
>Ãí°Õ¤·¤Þ¤¹
¤Õ¤È»×¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
²¿¤ÇưŪ¥á¥â¥ê¤Ï²òÊü¤ò¤·¤¿Êý¤¬¤¤¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£
¤È¤¤¤¦¤Î¤â¡¢£È£Ó£Ð£³.£°¼«ÂΤˤϡ¢
²òÊü¤È¤¤¤¦³µÇ°¤¬¤Ê¤¤¤è¤¦¤Ë»×¤¨¤ë¤«¤é¤Ç¤¹¡Ê¡°¡°¡¨
exist "data.ext"
if strsize {
sdim info,strsize
¡¦¡¦¡¦½èÍý¡¦¡¦¡¦
}
¤È¤·¤Æ¡¢Æ°Åª¤Ë¥á¥â¥ê¤ò³ÎÊݤ·¤Æ¤â¡¢²òÊü¤Ï¤Ç¤¤Þ¤»¤ó¡£
¡ÊÉÔɬÍפˤʤäƤ⡢sdim info,0 ¤Ç¤â²òÊü½ÐÍè¤Ê¤«¤Ã¤¿µ¤¤¬¡¦¡¦¡¦¡ù¡Ë
£±¡¥¤³¤Î¤è¤¦¤Ê¥±¡¼¥¹
£²¡¥£Ä£Ì£Ì¤Î hspmalloc ¤Î¥±¡¼¥¹
£³¡¥Î㤨¤Ð¡¢API¤Î SetTimer´Ø¿ô¤ò»ÈÍѤ·¡¢KillTimer´Ø¿ô¤ò¸Æ¤Ó½Ð¤µ¤Ê¤¤¥±¡¼¥¹
¤Ê¤É¤Ç¤Ï¡¢¤É¤Î¤è¤¦¤Ê¥Ç¥á¥ê¥Ã¥È¤¬µ¯¤³¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
²òÊü¤¹¤ë¤³¤È¤Ë¤è¤ê½èÍýÎ̡ʤۤó¤Î¾¯¤·¤Ç¤¹¤¬¡Ë¤¬Áý¤¨¤ë¤Î¤È¡¢
¤È¤Ë¤«¤¯²òÊü¤¹¤ë¤Î¤È¡¢¤É¤Á¤é¤¬¤¤¤¤¤Î¤Ç¤·¤ç¤¦¤«¡Ê¡±£ö¡±¡©¡©
>// malloc¤Ç³ÎÊݤµ¤ì¤¿¥á¥â¥ê¤Ï»ý³À¤¬¤¢¤ë¡£
>// ¥×¥í¥°¥é¥à½ªÎ»»þ¤«ÌÀ¼¨Åª¤Ë¥×¥í¥°¥é¥Þ¤¬²òÊü¤·¤Ê¤¤¸Â¤ê¸ºß¤·Â³¤±¤ë¡£
¤È¤¤¤¦²òÀ⤬¤¢¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¥×¥í¥°¥é¥à½ªÎ»»þ¤Ë²òÊü¤µ¤ì¤ë¤Î¤Ç¡¢
²òÊü¤È¤¤¤¦¤Î¤Ï¡¢¥×¥í¥°¥é¥à¼Â¹Ô»þ¤À¤±¤Î¡¢
¥á¥â¥êÀáÌó¡Ê¡©¡Ë¤Ç¤¢¤ë¤È¹Í¤¨¤Æ¤Þ¤¹¡Ê¡¬w¡¬¡¨
>// 640¡ß480¤Î²èÌ̤ò1¤Äºî¤ë¤È
>// dim a,1000000 ¤ÈƱ¤¸¤¯¤é¤¤¤Î¥á¥â¥ê¤ò¾ÃÈñ¤·¤Þ¤¹
¤ÈÀ浤¨¤Æ夤¤¿¤Î¤Ç¤¹¤¬¡¢
º£²ó¤Î¤è¤¦¤ÊÈùÎ̤Υǡ¼¥¿¤Ç¤â²òÊü¤µ¤ì¤ëÊý¤Î¤Û¤¦¤¬Â¿¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©
| |
|
2006/9/20(Wed) 02:06:35|NO.2515
> ¤È¤¤¤¦¤Î¤â¡¢£È£Ó£Ð£³.£°¼«ÂΤˤϡ¢
> ²òÊü¤È¤¤¤¦³µÇ°¤¬¤Ê¤¤¤è¤¦¤Ë»×¤¨¤ë¤«¤é¤Ç¤¹¡Ê¡°¡°¡¨
> ¡ÊÉÔɬÍפˤʤäƤ⡢sdim info,0 ¤Ç¤â²òÊü½ÐÍè¤Ê¤«¤Ã¤¿µ¤¤¬¡¦¡¦¡¦¡ù¡Ë
HSP ¤Ç¤Ï¥¹¥¯¥ê¥×¥È¾å¤Ç¤ÎÌÀ¼¨Åª¤Ê¥á¥â¥ê²òÊü¤È¤¤¤¦³µÇ°¤³¤½¤¢¤ê¤Þ¤»¤ó¤¬
ÆâÉô¤Ç¤ÏÊÑ¿ô¤Î·¿ÊÑ´¹»þ¤Ê¤É¿¤¯¤Î¶ÉÌ̤ǥá¥â¥ê¤ÎưŪ³ÎÊÝ¡¦²òÊü¤¬¹Ô¤ï¤ì¤Æ¤¤¤Þ¤¹¡£
Î㤨¤Ð sdim s, 256 ¤È¼Â¹Ô¤¹¤ë¤È 256¥Ð¥¤¥Èʬ¤Î¥á¥â¥ê¤¬Æ°Åª¤Ë³ÎÊݤµ¤ì¤Þ¤¹¡£
¤½¤Î¸å¤Ë sdim s, 64 ¤È¤¹¤ë¤ÈÀè¤Û¤É³ÎÊݤµ¤ì¤¿ 256¥Ð¥¤¥Èʬ¤ÎÎΰè¤Ï²òÊü¤µ¤ì¡¢
¿·¤¿¤Ë 64¥Ð¥¤¥Èʬ¤Î¥á¥â¥ê¤¬Æ°Åª¤Ë³ÎÊݤµ¤ì¤Þ¤¹¡£
¤µ¤é¤Ë¤½¤Î¸å¤Ë s=100 ¤ÈÊÑ¿ô¤Î·¿ÊÑ´¹¤ò¹Ô¤Ã¤¿¾ì¹ç¤Ï 64¥Ð¥¤¥Èʬ¤ÎÎΰè¤Ï²òÊü¤µ¤ì
4¥Ð¥¤¥È(À°¿ô·¿¤ÎÂ礤µ)ʬ¤Î¥á¥â¥ê¤¬Æ°Åª¤Ë³ÎÊݤµ¤ì¤Þ¤¹¡£
(¤³¤Î¤Þ¤Þ¥×¥í¥°¥é¥à¤¬½ªÎ»¤¹¤ì¤Ð¤³¤Î 4¥Ð¥¤¥Èʬ¤Î¥á¥â¥ê¤Ï½ªÎ»»þ¤Ë²òÊü¤µ¤ì¤Þ¤¹¡£)
> º£²ó¤Î¤è¤¦¤ÊÈùÎ̤Υǡ¼¥¿¤Ç¤â
¼Â¹Ô¤µ¤ì¤ëÅÙ¤Ë 1¥Ð¥¤¥È¤Î¥á¥â¥ê¤ò³ÎÊݤ¹¤ë¤¬¼Â¹Ô¸å¤Ç¤â²òÊü¤Ï¤·¤Ê¤¤Ì¿Î᤬¤¢¤Ã¤¿¤È¤·¤Þ¤¹¡£
¤³¤ÎÌ¿Îá¤ò¿ô²¯²ó¡¢¿ôÃû²ó¤È¼Â¹Ô¤¹¤ë¥×¥í¥°¥é¥à¤¬¤¢¤Ã¤¿¤È¤·¤¿¤é¤É¤¦¤¤¤¦¤³¤È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¤«?
(¼Â¸³ÍѤ伫ʬÀìÍÑ¤Î¥×¥í¥°¥é¥à¤Ê¤é´Å¤¤ºî¤ê¤Ç¤â¤«¤Þ¤¤¤Þ¤»¤ó¤¬¡¢
¾¿Í¤¬»È¤¦¼ÂÍÑÉʤòºî¤ë¤Ä¤â¤ê¤Ê¤é¼«Ê¬¤ËÅÔ¹ç¤Î¤¤¤¤¾¡¼ê¤Ê¹Í¤¨Êý¤Ï¤Ç¤¤ë¤À¤±Èò¤±¤ë¤Ù¤¤Ç¤¹¡£)
(º£²ó¤Î¾ì¹ç¤Ë¤Ï¿À·Ð¼Á¤¹¤®¤ë¹Í¤¨Êý¤Î¤è¤¦¤Ë¤â´¶¤¸¤Þ¤¹¤¬¡¢Âç¶ÉŪ¤Ê»ëÅÀ¤ò»ý¤Ä¤Î¤ÏÂçÀڤǤ¹¡£)
| |
|
2006/9/20(Wed) 03:04:45|NO.2516
>¥á¥â¥ê¤ÎưŪ³ÎÊÝ¡¦²òÊü¤¬¹Ô¤ï¤ì¤Æ¤¤¤Þ¤¹
¤½¤¦¤À¤Ã¤¿¤ó¤Ç¤¹¤«¤¡m(_ _)m
²òÊü¤µ¤ì¤Ê¤¤¤Ã¤Æ¤¤¤¦¤Î¤Ï¡¢HSP2.x¤Þ¤Ç¤ÎÏäÀ¤Ã¤¿¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡Ê¡°¡°¡¨
¤É¤Ã¤«¤Çʹ¤¤¤¿È¦¤Ç¡¢¤½¤Î¤Þ¤Þ¤«¤È»×¤Ã¤Æ¤Þ¤·¤¿¤Ã¡Ê¡ä¡ã
>¾¿Í¤¬»È¤¦¼ÂÍÑÉʤòºî¤ë¤Ä¤â¤ê¤Ê¤é
³Î¤«¤Ë¤½¤¦¤«¤â¤·¤ì¤Þ¤»¤ó£÷
¤¤¤¤ÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤·¤¿¡ù
>¿ô²¯²ó¡¢¿ôÃû²ó¤È¼Â¹Ô¤¹¤ë¥×¥í¥°¥é¥à
¼Â¤Ï¤¢¤¿¤·¤Ï¡¢
Ʊ¤¸´Ø¿ô¡ÊÌ¿Îá¡Ë¤Ê¤é¤Ð¡¢ÆâÉô¤Ç»È¤Ã¤Æ¤¤¤ëÊÑ¿ô¤âƱ¤¸¤Ê¤Î¤«¤È»×¤Ã¤Æ¤¤¤Þ¤·¤¿¡ª
¤½¤ì¤¬¡¢²¿ÅÙ¤â»ÈÍѤµ¤ì¤ë¤Î¤Ç¤Ï¤Ê¤¯¤Æ¡¢
²¿Å٤⿷¤·¤¤¥á¥â¥ê³ÎÊݤ¬¹Ô¤ï¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¤Í¡Á¡£¸í²ò¤·¤Æ¤¤¤Þ¤·¤¿¡Ê¡°¡°¡¨
¤½¤ì¤Ê¤é¤Ð¡¢NO.2436¡¡¤Î¤è¤¦¤Ê¤â¤Î¤Ï¡¢
£µ²ó¼Â¹Ô¤·¤¿¤é¡¢»È¤Ã¤Æ¤¤¤ë¥á¥â¥ê¡ß£µ¤¬¾ÃÈñ¤µ¤ì¤ë¤ï¤±¤Ç¡¢
¤½¤ì¤Ï¼«Ê¬¤Ç»È¤¦¤Ë¤·¤Æ¤âº¤¤Ã¤¿¤â¤Î¤Ç¤¹¤Í¢ö
naznyark¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
³ÎÊݤ·¤¿¥á¥â¥ê¤Ïɬ¤º²òÊü¤¹¤ë¤è¤¦¤Ë¡¢Êʤò¤Ä¤±¤¿¤¤¤È»×¤¤¤Þ¤¹¡Ê¡°£÷¡°¡¿
|
|
2006/9/23(Sat) 10:09:55|NO.2567
> ¤½¤ì¤Ê¤é¤Ð¡¢NO.2436¡¡¤Î¤è¤¦¤Ê¤â¤Î¤Ï¡¢
void msgbox( void )¡¡¤Ç¤·¤ç¤¦¤«¡©¡ÊC¸À¸ì¡©¡Ë
¤½¤ì¤Ê¤é¡¢ÊÑ¿ô¤Ï´Ø¿ô¤òÈ´¤±¤¿»þ¤Ë³«Êü¤µ¤ì¤Æ¤ë¤È»×¤¤¤Þ¤¹¡£
|
|
2006/9/23(Sat) 10:59:00|NO.2569
>¤½¤ì¤Ê¤é¡¢ÊÑ¿ô¤Ï´Ø¿ô¤òÈ´¤±¤¿»þ¤Ë³«Êü¤µ¤ì¤Æ¤ë¤È»×¤¤¤Þ¤¹¡£
ÏÀ³°¤Ç¤¹¤è...¡£
; No.2436
void msgbox( void )
{
HWND hwnd;
/* ¾Êά */
text = hspmalloc( lstrlen( sprm ) + 1 ); // ¤³¤³¤¬ÏÀÅÀ¤Ç¤¹¡£
/* ¾Êά */
}
naznyark¤µ¤ó¤Î»ØŦ¤Ï¡¢Ã±½ã¤Ë¡Ö²òÊü¤·¤Æ¤¤¤Ê¤¤¡×¤³¤È¤òÌäÂê»ë¤·¤Æ¤¤¤ë¤ï¤±¤¸¤ã¤Ê¤¯¤Æ¡¢
¤³¤Îmsgbox()´Ø¿ô¤¬²¿²ó¤â¸Æ¤Ð¤ì¤ë¤¿¤Ó¤Ë¿·¤·¤¤Îΰè¤ò³ÎÊݤ·¤Æ¡¢
¤½¤ì¤Þ¤Ç³ÎÊݤ·¤Æ¤¤¤¿Îΰè¤Î¤³¤È¤Ï¤Û¤Ã¤¿¤é¤«¤·¤Ë¤·¤Æ¤¤¤ë¤³¤È¤òÌäÂê»ë¤·¤Æ¤¤¤¿¡¢¤È»×¤¤¤Þ¤¹¡£
¤À¤«¤éÊ̤˴ؿô½ªÎ»»þ¤ËÀäÂФ˲òÊü¤·¤Ê¤¤ã¤¤¤±¤Ê¤¤¡¢¤Ê¤ó¤Æ¤³¤È¤Ï¤Ê¤¤¤Ç¤¹¡£
´û¸¤ÎÎΰè¤Ç¤ê¤ë¤Ê¤éºÆÍøÍѤ·¡¢Â¤ê¤Ê¤¤¤È¤¤À¤±¸Å¤¤Îΰè¤ò³«Êü¤·¤Æ¿·µ¬³ÎÊݤǤ⤤¤¤¤Ç¤¹¡£
¤½¤Î¾ì¹ç¤Ï¤É¤³¤Ç²òÊü¤µ¤»¤ë¤Î¤«¤È¤¤¤¦¤³¤È¤òÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
# HSP³«È¯wiki¤Ë¤Ï²òÀâÆþ¤ì¤Æ¤ª¤¤¤¿¤ó¤À¤±¤É¤Ê¤¡...
# ¤â¤¦½ª¤ï¤Ã¤¿¥¹¥ì¥Ã¥É(?)¤Ç¤¹¤¬...
|
|
2006/9/23(Sat) 11:10:40|NO.2570
hiro¤µ¤ó¡¢kz3¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ù
>¤½¤ì¤Þ¤Ç³ÎÊݤ·¤Æ¤¤¤¿Îΰè¤Î¤³¤È¤Ï¤Û¤Ã¤¿¤é¤«¤·¤Ë
¤½¤ÎÄ̤ê¤Ê¤ó¤Ç¤¹¡£
°ìÈÖ¤ÎÌäÂê¤Ï¡¢¤¢¤¿¤·¤¬¡¢¡Ö·«¤êÊÖ¤·¸Æ¤Ð¤ì¤Æ¤â¡¢Æ±¤¸Îΰ褬»ÈÍѤµ¤ì¤Æ¤¤¤ë¡×
¤È»×¤¤¹þ¤ó¤Ç¤¤¤¿¤³¤È¤Ê¤ó¤Ç¤¹¡Ê¡ä¡ã
>¿¤¯¤Î¶ÉÌ̤ǥá¥â¥ê¤ÎưŪ³ÎÊÝ¡¦²òÊü¤¬¹Ô¤ï¤ì¤Æ¤¤¤Þ¤¹
¤È¤¤¤¦¤³¤È¤Ï¡¢¤â¤·¤«¤·¤Æ¡¢
repeat nLoop
sdim string, 255
;½èÍý
loop
¤È¤¤¤¦¤è¤¦¤Ê¾ì¹ç¤â¡¢³ÎÊÝ¡¦²òÊü¤¬¹Ô¤ï¤ì¤Æ¤¤¤ë¤Ã¤Æ¤³¤È¤Ë¤Ê¤ë¤ó¤Ç¤·¤ç¤¦¤«¡©
¤³¤ì¤¬Ä¹¤¤¥ë¡¼¥×¤À¤Ã¤¿¾ì¹ç¤Ï¡¢²òÊü¤Ê¤·¤Ë¤Ï̵Íý¤Ç¤¹¤Í¡¦¡¦¡¦¡ÊÉÝ¡Ë
#
²òÊü¤Ã¤Æ¤¤¤¦³µÇ°¤¬Íܤï¤ì¤Æ¤¤¤Ê¤¤Ê¬¡¢¤È¤Æ¤âÉ԰¤ˤʤäƤ·¤Þ¤¤¤Þ¤¹¡¦¡¦¡¦
¤½¤¦¤¤¤¦°ÕÌ£¤Ç¤â¡¢HSP¤Ï¼ê·Ú¤Ç¤¹¡£
¥¦¥£¥ó¥É¥¦¤¬¤É¤¦¤È¤«¡¢¥á¥Ã¥»¡¼¥¸¤¬¤É¤¦¤È¤«¡¢·¿¤¬¤É¤¦¤È¤«¡¢
Àë¸À¤¬¤É¤¦¤È¤«¡¢²òÊü¤¬¤É¤¦¤È¤«¡¢¥³¥ó¥Ñ¥¤¥é¤¬¤É¤¦¤È¤«¡¢¡Ê³¡Ë
Á´¤¯¡¢°Õ¼±¤µ¤»¤Ê¤¤¤Ç¥×¥í¥°¥é¥ß¥ó¥°¤ò¤µ¤»¤ÆÌã¤Ã¤Æ¤¤¤Þ¤¹¡£
#
º£¡¢¤¤¤¤ÊÙ¶¯¤Ë¤Ê¤ë¤«¤Ê¤¡¡¢¤È¿§¡¹¤Êºî¶È¤Î¹ç´Ö¤Ë¡¢
HSP¤òC++¤Î¥³¥ó¥Ñ¥¤¥é¤Ç¥³¥ó¥Ñ¥¤¥ë¤Ç¤¤Ê¤¤¤«¤Ê¡¦¡¦¡¦¤È´ë¤ó¤Ç¤¤¤Þ¤¹¡Ê¡°¡°¡¨
¿§¡¹ÊýË¡¤ò¹Í¤¨¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¡¦¡¦¡¦¤Ê¤«¤Ê¤«Æñ¤·¤¤¤â¤ó¤Ç¤¹¡ù
HSP¤ÎÌ¿Îá¤ÈÅù²Á¤Ê¤â¤Î¤òºî¤ê¡¢
HSP¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ß¤Ê¤¬¤é¡¢¤½¤ì¤òÃÖ¤´¹¤¨¤ë¤È¤¤¤¦¤Î¤¬¡¢
º£°ìÈÖÍÎϤʤó¤Ç¤¹¤¬£÷£÷¡¡ÌµÍý¤Ç¤¹¤«¤Í¡Á¡Ê¡°¡°¡©
ÂÌÌܤâ¤È¤ÇÄ©À路¤Æ¤¤¤Þ¤¹¡Ê¾Ð¡Ë
ps:
³§ÍͤΤª¤«¤²¤Ç¿§¡¹¤Ê¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡¢
²¿¤«¤·¤é¤ò¸ø³«¤·¤¿¤¤¤ó¤Ç¤¹¤è¤Í¤Ã¡£
¥¢¥É¥Ð¥¤¥¹¤ò°ú¿ô¤Ë¡¢ºî¤Ã¤¿¤â¤Î¤òÊÖ¤¹´Ø¿ô¤ß¤¿¤¤¤Ê¡Ê¡°¡°¡¿
¤µ¤¹¤¬¤Ëvoid·¿¤Ë¤Ï¤Ê¤ê¤¿¤¯¤Ê¤¤¤Î¤Ç¡Ê¾Ð¡Ë
| |
|
2006/9/23(Sat) 14:20:30|NO.2573
> naznyark¤µ¤ó¤Î»ØŦ¤Ï
¤³¤ì¤Ë¤Ä¤¤¤Æ¤ÏƱ°Õ¤Ç¤¹¡£
¤Ç¤¹¤¬¡¢Ê̤ΰդǸÀ¤Ã¤¿¤Ä¤â¤ê¤Ç¤¹¤¬
>ÏÀ³°¤Ç¤¹¤è...¡£
¤È¤Îkz3¤µ¤ó¤Îȯ¸À¤Ç¸À¤¤¼º¤»¤Þ¤·¤¿¡£
³Î¤«¤ËÏÀ³°¤Ç¤¹¤Í¡¢¼ºÎ餤¤¿¤·¤Þ¤·¤¿¡£
|
|
2006/9/24(Sun) 11:13:24|NO.2593
>¼ºÎ餤¤¿¤·¤Þ¤·¤¿
¤½¤ó¤Ê¤³¤È¤Ê¤¤¤Ç¤¹¡Á¤è¡Ê¡°¡°
¤Á¤ç¤Ã¤Èµ¿Ìä¤Ë»×¤Ã¤¿¤³¤È¤¬¤¢¤ê¤Þ¤¹
[ HSP³«È¯wiki / make hpi / cpp / chap.6 ]
http://hspwiki.nm.land.to/?MakeHPI%2Fcpp%2Fchapter6
¤òÆɤó¤Ç¡¢¿§¡¹ÊÙ¶¯¤µ¤»¤Æ夤¤Æ¤¿¤ó¤Ç¤¹¤¬¡¢
¤³¤ì¤Ï£È£Ó£Ð¤ÎÎΰ褫¤é¤«¤Ê¤ê±ó¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«¡¦¡¦¤È»×¤¤¤Þ¤¹¡Ê¡°¡°
ÊѤʰÕÌ£¤¸¤ã¤Ê¤¤¤Ç¤¹¡ù
¤¿¤À¡¢¤³¤³¤Þ¤Ç¤Ç¤¤ëÊý¡¹¤¬Â¿¤¯¤¤¤é¤Ã¤·¤ã¤Ã¤Æ¡¢¥¹¥´²á¤®¤ë¡¦¡¦
¤È´¶Æ°¤¹¤ë¤³¤È¤·¤«¤Ç¤¤Ê¤¤¤Î¤Ç¤¹¡Ê¡±¢¦¡±¡ª
¤½¤ì¤Ç¤â£È£Ó£Ð¤ò°¦ÍѤµ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤è¤Í¡£
¤è¤«¤Ã¤¿¤éÍýͳ¤ò¶µ¤¨¤Æ夤¿¤¤¤Ê¤¡¡¦¡¦¤È¡£¡Ê¡¬¢Ê¡¬¡©
¤¢¤¿¤·¤Ï¡¢¼ÁÌäÆâÍƤ«¤é¤È¤«Ê¬¤«¤ë¤È»×¤¦¤ó¤Ç¤¹¤¬¡¢
£Ã¸À¸ì¤âËþ¤ˤǤ¤Þ¤»¤ó¤·¡¢Windows¥×¥í¥°¥é¥ß¥ó¥°¤â´Êñ¤Ê¤â¤Î¤·¤«ºî¤ì¤Þ¤»¤ó¡£
¤â¤·¤«¤·¤¿¤é¡¢¤¢¤ë°ÕÌ£¤Î¡Ö·Ò¤®¡×¤Ê¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¤¤¤¤°ÕÌ£¤Ç¤Ï¡¢¡Ö¤¤Ã¤«¤±¡×¤Ç¡Ö³Ú¤·¤ß¡×¤Ç¡Ö¶µ²Ê½ñ¡×¤Ç¤¹¡ù
¤Ç¤¹¤¬¡¢£Ã¤ÇƱ¤¸¤è¤¦¤Ê¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤é¡¦¡¦¡¦
£È£Ó£Ð¤ò¤ä¤á¤ë¤³¤È¤Ï¤Ê¤¤¤Ç¤¹¤¬¡¢»È¤¦µ¡²ñ¤â¸º¤ë¤È»×¤¤¤Þ¤¹¡Ê¡ä¡ã¡¨
¼ÂºÝ¤Ë¤Ïʬ¤«¤ê¤Þ¤»¤ó¤¬¡£
¤Ê¤Î¤Ç¡¢ÀèÇÚÊý¤Î°Õ¸«¤òʹ¤«¤»¤ÆÌ㤨¤Þ¤»¤ó¤Ç¤·¤ç¤¦¤«¡©
¤É¤ó¤Ê¤³¤È¤Ç¤â¡Ê´¶ÁۤǤâÆȤê¸À¤Ç¤â¤Ê¤ó¤Ç¤â¡Ë¤¤¤¤¤ó¤Ç¡¢¤ª¤Í¤¬¤¤¤·¤Þ¤¹m(_ _)m
| |
|
2006/9/27(Wed) 02:12:34|NO.2660
> ¤½¤ì¤Ç¤â£È£Ó£Ð¤ò°¦ÍѤµ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤è¤Í¡£
> ¤è¤«¤Ã¤¿¤éÍýͳ¤ò¶µ¤¨¤Æ夤¿¤¤¤Ê¤¡¡¦¡¦¤È¡£
»ä¤Î¾ì¹ç¤ÏÂ绨ÇĤ˸À¤¨¤Ð¡ÖHSP ¤¬¹¥¤¤À¤«¤é¡×¤¬Íýͳ¤Ç¤¹¡£
¤µ¤é¤Ë¤â¤Ã¤È¤â¤é¤·¤¤Ê̤ÎÍýͳ¤ò²Ã¤¨¤ë¤Ê¤é¤Ð
"HSP¥·¥¹¥Æ¥à¥É¥¥å¥á¥ó¥È¡¦¥¤¥ó¥¹¥È¡¼¥ë¥¬¥¤¥É (hsp3.htm) " Æâ¤Î
¡Ø¡üºî¼Ô¤è¤ê¡Ù¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤ª¤Ë¤¿¤Þ¤µ¤ó¤Î¹Í¤¨Êý¤Ë¶¦´¶¤¹¤ë½ê¤¬¤¢¤ë¤«¤é¡¢
¤È¤¤¤¦¤Î¤âÍýͳ¤Î¤Ò¤È¤Ä¤Ë¤Ê¤ê¤Þ¤¹¡£
|
|
2006/10/3(Tue) 02:54:33|NO.2819
naznyark¤µ¤ó¡¢¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
>»ä¤Î¾ì¹ç¤ÏÂ绨ÇĤ˸À¤¨¤Ð¡ÖHSP ¤¬¹¥¤¤À¤«¤é¡×¤¬Íýͳ¤Ç¤¹¡£
>¶¦´¶¤¹¤ë½ê¤¬¤¢¤ë¤«¤é
£È£Ó£Ð¤¬¹¥¤¡£¤¢¤¿¤·¤â¹¥¤¥Ç¥¹¡ù
¥·¥ó¥×¥ë¤Ê°ì¸À¤Ç¤¹¤±¤É¡¢¤Ê¤ó¤«´¶Æ°¤·¤Þ¤Õ¡Ê£Ô_¡´
¡ÖHSP¤¬Ìܻؤ·¤¿¤â¤Î¤Ï¡¢¥ª¡¼¥ë¥É¥¹¥¿¥¤¥ë¤Ê¥Ñ¥½¥³¥ó¤Î¥·¥¹¥Æ¥à¤Ç¤¹¡£ ¡×
¤³¤¦¤¤¤¦¤³¤È¤¬½ñ¤¤¤Æ¤¢¤ë¤Ã¤Æ¤³¤È¤¹¤é˺¤ì¤Æ¤Þ¤·¤¿¡Ê¡°¡°¡¨
¤³¤ì¤¬£È£Ó£Ð¤ÎÌÜɸ¤À¤Ã¤¿¤ó¤Ç¤¹¤Í¡Á
¤Á¤ç¤Ã¤È°Õ³°¤Ç¤¹¡ù
¤³¤ó¤Ê¤Ë£È£Ó£Ð¥æ¡¼¥¶¡¼¤µ¤ó¤¬µï¤ë¤Ã¤Æ¤³¤È¤Ï¡¢
¤ª¤Ë¤¿¤Þ¤µ¤ó¤ÏÅö½é¤ÎÌÜɸ¤ò¼Â¸½¤Ç¤¤¿¤Ã¤Æ¤³¤È¤«¤â¤·¤ì¤Þ¤»¤ó¤Í¡£
|
|