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


HSPTV!·Ç¼¨ÈÄ


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

2022
0405
MIZUSHIKIGitHub¤ËÃÖ¤¤¤¿¥â¥¸¥å¡¼¥ë¤ò¼«Æ°¤Ç¥¤¥ó¥¹¥È¡¼¥ë¡Úmod_netinclude.hsp - Ver.2.0¡Û0²ò·è


MIZUSHIKI

¥ê¥ó¥¯

2022/4/5(Tue) 23:57:38|NO.95919

mod_netinclude.hsp ¤Î Ver.2.0 ¤¬½ÐÍè¤Þ¤·¤¿¡£

¥Û¡¼¥à¥Ú¡¼¥¸¡§http://suwa.pupu.jp/HSP/index.html#netinclude
GitHub¡§https://github.com/MIZUSHIKI/HSP-Module/blob/master/mod_netinclude.hsp

#netinclude¤Ï¡¢GitHub¤«¤é¥â¥¸¥å¡¼¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¤½¤Î¤Þ¤Þ#include¤Ç¤­¤ë¥â¥¸¥å¡¼¥ë¤Ç¤¹¡£
¥³¥ó¥Ñ¥¯¥È¤Êmin¥Ð¡¼¥¸¥ç¥ó¤¬¤¢¤ê¡¢¥³¥Ô¥Ú¤¹¤ë¤À¤±¤ÇÍøÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
(¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¥â¥¸¥å¡¼¥ë¤ÏcommonÆâ¤Ënet¥Õ¥©¥ë¥À¤¬ºî¤é¤ì¤½¤³¤ËÊݸ¤µ¤ì¤Þ¤¹¡£)

// // ¥µ¥ó¥×¥ë mod_netinclude(min¥Ð¡¼¥¸¥ç¥ó»ÈÍÑ) // #ifdef _debug #include "hspinet.as" #include "mod_regexp.as" #define netinclude(%1,%2=_@_@) addition %1* exist"hsptmp":if strsize>0{a@_@="":b@_@="":w@_@=dir_exe+"\\common\\":y@_@="#net\include":notesel a@_@:noteload"hsptmp":noteunsel:matches a@_@,a@_@,y@_@+"\\s*\"((?:net/)?)(.+?)\"\\s*/\\s*,?\\s*(\\w*)":repeat stat:x@_@=w@_@:if"current"=a@_@.cnt.3{x@_@=""}exist x@_@+a@_@.cnt.1+a@_@.cnt.2:a@_@.cnt="0":if strsize<0{a@_@.cnt="":if""=x@_@{a@_@.cnt.3="2":m@_@++}else{a@_@.cnt.3="1":n@_@++}} loop:if n@_@+m@_@>0{s@_@="","","":z@_@="¥À¥¦¥ó¥í¡¼¥É":repeat 2,1:i@_@=cnt:foreach a@_@:if"0"=a@_@.cnt{continue}if""+i@_@!a@_@.cnt.3{continue}if""!a@_@.cnt.1{if""=b@_@{netinit:neturl"https://main-timetag.ssl-lolipop.jp/HSP3NetModules/netmod.php?req=data":netrequest_get"":repeat:netexec n@_@:if n@_@{break}await 50:loop:netgetv b@_@:matches b@_@,b@_@,"^(.*?)\t(.*?)$":j@_@=stat}k@_@=cnt a@_@.cnt="0":repeat j@_@:if getpath(b@_@.cnt.1,16)=getpath(a@_@.k@_@.2,16){a@_@.k@_@=b@_@.cnt.2:a@_@.k@_@.2=b@_@.cnt.1:break}loop:if"0"=a@_@.cnt{continue}s@_@.i@_@+=">net/(->"+a@_@.cnt+")"+a@_@.cnt.2+"\n"}else{s@_@.i@_@+=">"+a@_@.cnt.2+"\n"}loop:loop:if""=s@_@.1+s@_@.2{dialog"¥â¥¸¥å¡¼¥ë¥Ç¡¼¥¿¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿",1,y@_@:end}if""!s@_@.1{s@_@.0+=w@_@+"\n\n¤Ë\n\n"+s@_@.1:if""!s@_@.2{ s@_@.0+="\n¤ò"+z@_@+"¡¢\n------\n\n"}}if""!s@_@.2{s@_@.0+=dir_cur+"\n\n¤Ë\n\n"+s@_@.2}dialog s@_@.0+"\n¤ò"+z@_@+"¤·¤Þ¤¹¡£",2,y@_@:if stat=6{s@_@="":x@_@=dir_cur:if""=b@_@{netinit}foreach a@_@:if"0"=a@_@.cnt{continue}if"1"=a@_@.cnt.3{chdir w@_@}a@_@.cnt.1+=a@_@.cnt.2:a@_@.cnt=a@_@.cnt+a@_@.cnt.2:split a@_@.cnt.1,"/",b@_@:repeat stat-1:dirlist _@_@,b@_@.cnt,5:if stat=0{mkdir b@_@.cnt} chdir b@_@.cnt:loop:neturl"https://raw.githubusercontent.com/"+a@_@.cnt:netrequest_get"":repeat:netexec n@_@:if n@_@{break}await 50:loop:netgetv b@_@:if"40"=strmid(b@_@,0,2){s@_@+=">"+a@_@.cnt+"\n"}else{notesel b@_@:notesave getpath(a@_@.cnt,8)}chdir x@_@:loop:if""!s@_@{dialog z@_@+"¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£\n\n"+s@_@,,y@_@:end}dialog z@_@+"¤·¤Þ¤·¤¿¡£\nHSP¤òºÆ¼Â¹Ô¤·¤Æ²¼¤µ¤¤¡£",,y@_@:end}}sdim a@_@} #else #define netinclude(%1,%2=_@_@) include %1 #endif #netinclude "net/a2d+AlphaLayer.hsp"/ ; ¢«ËöÈø¡Ø/¡Ù¤Ïɬ¿Ü¡£ // ÇØ·Ê picload dir_tv+"\\sozai5.jpg" // ¥­¥ã¥éÁǺà¥í¡¼¥É alCreateImageByFile 0, dir_tv+"\\tamadot.png" ; ²èÁü¤«¤é²¾ÁÛ¥¤¥á¡¼¥¸¤òºîÀ®(¥¤¥á¡¼¥¸ID 0) // ¥­¥ã¥é alCreateImage 1, 64,64 ; ²¾ÁÛ¥¤¥á¡¼¥¸(¥¤¥á¡¼¥¸ID 1)¤òºî¤Ã¤Æ alalSetParent 1,,, 100,350 ; ¥¤¥á¡¼¥¸ID 1¤ò¥¢¥ë¥Õ¥¡¥ì¥¤¥ä¡¼¤È¤·¤ÆŽ¤êÉÕ¤±¡£ mes "ÇطʤΥ쥤¥ä¡¼(Ä̾ï¤ÎHSP¥¦¥£¥ó¥É¥¦)¤È¥­¥ã¥é¤Î¥ì¥¤¥ä¡¼¤òʬ¤±¤Æ¤¤¤ë¤Î¤Ç¡¢" mes "¥­¥ã¥é¥¯¥¿¡¼¤À¤±Æ°¤«¤·¤Æ¤âÇطʤòºÆÉÁ²è¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤»¤ó¡£" // ¥­¥ã¥é¥¯¥¿¡¼¥¢¥Ë¥á¡¼¥·¥ç¥ó¡§alCopyImageToImage ¤È alalRedraw ¤ò·«¤êÊÖ¤¹ repeat alErase alCopyImageToImage 0,1, 0,0,64,64, 64*(4+cnt\4),64*3 ; ¥¤¥á¡¼¥¸ID 0 ¤«¤é 1 ¤Ø Ê⤭¥â¡¼¥·¥ç¥ó(1¡Á4)¤ò¥³¥Ô¡¼ alalRedraw 1 ; ¥¤¥á¡¼¥¸ID 1 ¤Î¥¢¥ë¥Õ¥¡¥ì¥¤¥ä¡¼¤ò¹¹¿·¡£ alalWidth 1, ,, 100+cnt*10 ; ¥¢¥ë¥Õ¥¡¥ì¥¤¥ä¡¼(¥¤¥á¡¼¥¸ID 1)¤Î°ÌÃÖ¤ò°ÜÆ° await 500 loop

º£²ó¤Î¹¹¿·ÆâÍƤǤ¹¤¬¡¢
GitHub¤ËÃÖ¤¤¤¿¥â¥¸¥å¡¼¥ë¾ðÊó¤ò¤Þ¤È¤á¤Æµ­Ï¿(ÅÐÏ¿/¼èÆÀ)¤Ç¤­¤ë HSP3NetModules ¤È¤¤¤¦¥µ¡¼¥Ó¥¹(?)¤òºî¤ê¤Þ¤·¤¿¡£
¤³¤³¤Ë¥â¥¸¥å¡¼¥ë¤Î¾ðÊó¤ò½¸¤á¤ë¤³¤È¤Ç¡¢º£¤Þ¤Ç¤è¤ê¤â#netinclude¤Îµ­½Ò¤òû¤¯¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£

#netinclude "MIZUSHIKI/HSP-Module/master/a2d+AlphaLayer.hsp"/ ¢­ #netinclude "net/a2d+AlphaLayer.hsp"/

HSP3NetModules ¤Ï¡¢php¤ÇÆ°¤¤¤Æ¤Þ¤¹¡£
¥Ç¡¼¥¿¤Ï¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë(.data)¤ÇÊݸ¤µ¤ì¤Æ¤ª¤ê¡¢netmod.php¤Èdata¥Õ¥¡¥¤¥ë¤Î2¤Ä¤À¤±¤ÇÆ°¤¯¤Î¤Ç¥Ð¥Ã¥¯¥¢¥Ã¥×¤äÇÛÃÖ¾ì½ê(´Ä¶­)¤Î°Ü¹Ô¤â¤ä¤í¤¦¤È»×¤¨¤Ð´Êñ¤Ë¤Ç¤­¤Þ¤¹¡£
¥Ç¡¼¥¿¤ÎÃæ¿È¤âURL¤Ë¥¢¥¯¥»¥¹¤¹¤ì¤Ðï¤Ç¤â³Îǧ¤Ç¤­¤Þ¤¹¡£
https://main-timetag.ssl-lolipop.jp/HSP3NetModules/hsp3netmodules.data

php¤«¤é¤Î¥Ç¡¼¥¿½ÐÎÏ¡§https://main-timetag.ssl-lolipop.jp/HSP3NetModules/netmod.php?req=data
( ¥½¡¼¥¹¤òɽ¼¨¤·¤¿Êý¤¬¸«¤ä¤¹¤¤¤«¤â¡Ø view-source:https://main-timetag.ssl-lolipop.jp/HSP3NetModules/netmod.php?req=data ¡Ù)

phpÃæ¿È(GitHub)¡§ https://github.com/MIZUSHIKI/HSP3NetModules/blob/master/netmod.php


HSP3NetModules¤Ø¤Î¥â¥¸¥å¡¼¥ë¥Ç¡¼¥¿¤ÎÅÐÏ¿¤Ï¡¢Ã¯¤Ç¤â²Äǽ¤Ç¤¹¡£

­¡ ¤Þ¤º¤Ï¡¢mod_netinclude.hsp ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£
°Ê²¼¤òHSP¤Ç¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£common¥Õ¥©¥ë¥À¤Ë¡Ömod_netinclude.hsp¡×¤¬¥À¥¦¥ó¥í¡¼¥É¤µ¤ì¤Þ¤¹¡£
(¤Þ¤¿¤Ï¾åµ­¤Î¥Û¡¼¥à¥Ú¡¼¥¸¡¢GitHub¤«¤é¥À¥¦¥ó¥í¡¼¥É)

// mod_netinclude.hsp ¥¤¥ó¥¹¥È¡¼¥ëÍÑ¥¹¥¯¥ê¥×¥È #include "hspinet.as" dialog dir_exe+"\\common\\\n\n¤Ë\n\nmod_netinclude.hsp\n\n¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£",2,"mod_netinclude.hsp" if stat!6: end netinit: chdir dir_exe+"\\common\\" neturl "https://raw.githubusercontent.com/MIZUSHIKI/HSP-Module/master/" netload "mod_netinclude.hsp" dialog"mod_netinclude.hsp ¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤·¤¿¡£": end
­¢ ÅÐÏ¿¤Ë¤Ï mod_netinclude.hsp ¤Î netinclude_PostModuleÌ¿Îá¤ò»È¤¤¤Þ¤¹¡£
¥â¥¸¥å¡¼¥ë¤ÏÀè¤ËGitHub¤Ë¥¢¥Ã¥×¥í¡¼¥É¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£php¦¤Ç³Îǧ¤·¤Ë¹Ô¤­¤Þ¤¹¡£

//ÅÐÏ¿Îã #include "mod_netinclude.hsp" netinclude_PostModule "MIZUSHIKI/HSP-Module/master/mod_grpbox.hsp"
­£ ¤Á¤ã¤ó¤ÈÅÐÏ¿¤Ç¤­¤¿¤«¤Î³Îǧ¤Ï netinclude_GetDataÌ¿Îá¤ò»È¤¤¤Þ¤¹¡£

//¥Ç¡¼¥¿¤Î¼èÆÀ¤Èɽ¼¨ #include "mod_netinclude.hsp" netinclude_GetData

commonÆâ¤Înet¥Õ¥©¥ë¥À¤Ë¥À¥¦¥ó¥í¡¼¥É¤·¤Æ½¸Ì󤵤ì¤ë¤Î¤Ç¡¢¥â¥¸¥å¡¼¥ë¤Ëhs¥Õ¥¡¥¤¥ë(¥Ø¥ë¥×)¾ðÊ󤬽ñ¤¤¤Æ¤¢¤ì¤Ð F1¥Ø¥ë¥×¤ÇÌ¿Îá¤Î¾ÜºÙ¤â³Îǧ¤Ç¤­¤Þ¤¹¡£

#include "mod_netinclude.hsp" #netinclude "net/mod_grpbox.hsp"/ syscolor 15 :boxf :color pos 100,100 grpbox "¥°¥ë¡¼¥×¥Ü¥Ã¥¯¥¹", 150,100 ;¢« °ìÅÙHSP¼Â¹Ô¤·¤Æ¥â¥¸¥å¡¼¥ë¥À¥¦¥ó¥í¡¼¥É¸å¡¢¥­¡¼¥ï¡¼¥É¤Ë¥«¡¼¥½¥ë¤ò¹ç¤ï¤»¤Æ F1¤ò²¡¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£ pos 300,100 edgebox "¥¨¥Ã¥¸¥Ü¥Ã¥¯¥¹", 150,100

³ÆÌ¿ÎáÅù¤Î¾ÜºÙ¤Ï¥ª¥ó¥é¥¤¥ó¥Ø¥ë¥×¤òÃÖ¤¤¤Æ¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤«¤é¤´Í÷¤¯¤À¤µ¤¤¡£
http://suwa.pupu.jp/HSP/netinclude/OnlineHDL.html

---

´Êñ¤Ë¥â¥¸¥å¡¼¥ë¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤ÆÍøÍѤǤ­¤ë´Ä¶­¤òºî¤ê¤¿¤¤¤È»×¤¤¼è¤êÁȤó¤Ç¤ß¤Þ¤·¤¿¡£
¡Ö²¿¤«¤â¤Ã¤È¤³¤¦¤·¤¿Êý¤¬Îɤ¤¤Î¤Ç¤Ï¤Ê¤¤¤«¡×¤´°Õ¸«¡¦¥¢¥É¥Ð¥¤¥¹¤Ê¤É失¤ì¤Ð¹¬¤¤¤Ç¤¹¡£

Î㤨¤Ð¡¢¸½¾õ¤À¤ÈcommonÆâ¤Înet¥Õ¥©¥ë¥À¤Ë¥À¥¦¥ó¥í¡¼¥É¤µ¤ì¤ë¤Î¤Ç #include "net/mod_grpbox.hsp" ¤Î¤è¤¦¤ËËè²ó¤¹¤Ù¤Æ¤Ë¡Önet/¡×¤òµ­½Ò¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤È¤³¤í¤È¤«¤Ï¤É¤¦¤Ê¤Î¤À¤í¤¦¤«¤È¹Í¤¨¤Æ¤¤¤Þ¤¹¡£
¤¿¤À¡¢common¥Õ¥©¥ë¥À¤ËľÀÜ¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¤·¤Þ¤¦¤Î¤Ï¥Í¥Ã¥È¤«¤é¼è¤Ã¤ÆÍ褿¤â¤Î¤ò¶èÊ̤·¤Ë¤¯¤¯¤Ê¤ë¤Î¤Ç¡¢¥Õ¥©¥ë¥À¤ËÅ»¤á¤¿Êý¤¬Îɤ¤¤«¤È¹Í¤¨¸½ºß¤ÎÊýË¡¤ò¼è¤Ã¤Æ¤¤¤Þ¤¹¡£
Åù¡¹

¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£



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


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