作者为
于 发表因不满浏览器调试php代码的速度,特写了一个简单的AHK调试html源码的小工具,建议下载时间不得超过1分钟。
gui, add, edit, x0 y0 w400 h20 vaddress, gui, add, button, x400 y0 w60 h20 vbm gbm, GB2312 gui, add, button, x460 y0 w40 h20 gok Default, 加载 gui, add, edit, x0 y20 w500 h200 vshow, gui, show, , URLDownload To File bm = GB2312 Return bm: if bm = GB2312 { bm = UTF-8 GuiControl, , bm, %bm% goto, ok } Else { bm = GB2312 GuiControl, , bm, %bm% goto, ok } ok: GuiControlGet, address if bm = GB2312 FileEncoding, if bm = UTF-8 FileEncoding, UTF-8 URLDownloadToFile, %address%, %A_Temp%\tp.tmp FileRead, a, %A_Temp%\tp.tmp ;StringReplace, a, a, `n, \n`n, All GuiControl, , show, %a%`n______________%A_Now%_____________ Return GuiClose: ExitApp
60 queries in 2.113 seconds |