PROFILE
RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR

Scriptspot의 토튜리얼 중에

How to create a self-updating Max script or Macro Script
라는 글이 있다.
그 글에 보면 자동 업데이트를 하기 위해서 웹에 소스를 올리고 다운 받아 업데이트 형식이 있다.
조금 형식이 번거로운거 같아 수정해보았다.
사용자 삽입 이미지
(
clearListener()
global test
try(destroydialog test) catch()
local script_ver = 0.1
local script_name = "webtest v."
local script_ver_text = script_name + script_ver as string

rollout test "Web Update Test"
(
label about1 ""
hyperLink newver_download "Update do not exist" align:#center color:(color 0 0 0) hoverColor:(color 40 177 255) visitedColor:(color 0 0 0)
button update_check_btn "Update Check" align:#center border:false width:111 height:16
activeXControl check_web "Microsoft.XMLHTTP" setupEvents:false releaseOnClose:true height:0

fn update_check = (
check_web.open "GET" "http://도메인/화일이름.php" false
check_web.setrequestheader "If-Modified-Since" "Sat, 1 Jan 1900 00:00:00 GMT"
check_web.send()
webread = (execute (check_web.responsetext))
if webread[1] > script_ver then (
newver_download.enabled = true
newver_download.text = "N Ver:" + webread[1] as string + " Update!"
newver_download.address = webread[2]
newver_download.color= (color 7 185 211)
)
if webread[1] <= script_ver then (
newver_download.enabled = false
newver_download.text = "Update do not exist"
newver_download.color= (color 0 0 0)
)
)
on test open do (
about1.text = script_ver_text
update_check()
)
on update_check_btn pressed do update_check()
)
createdialog test 300 200
)

서버의 화일에는

<?
echo("#(\"0.2\" as float,");
echo("\"다운로드링크" as string)");
?>

이런식의 php 화일을 서버에 올리면 버전체크를 위한 숫자와 다운로드 주소만으로 수동 업데이터를 만들수 있다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2008/11/20 15:43 2008/11/20 15:43
http://studio2k.teamnop.com/tt/trackback/270
studio2k:개발자로 살아가기
개발자로 살아가기
    전체 : 523953 오늘 : 172 어제 : 130
    Name
    Message
전체 (220)
Gossip (160)
Portfolio (2)
Tip and Tech (31)
Script Download (3)
3D studio Max Scripts (20)
Photoshop scripts (3)
«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
  1. 모바일스튜디오 (Mobile Studio)  2009
    소니 엑스페리아 안드로이드폰 Rachael UI 공개
  2. &quot;Wish~!&quot;  2008
    Unreal 3.x ED 통한 맵작업
  3. 도아의 세상사는 이야기  2008
    다기능의 가벼운 IE 기반 브라우저, TheWorld
  4. Conya In BackStreet  2005
    음악바톤이어받기ㅇ_ㅇ
  5. 젊은거장의 서재 속 이야기 - 시즌2  2005
    바보 이미 다 하고 있어요.
  1. 2010/06 (1)
  2. 2010/05 (4)
  3. 2010/01 (1)
  4. 2009/08 (3)
  5. 2009/07 (2)