Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


error when i make process list

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
amsed
How do I cheat?
Reputation: 0

Joined: 08 Feb 2021
Posts: 1

PostPosted: Mon Feb 08, 2021 12:15 pm    Post subject: error when i make process list Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites