amsed How do I cheat? Reputation: 0
Joined: 08 Feb 2021 Posts: 1
|
Posted: Mon Feb 08, 2021 12:15 pm Post subject: error when i make process list |
|
|
hey
i make ProcessList to select"conquer.exe) only but i have error all time
Code: |
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'
UDF1_CheckListBox1.Clear()
for x = 0, #PL do
if variable == "All"
then
UDF1_CheckListBox1.Items.Add(PL[x])
else
if string.sub(PL[x],10) == variable
then
S[#S+1] = PL[x] --List for reference
UDF1_CheckListBox1.Items.Add(PL[x])
end
end
end
end
GetPros()
function openPro()
local a = UDF1_CheckListBox1.ItemIndex
if a ~= -1 ---negative 1 is nno selection
then
local b = string.sub(UDF1_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 |
|
|