ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Edit a txt file gui

<< < (2/2)

jgpaiva:
Ok, no problem, i should postit still today ;)

Candle:
Cool. thank you very much.

jgpaiva:
Ok... Check if this fits you ;)

--- ---NLines = 7
Loop %NLines%
{
FileReadLine, line, url.txt, %A_Index%
if ErrorLevel <> 0
MsgBox, something went wrong. reading line: %a_index%
Line%A_index%=%line%
}
GoSub GuiShow
return

GuiShow:
;;fill from url.txt
Gui, Add, Text, x130 y62 w100 h30 , Line1
Gui, Add, Text, x130 y97 w100 h20 , Line2
Gui, Add, Text, x130 y137 w100 h20 , Line3
Gui, Add, Text, x130 y177 w100 h20 , Line4
Gui, Add, Text, x130 y217 w100 h20 , Line5
Gui, Add, Text, x130 y257 w100 h20 , Line6
Gui, Add, Text, x130 y297 w100 h20 , Line7

Gui, Add, Edit, x166 y57 w250 h30 vLine1, %Line1%
Gui, Add, Edit, x166 y97 w250 h30 vLine2, %Line2%
Gui, Add, Edit, x166 y137 w250 h30 vLine3, %Line3%
Gui, Add, Edit, x166 y177 w250 h30 vLine4, %Line4%
Gui, Add, Edit, x166 y217 w250 h30 vLine5, %Line5%
Gui, Add, Edit, x166 y257 w250 h30 vLine6, %Line6%
Gui, Add, Edit, x166 y297 w250 h30 vLine7, %Line7%
Gui, Add, Button, x50 y337 w100 h30,&Save
Gui, Add, Text, x196 y7 w140 h30,Link Editor
Gui, Show, x249 y99 h388 w452, Link Editor
Return

buttonsave:
Gui, Submit
FileDelete, url.txt
Loop, %NLines%
{
  temp := (line%A_Index%)
  FileAppend, %temp%`n, url.txt
}
return

GuiClose:
ExitApp

Candle:
Works great. thank you .

Navigation

[0] Message Index

[*] Previous page

Go to full version