なんとなく作ってみた。10分ぐらい。The 手抜き。 http://hsp.tv/play/pforum.php?mode=all&num=53943
なんとなく作ってみた。10分ぐらい。The 手抜き。 http://hsp.tv/play/pforum.php?mode=all&num=53943
#uselib "urlmon.dll"#func URLDownload "URLDownloadToFileA"int,str,str,int,intaxobj ie, "Shell.Explorer.2", 0, 0ie->"Navigate" "http://www.bing.com/"repeatwait 1if ie("Busy") == 0 : breaklooppDoc = ie("Document")repeatwait 1if pDoc("readyState") == "complete" : breakloopcomres pDivpDoc->"getElementById" "bgDiv"if varuse(pDiv) == 0 : dialog "仕様変更?" : end// 手抜き(無限ループする可能性あり)*checkpStyle = pDiv("style")url = pStyle("background-image")if url == "" {wait 10goto *check}// ぽいっとなdelcom pStyledelcom pDivdelcom pDocdelcom ie// 手抜き文字列除去url = strtrim(url, 0, 'u')url = strtrim(url, 0, 'r')url = strtrim(url, 0, 'l')url = strtrim(url, 0, '(')url = strtrim(url, 0, ')')dialog url// ダウンロードして表示してみるexist "tmp.jpg"if strsize != -1 : delete "tmp.jpg"URLDownload 0, url, "tmp.jpg", 0, 0exist "tmp.jpg"if strsize == -1{dialog "仕様変更?" : end}else{clspicload "tmp.jpg"}