#Include GetChildHWND.ahk !z:: ;Index of string to delete InputBox,N,Enter string number,Delete of N string in list box,,,,,,,,1 ActiveWindow:= WinExist("A") WinGetClass, class, A ControlGetFocus, FocusedControl, ahk_id %ActiveWindow% if not FocusedControl return c_id:=GetChildHWND(ActiveWindow,FocusedControl) SendMessage, 0x182, N, 0, %FocusedControl%, A ;MsgBox (Class=%class% Handle=%ActiveWindow%)(FC=%FocusedControl% Handle=%c_id%)