Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: blinkdude on July 19, 2003, 02:45 AM

Title: Command help
Post by: blinkdude on July 19, 2003, 02:45 AM
i saw some code on this but using a textbox as the  "username " for the master... i want to use a listview for multipul people to do the command ... i need help on the code,  they had it

If Username = lstusers.txt

i need it to run off a list view any help ? x.O :)

If Username = lstusers.ListItems Then
If Left((LCase(Message)), 11) = (Form2.txttriger.Text & "disconnect") Then
cbs.Disconnect
End If
End If
Title: Re:Command help
Post by: ______ on July 19, 2003, 03:08 AM

dim i as integer
Dim TempUser as string
for i = 1 to lstusers.ListItems.Count
tempuser = lstusers.ListItems(i).text
if lcase(username) = lcase(tempuser) then
msgbox Wow they " = "
endif
next i