Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ListBox Question
#14
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
Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)