Pressing F1 returns the number of lines ( used for a quick check )
Pressing F2 deletes the first line..
Once the first line has been deleted, I need the cursor on a new line after the very last line... ( does that make sense )
How do I do that ? thanks

#include Edit.ahk #include Edit_DeleteLine.ahk #include Edit_SelectLine.ahk Menu, FileMenu, Add, Exit, Exit Menu, HelpMenu, Add, Help, Help Menu, MyMenuBar, Add, &File, :FileMenu Menu, MyMenuBar, Add, &Help, :HelpMenu Gui, Menu, MyMenuBar Gui, Add, Edit, w175 h175 hwndLogHwnd, ABABABABABABABAB`r`123451234512345`r`n999999999999999`r`nZZZZZZZZZZZZZZZZZZZZ Gui, Show,w200 H200, return Exit: Help: exitapp return F1:: len:=Edit_GetLineCount(LogHwnd) msgbox %len% return F2:: Edit_DeleteLine(LogHwnd,p_LineIdx=0) return