i make ProcessList to select"conquer.exe) only but i have error
function GetTheProcessList()
local T = ()
local SL=createStringlist()
getProcesslist(SL)
for i=0,strings_getCount(SL)-1 do
T[i] = strings_getString(SL,i)
end
return T
end
function GetPros(sender)
local PL = GetTheProcessList()
local S = ()
local variable = "Conquer.exe"
CETrainer_CheckListBox1.Clear()
for x = 0, #PL do
if variable == "All"
then
CETrainer_CheckListBox1.Items.Add(PL[x])
else
if string.sub(pl[x],10) == variable
then
S[#S+1] = PL[x] --List for reference
CETrainer_CheckListBox1.Items.Add(PL[x])
end
end
end
end
GetPros()
function openPro()
local a = CETrainer_CheckListBox1.ItemIndex
if a ~= -1 ---negative 1 is nno selection
then
local b = string.sub(CETrainer_ChecklistBox1.Items[a],0,8)
b = tonumber(b,16)
openProcess(b)
else
showMessage("erorr")
end
end
function CEButton1Click(sender)
GetPros() --scan
end
function CEButton2Click(sender)
openPro() --select
end