#Include GetChildHWND.ahk !z:: ;Find string that begins with the characters in a specified string InputBox,s,Enter name of string, Retrieve number of string with same beginning,,,,,,,, VAR_address:= DllCall("CharNext", str, s, UInt)-1 ActiveWindow:= WinExist("A") WinGetClass, class, A ControlGetFocus, FocusedControl, ahk_id %ActiveWindow% if not FocusedControl return c_id:=GetChildHWND(ActiveWindow,FocusedControl) SendMessage, 0x18f, 0, VAR_address, %FocusedControl%, A MsgBox (Number of first finded string=%ErrorLevel%)