gui, add, edit, x0 y0 w100 h400 ve, gui, add, button, x0 y400 w100 h20 gstart, 开始 gui, show Return start: GuiControlGet, e StringSplit, var, e, `n, idx = 0 Loop { FileAppend, %content%, cell.txt if A_Index > %var0% Break idx += 1 head = % var%idx% a = -1 content = Loop { a += 1 StringLen, len, a if len > 4 Break if len = 1 w = 000%a% if len = 2 w = 00%a% if len = 3 w = 0%a% if len = 4 w = %a% content = %content%%head%%w%`n } } MsgBox, Ok Return GuiClose: ExitApp
49 queries in 1.407 seconds |