For some reason sometimes this code returns the correct number, other times returns nothing.
Code: Select all
NodeCount()
{
ControlGet, List, List, ,ListBox1,
loop, parse, list, `n, `r
b_index:=a_index
return % b_index
}
Code: Select all
NodeCount()
{
ControlGet, List, List, ,ListBox1,
loop, parse, list, `n, `r
b_index:=a_index
return % b_index
}
Code: Select all
ControlGet, List, List,, ListBox1, Window Title Here
Code: Select all
SendMessage 0x18B, 0, 0, ListBox1, Window Title ; LB_GETCOUNT
Count := ErrorLevel
Users browsing this forum: Lamron750 and 380 guests