|
 | ̤²ò·è |
 | ²ò·è |
 | Ää»ß |
 | ºï½üÍ×ÀÁ |
|
2014/6/23(Mon) 20:28:18|NO.62585
ľÀÜ»ØÄꤷ¤Æ²èÁü¤òDL½ÐÍè¤ë¤è¤¦¤Ë¤Ï¤Ê¤ê¤Þ¤·¤¿
CSV¤Î¾ðÊ󤫤鼡¡¹¤È¼«Æ°¤Ç¼è¤ê¹þ¤à¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤éÎɤ¤¤Ç¤·¤ç¤¦¤«¡©
¤É¤¦¤¾¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
#include "hspinet.as"
dirlist s, "Q-3146", 5
if stat = 0 {
exist "Q-3146"
if strsize = -1 {
mkdir "Q-3146"
mes "ºîÀ®´°Î»"
} else {
mes "¤¹¤Ç¤Ë¥Õ¥©¥ë¥À¤Ï¸ºß¤·¤Þ¤¹"
}
} else {
mes "¤¹¤Ç¤Ëfolder¤¬Â¸ºß¤·¤Þ¤¹"
}
netinit
neturl "http://www.militaryshop.jp/upload/save_image/Q-3146/"
chdir "Q:\\Q-3146"
netload "Q-3146_01.JPG"
picload "Q-3146_01.JPG"
netload "Q-3146_02.JPG"
picload "Q-3146_02.JPG"
netload "Q-3146_03.JPG"
picload "Q-3146_03.JPG"
end
<>
|
|
2014/6/23(Mon) 21:48:29|NO.62588
notesel´Ø·¸(ʸ»úÎó¤ò°ì¹Ô¤º¤Ä°·¤¦)¤È
csvstr(csv¤òÇÛÎó¤ËÊÑ´¹¤¹¤ë)¤È
getpath(¥Ñ¥¹¾ðÊó¤ÎÊÑ´¹¡©)¤Ç½ÐÍ褽¤¦¤Ç¤¹¤Í¡£
¡¦°ì¹Ô¤º¤Ä¼è¤ê½Ð¤¹¡£
¡¦ÇÛÎó¤ËÊÑ´¹¤¹¤ë¡£
¡¦Í×ÁÇ£°¤ò¥Õ¥©¥ë¥À¾ðÊó¤È¤·¤Æ½èÍý¡£
¡¦Í×ÁÇ£±°Ê¹ß¤ò¥Ñ¥¹¤È¥Õ¥¡¥¤¥ë̾¤ËʬΥ¤·¤Æ¥À¥¦¥ó¥í¡¼¥É½èÍý¡£
|
|
2014/6/24(Tue) 01:29:03|NO.62590
¤¿¤ó¤¹ÍÍ
¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹
notesel´Ø·¸(ʸ»úÎó¤ò°ì¹Ô¤º¤Ä°·¤¦)¤È
csvstr(csv¤òÇÛÎó¤ËÊÑ´¹¤¹¤ë)¤È
getpath(¥Ñ¥¹¾ðÊó¤ÎÊÑ´¹¡©)¤Ç½ÐÍ褽¤¦¤Ç¤¹¤Í¡£
»²¹Í¤Ë¤·¤Æ¥µ¥ó¥×¥ë¤Ê¤É¤òDL¤·¤Æ»î¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤â¤¦¤Þ¤¯¹Ô¤¤Þ¤»¤ó¡£
¼ÂºÝ¤ÎCSV¤Ç¤¹¤¬¡¢
1900,A-641,¥á¥Ç¥£¥«¥ë¥Ð¥Ã¥° ¥³¥Ã¥È¥ó,1,25000,"¥á¥Ç¥£¥«¥ë¥Ð¥Ã¥°
¡¡ÊÆ·³Êü½ÐÉÊ¡¢Ãæ¸Å
¡¡¸Å¤¤¥³¥Ã¥È¥óÀ½"
¤³¤Î¤è¤¦¤Ë¡É¤Ç°Ï¤Þ¤ì¤¿²þ¹Ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¡£
, ¤Ç¶èÀڤäưì¸Ä°ì¸Ä¼è¤ê½Ð¤¹ÊýË¡¤ò¶µ¤¨¤Æ失¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡©
°ì¹Ô¤Ë£µ¸Ä¤Î¾ðÊó¤¬Æþ¤Ã¤Æ¤ª¤ê¤Þ¤¹¡£
//¾¦ÉÊID,¾¦ÉÊ¥³¡¼¥É,¾¦ÉÊ̾,ºß¸Ë¿ô,ÈÎÇä²Á³Ê,¾ÜºÙ
¹Ô¿ô¤Ï£±£¸£°£°¤°¤é¤¤¤Ç¤¹
£±¡¥¾¦ÉÊID¤Ï»È¤ï¤Ê¤¤
£²¡¥¾¦ÉÊ¥³¡¼¥É¤Ç¥Õ¥©¥ë¥À¤òºî¤Ã¤Æ
¤½¤Î¾¦ÉÊ¥³¡¼¥É¤Î²èÁü¤òDL¤¹¤ë
£³¡¥¾¦ÉÊ̾¤ÈÈÎÇä²Á³Ê¤È¾ÜºÙ¤ò°ì¤Ä¤Î¥Æ¥¥¹¥È¤Ë¼ýǼ¤·¤¿¤¤¡£
¤É¤¦¤¾¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
|
|
2014/6/24(Tue) 03:00:39|NO.62591
notesel data
; noteload "data.csv" ;⓪ÁÛÄê¥Õ¥¡¥¤¥ë̾
data = "1900,A-641,¥á¥Ç¥£¥«¥ë¥Ð¥Ã¥° ¥³¥Ã¥È¥ó,1,25000,\"¥á¥Ç¥£¥«¥ë¥Ð¥Ã¥°¡¡ÊÆ·³Êü½ÐÉÊ¡¢Ãæ¸Å¡¡¸Å¤¤¥³¥Ã¥È¥óÀ½\""
repeat notemax
noteget ss,cnt
split ss,",",ss
mes "mkdir " +dir_cur+"\\"+ss(1) ;¡¥Õ¥©¥ë¥À¡¼¤òºî¤ë(¥«¥ì¥ó¥È¤Î²¼¤Ë)
mes "picload \""+dir_cur+"\\"+ss(2)+"\"" ;¢²èÁü¤òÆɤ߹þ¤à(£Ä£Ì¤¹¤ë¤Ë¤Ï£Õ£Ò£Ì¤¬É¬Í×)
strrep ss(5),"\"","" ;£ÉÔÍפʥÀ¥Ö¥ë¥¯¥ª¡¼¥Æ¡¼¥·¥ç¥ó¤Îºï½ü
mes ss(2)+" "+ss(4)+" "+ss(5) ;¤¾ÜºÙ(¥¹¥Ú¡¼¥¹¶èÀÚ¤ê)
loop
|
|
2014/6/24(Tue) 04:40:59|NO.62592
fortunehillÍÍ
¥½¡¼¥¹¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹m(_ _)m
Áᮥҥó¥È¤Ë½¾¤Ã¤ÆÅö¤Æ¤Ï¤á¤¿¤¤¤È»×¤¤¤Þ¤¹¡£
¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹
|
|
2014/6/24(Tue) 05:12:16|NO.62593
fortunehillÍÍ
¾ÜºÙ¤ò¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤¹¤Ë¤Ï¤É¤¦¤·¤¿¤éÎɤ¤¤Î¤Ç¤·¤ç¤¦¤«¡©
²¼µ¤Î¤è¤¦¤Ë¤·¤¿¤È¤³¤í¡¢Á´¤Æ¤Î¥Ç¡¼¥¿¤¬½ñ¤¹þ¤Þ¤ì¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
¤¹¤ß¤Þ¤»¤ó¤¬¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
notesel data
noteload "¾¦ÉÊ0.csv" ;⓪ÁÛÄê¥Õ¥¡¥¤¥ë̾
; data = "1900,A-641,¥á¥Ç¥£¥«¥ë¥Ð¥Ã¥° ¥³¥Ã¥È¥ó,1,25000,\"¥á¥Ç¥£¥«¥ë¥Ð¥Ã¥°¡¡ÊÆ·³Êü½ÐÉÊ¡¢Ãæ¸Å¡¡¸Å¤¤¥³¥Ã¥È¥óÀ½\""
repeat notemax
noteget ss,cnt
split ss,",",ss
mes "mkdir " +dir_cur+"\\"+ss(1) ;¡¥Õ¥©¥ë¥À¡¼¤òºî¤ë(¥«¥ì¥ó¥È¤Î²¼¤Ë)
mes "picload \""+dir_cur+"\\"+ss(2)+"\"" ;¢²èÁü¤òÆɤ߹þ¤à(£Ä£Ì¤¹¤ë¤Ë¤Ï£Õ£Ò£Ì¤¬É¬Í×)
strrep ss(5),"\"","" ;£ÉÔÍפʥÀ¥Ö¥ë¥¯¥ª¡¼¥Æ¡¼¥·¥ç¥ó¤Îºï½ü
mes ss(2)+" "+ss(4)+" "+ss(5) ;¤¾ÜºÙ(¥¹¥Ú¡¼¥¹¶èÀÚ¤ê)
syousai = ss(5)
noteadd syousai
notesave ss(1)+".txt"
loop
|
|
2014/6/24(Tue) 10:49:16|NO.62596
¥Ç¡¼¥¿¤Ë²þ¹Ô¥³¡¼¥É¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢
¤»¤Ã¤«¤¯¶µ¤¨¤Æ夤¤¿¥³¡¼¥É¤Ç¤Ï¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
¤Þ¤º¤Ï¾ÜºÙ¤À¤±¤ò¥Æ¥¥¹¥È¤ËÊݸ¤·¤¿¤¤¤Î¤Ç¤¹¡£
¤½¤³¤Ç²¼µ¤Î¤è¤¦¤Ë¤·¤¿¤Î¤Ç¤¹¤¬¡¢Àµ¾ï¤Ê¥Ç¡¼¥¿¤òÊݸ¤¬¤Ç¤¤Þ¤»¤ó¡£
notesel ¤änoteadd¤Ï¤É¤¦»È¤¦¤Î¤Ç¤·¤ç¤¦¤«¡©¥µ¥ó¥×¥ë¤ä¥Ø¥ë¥×¤ò¸«¤Æ¤â¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
¥Æ¥¹¥ÈÍѤΥǡ¼¥¿¤Ï¥³¥Á¥é¤ËUP¤·¤Þ¤·¤¿¡£
http://nangoku.hustle.ne.jp/TEST.csv
¤É¤¦¤«¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
#include "hspda.as"
screen 0, ginfo(20), ginfo(21)
width 400, 1300
//dialog "", 16, "" // ¥Õ¥¡¥¤¥ë¤ÎÁªÂò(CSV¥Õ¥¡¥¤¥ë¤òÁªÂò)
//filename = refstr
//filename ="¾¦ÉÊ3.csv"
filename ="TEST.csv" //¥Æ¥¹¥ÈÍÑ
sdim buf, 0xffff // ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò³ÊǼ
sdim _line, 0xfff // £±¹Ôʬ¤Îʸ»úÎó¤ò³ÊǼ
sdim tmp, 0xfff // °ì»þŪ¤Ë»ÈÍÑ
len = 0 // ¼èÆÀ¤·¤¿¹Ô¿ô
notesel buf // ¥á¥â¥ê¥Î¡¼¥È¥Ñ¥Ã¥É¤Î½é´ü²½
noteload filename // ¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß
sdim records, 0xfff, notemax // CSV¤Î¹Ô¿ôʬ¥á¥â¥ê¤ò³ÎÊÝ
// ¥á¥¤¥ó¥ë¡¼¥×
repeat notemax
noteget _line, cnt // 1¹Ô¼èÆÀ
// 1¹Ôʬ¤ò¥á¥â¥ê¥Î¡¼¥È¥Ñ¥Ã¥É·Á¼°¤ÇCSV¤ËÊÑ´¹¤·¡¢
// records.cnt¤ËÊݸ
csvnote tmp, _line
records.cnt = tmp
len++ // ¹Ô¿ô¥¤¥ó¥¯¥ê¥á¥ó¥È
loop
// ɽ¼¨¥Æ¥¹¥È¡£recordsÇÛÎó¤òrepeat¤Ç²ó¤·¡¢strtrim¤Ç¡Ö"¡×¤ò¥È¥ê¥ß¥ó¥°¤·¤Æɽ¼¨
for i, 0, len, 1
//if ¾ÜºÙ¥Õ¥é¥°=0{ mes "¡Ú" + (i + 1) + "¹ÔÌÜ¡Û"}
notesel records.i
repeat notemax
noteget _line, cnt
¥Ç¡¼¥¿=strtrim(_line, 0, '"')//ÊÑ¿ô¡Ö¥Ç¡¼¥¿¡×¤Ë¼è¤ê½Ð¤·¤¿Ê¸»ú¤òÂåÆþ
if ¥Ç¡¼¥¿="[END]" {//£±¾¦Éʤνª¤ï¤ê¤ò¥Á¥§¥Ã¥¯
mes "":¾ÜºÙ¥Õ¥é¥°=0:notesave ¾¦ÉÊID+".txt"
goto *end2
}
if (cnt + 1)=4 { ¾ÜºÙ¥Õ¥é¥°=1 }//¾¦Éʾܺ٥ե饰¤òΩ¤Æ¤ë
if ¾ÜºÙ¥Õ¥é¥°=1 {//¾¦Éʾܺ٤Ǥ¢¤ë
mes "¾ÜºÙ:"+¥Ç¡¼¥¿
notesel buf
noteadd ¥Ç¡¼¥¿
}
if ¾ÜºÙ¥Õ¥é¥°=0 {//¾ÜºÙ¤Ç¤Ï¤Ê¤¤
if (cnt + 1)=1 { ¾¦ÉÊID=¥Ç¡¼¥¿ : mes "¾¦ÉÊID:"+¥Ç¡¼¥¿}
if (cnt + 1)=2 { ¾¦ÉÊ̾=¥Ç¡¼¥¿ : mes "¾¦ÉÊ̾:"+¥Ç¡¼¥¿}
if (cnt + 1)=3 { ²Á³Ê=¥Ç¡¼¥¿ : mes "²Á³Ê:"+¥Ç¡¼¥¿}
}
*end2
loop
next
stop

| |
|
2014/6/24(Tue) 12:51:17|NO.62597
¤³¤ó¤Ê´¶¤¸¤Ç;ʬ¤Ê²þ¹Ô¤ò¾Ã¤·¤¿¥Ç¡¼¥¿¤¬ºî¤ì¤ë¤Î¤Ç
¤¢¤È¤Ï±þÍѤǡ£
notesel csv
noteload "TEST.csv"
strrep csv, "\n", ""
strrep csv,",[END]","\n"
mes csv
notesave "csv_fix.csv"
|
|
2014/6/24(Tue) 15:07:31|NO.62598
¤¢¤êÍÍ
¤³¤ó¤Ë¤Á¤Ï¡¢¤¤¤Ä¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¥½¡¼¥¹¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹
ÁᮻȤäƥ¯¥ê¡¼¥ó¤ÊCSV¤¬½ÐÍè¾å¤¬¤ê¤Þ¤·¤¿
¥Ó¥Ã¥¯¥ê¤Ç¤¹¡£
¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹m(_ _)m
|
|
2014/6/24(Tue) 19:35:26|NO.62599
ºÇ½é¤È¾õ¶·¤¬°ã¤¦¤è¤¦¤Ç¤¹¤¬¡¢ºî¤Ã¤Æ¤ß¤Þ¤·¤¿¡£
#include "hspda.as"
screen 0, ginfo(20), ginfo(21)
width 800, 1300
//ÊÑ¿ô½é´ü²½
#enum e_¾¦ÉÊID 0
;#enum e_¾¦ÉÊ¥³¡¼¥É
#enum e_¾¦ÉÊ̾
;#enum e_ºß¸Ë¿ô
#enum e_ÈÎÇä²Á³Ê
#enum e_¾ÜºÙ
#enum e_max
sdim buf, 0xffff // ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò³ÊǼ
sdim _line, 0xfff // £±¹Ôʬ¤Îʸ»úÎó¤ò³ÊǼ
sdim tmp, 0xfff // °ì»þŪ¤Ë»ÈÍÑ
len = 0 // ¼èÆÀ¤·¤¿¹Ô¿ô
sdim tag
//tag="¾¦ÉÊID","¾¦ÉÊ¥³¡¼¥É","¾¦ÉÊ̾","ºß¸Ë¿ô","ÈÎÇä²Á³Ê","¾ÜºÙ"
tag="¾¦ÉÊID","¾¦ÉÊ̾","ÈÎÇä²Á³Ê","¾ÜºÙ"//¹àÌÜ¿ô¤¬¾¯¤Ê¤«¤Ã¤¿¤Î¤ÇÊѹ¹ÈÇ¡£
//¥Õ¥¡¥¤¥ëÁªÂò
dialog "csv", 16, "" // ¥Õ¥¡¥¤¥ë¤ÎÁªÂò(CSV¥Õ¥¡¥¤¥ë¤òÁªÂò)
if stat!1:end//¥¥ã¥ó¥»¥ë¤·¤¿¤é½ªÎ»
filename = refstr//¥Õ¥¡¥¤¥ë̾¤òÊÝ»ý
//¥Õ¥¡¥¤¥ëÆɤ߹þ¤ß
notesel buf // ¥á¥â¥ê¥Î¡¼¥È¥Ñ¥Ã¥É¤Î½é´ü²½
noteload filename // ¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß
//¥Ç¡¼¥¿ÊäÀµ
strrep buf, "\n", ""//¥Ç¡¼¥¿Ãæ¤Î²þ¹Ô¤òºï½ü
strrep buf,",[END]","\n"//¥Ç¡¼¥¿½ªÎ»¶èÀÚ¤ê[END]¤ò²þ¹Ô¤ËÊѹ¹
strrep buf,"\"",""//"¤òºï½ü
sdim records, 0xfff, e_max // CSV¤Î¹àÌÜ¿ôʬ¥á¥â¥ê¤ò³ÎÊÝ
// ¥á¥¤¥ó¥ë¡¼¥×
repeat notemax
wait 1
noteget _line,cnt //csv¤«¤é1¹Ô¼èÆÀ
csvstr records,_line //recordsÇÛÎó¤Ëʬ³ä
repeat e_max //¹àÌÜ¿ôʬ¡¡·«¤êÊÖ¤¹
// if cnt=e_¾ÜºÙ:continue //¾ÜºÙ¤ò¥¹¥¥Ã¥×
mes ""+tag.cnt+"¡§"+records.cnt //ɽ¼¨
loop
mes //²þ¹Ô¤Ç¥¹¥Ú¡¼¥¹¶õ¤±
loop
stop

| |
|
2014/6/25(Wed) 00:01:50|NO.62607
¤¿¤ó¤¹ÍÍ
¤¢¤é¤¿¤Ë¥½¡¼¥¹¤ò¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿
ÁᮻȤäƸ«¤Þ¤¹¡¢ËÜÅö¤Ë¤ß¤Ê¤µ¤Þ¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
¤³¤ì¤«¤é¤â¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
|
|