07-25-2008, 07:54 AM
Make so that i is equal to the index of Leah. Indexes start from 0. For example, if Leah is the first item, i must be 0.
For example, this macro deletes "Leah" and adds "Leah (offline)"
Macro
For example, this macro deletes "Leah" and adds "Leah (offline)"
Macro
int hlb=id(3 win("Call Center" "#32770"))
int i n=LB_GetCount(hlb)
for i 0 n
,str s
,LB_GetItemText hlb i s
,;out s
,if(find(s "(offline)" 0 1)<0)
,,break
if(i=n) ret ;;all offline
LB_GetItemText hlb i s
s+" (offline)"
SendMessage hlb LB_DELETESTRING i 0
SendMessage hlb LB_INSERTSTRING i s