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 


[RESOLVED] trouble-free Scanner Is there coding to choose?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Tue Feb 13, 2018 1:51 pm    Post subject: [RESOLVED] trouble-free Scanner Is there coding to choose? Reply with quote

For example:
The following code can not find Flash Player in Google Chrome.
I have tried a lot of coding but I have chosen this scheme that is compatible with the 'UDF1' combination.
Still, this coding sometimes works properly, sometimes problematic.
Is it possible to have a more global coding? Rolling Eyes
Thank you in advance for correction through this scheme

Code:
--------------------------- SET COMBO BOX FOR BROWSER SELECTION
al = combobox_getItems(UDF1.CEComboBox1)
strings_clear(al)
strings_add(al, 'Tarayici Listesi-Browser list...')
strings_add(al, 'Chrome Flash')
strings_add(al, 'Opera')
strings_add(al, 'Firefox')
strings_add(al, 'Firefox (Unity Game)')
strings_add(al, 'Chrome Browser')
strings_add(al, 'Gameroom')
strings_add(al, 'Gameroom (Unity Game)')
setProperty(UDF1.CEComboBox1 , "ItemIndex", "0")
setProperty(UDF2 , "ItemIndex", "0")
all_enabled = 0
success = 1
----------------------------------------------
errorOnLookupFailure(false)
alreadycheckedPIDS={}
openNextProcTimer = createTimer(nil,false)
timer_setInterval(openNextProcTimer, 1000)
timer_onTimer(openNextProcTimer,
function(sender)
   local tempPIDtable = getPids()
   if #tempPIDtable == 0 then return end
   timer_setEnabled(sender,false)
   openProcess(tempPIDtable[1])
end)

-------------------------- LOOK UP FOR PIDS
errorOnLookupFailure(false)
alreadycheckedPIDS={}
openNextProcTimer = createTimer(nil,false)
timer_setInterval(openNextProcTimer, 1000)
timer_onTimer(openNextProcTimer,
function(sender)
   local tempPIDtable = getPids()
   if #tempPIDtable == 0 then return end
   timer_setEnabled(sender,false)
   openProcess(tempPIDtable[1])
end)

function checkProcessMajor()
   reinitializeSymbolhandler()
    local processNames = {"pepflashplayer.dll", "AdobeCPGetAPI", "plugin-container.exe",
      "pepflashplayer64_28_0_0_137.dll", "chrome.exe",
      "pepflashplayer32_28_0_0_137.dll", "pepflashplayer32_28_0_0_161.dll",
      "pepflashplayer64_28_0_0_161.dll", "pepflashplayer32_27_0_0_183.dll",
      "pepflashplayer32_27_0_0_187.dll", "pepflashplayer64_27_0_0_183.dll",
      "pepflashplayer64_28_0_0_126.dll", "pepflashplayer32_28_0_0_126.dll",
      "Opera.exe", "firefox.exe"}
    for _,process in ipairs(processNames ) do
      if getAddress(process) ~= nil then return true end
   end
   return false
end

function getPids()
   local SL = getProcesslist() -- regular lua table, index=PID and value=processname
    local tempPIDtable={}
   for PID, processname in pairs(SL) do
      if processname == "chrome.exe" then
         if alreadycheckedPIDS[PID]~=true then
            table.insert(tempPIDtable,PID)
         end
      end
   end
   return tempPIDtable
end

function checkProcess(sender)
   timer_setEnabled(sender,false)
   alreadycheckedPIDS[getOpenedProcessID()]=true
   if checkProcessMajor() then
      timer_setEnabled(openNextProcTimer,false)
      alreadycheckedPIDS={}
      enableBrowserPid()
   else
      timer_setEnabled(openNextProcTimer,true)
   end
end

checkProcessTimer = createTimer(nil,false)
timer_setInterval(checkProcessTimer, 100)
timer_onTimer(checkProcessTimer, checkProcess)

function onOpenProcess()
   if success then return end
   timer_setEnabled(checkProcessTimer,true)
end

----------------------------------------- BROWSER SELECT -----------------------------------------
function scanBrowser()
   AttachItems = combobox_getItems(UDF1.CEComboBox1)
   AttachIndex = combobox_getItemIndex(UDF1.CEComboBox1)
control_setCaption(UDF1_CEButton4, "Wait.. Bekleyin..")
   processMessages()
   if AttachIndex == -1 then return end
   if AttachIndex == 0 then
      control_setCaption(UDF1_CEButton4, "Browser select! Tarayıcı Sešin!")
      return
   end
   local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Chrome Browser' then
      success = 0
      local test = openProcess("chrome.exe")
      if test == nil then
      control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
                timer_setEnabled(openNextProcTimer,false)
         return
           end
      strings_add(getAutoAttachList(),"chrome.exe")
      timer_setEnabled(openNextProcTimer,true)
      return
        end
    local temp = false
   if check == 'Gameroom' then
      facebookarcadescan()
      return
   else
      temp = false
   end


   if check == 'Gameroom (Unity Game)' then
      facebookarcadeunityscan()
      return
   else
      temp = false
   end
   local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Firefox' or check == 'Internet Explorer' or check == 'Opera' or check == 'Chrome Flash' then openProcess("FlashPlayerPlugin") end
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("kernel32.dll")==0
   if err==true then
      control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
   else
      local PID=getOpenedProcessID()
      control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - flash player")
end

      local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Chrome Browser' then
      success = 0
      local test = openProcess("chrome.exe")
      if test == nil then
         control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
         timer_setEnabled(openNextProcTimer,false)
         return
      end
      strings_add(getAutoAttachList(),"chrome.exe")
      timer_setEnabled(openNextProcTimer,true)
      return

   end

      local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Opera' then
      success = 0
      local test = openProcess("Opera.exe")
      if test == nil then
         control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
         timer_setEnabled(openNextProcTimer,false)
         return
      end
      strings_add(getAutoAttachList(),"Opera.exe")
      timer_setEnabled(openNextProcTimer,true)
      return

   end


      local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Firefox (Unity Game)' then
      success = 0
      local test = openProcess("plugin-container.exe")
      if test == nil then
         control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
         timer_setEnabled(openNextProcTimer,false)
         return
      end
      strings_add(getAutoAttachList(),"plugin-container.exe")
      timer_setEnabled(openNextProcTimer,true)
      return

   end
end
function facebookarcadescan (sender)
errorOnLookupFailure(false);
facebookarcade = openProcess("Facebook Gameroom Browser.exe")
facebookarcadeAttach =   {
                  AllProcesses = {};
                  RightProccess = function () return (getAddress("Facebook Gameroom Browser.exe")~=0 or getAddress("Facebook Gameroom Browser.exe")~=0) end;
                  FindProcess = function () if (facebookarcadeAttach.Started) then return end; if (#facebookarcadeAttach.AllProcesses == 0) then facebookarcadeAttach.GetfacebookarcadeProcesses(); end; createNativeThread(function ()   facebookarcadeAttach.Started = true; for k,v in pairs(facebookarcadeAttach.AllProcesses) do openProcess(k); reinitializeSymbolhandler(); if (facebookarcadeAttach.RightProccess()) then facebookarcadeAttach.Function(); facebookarcadeAttach.Started = false; break; end; end; facebookarcadeAttach.AllProcesses = {}; facebookarcadeAttach.Started = false; end); end;
                  GetfacebookarcadeProcesses = function () local SL=createStringlist(); getProcesslist(SL); for i=0,strings_getCount(SL)-1 do local entry = strings_getString(SL,i); local processname = entry:sub(10,255); local PID = tonumber('0x'..entry:sub(1,8)); if processname:lower() == 'Facebook Gameroom Browser.exe' then facebookarcadeAttach.AllProcesses[PID] = true; end; end; end;
                  Started = false;
                  Start = function (Function) facebookarcadeAttach.Function = Function; facebookarcadeAttach.FindProcess();end;
                  Function = nil;

               };

facebookarcadeAttach.Start(function () messageDialog('Attached to Gameroom', mtInformation, mbOK); end)
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("Facebook Gameroom Browser.exe")==0
   if err==true then
control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
   else
      local PID=getOpenedProcessID()
      control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Gameroom")
   end
end

function facebookarcadeunityscan (sender)
errorOnLookupFailure(false);
facebookarcadeunity = openProcess("fbunity")
facebookarcadeunityAttach =   {
                  AllProcesses = {};
                  RightProccess = function () return (getAddress("fbunity")~=0 or getAddress("fbunity")~=0) end;
                  FindProcess = function () if (facebookarcadeunityAttach.Started) then return end; if (#facebookarcadeunityAttach.AllProcesses == 0) then facebookarcadeunityAttach.GetfacebookarcadeunityProcesses(); end; createNativeThread(function ()   facebookarcadeunityAttach.Started = true; for k,v in pairs(facebookarcadeunityAttach.AllProcesses) do openProcess(k); reinitializeSymbolhandler(); if (facebookarcadeunityAttach.RightProccess()) then facebookarcadeunityAttach.Function(); facebookarcadeunityAttach.Started = false; break; end; end; facebookarcadeunityAttach.AllProcesses = {}; facebookarcadeunityAttach.Started = false; end); end;
                  GetfacebookarcadeunityProcesses = function () local SL=createStringlist(); getProcesslist(SL); for i=0,strings_getCount(SL)-1 do local entry = strings_getString(SL,i); local processname = entry:sub(10,255); local PID = tonumber('0x'..entry:sub(1,8)); if processname:lower() == 'fbunity' then facebookarcadeunityAttach.AllProcesses[PID] = true; end; end; end;
                  Started = false;
                  Start = function (Function) facebookarcadeunityAttach.Function = Function; facebookarcadeunityAttach.FindProcess();end;
                  Function = nil;

               };

facebookarcadeunityAttach.Start(function () messageDialog('Attached to Gameroom', mtInformation, mbOK); end)
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("fbunity")==0
   if err==false then
     control_setCaption(UDF1_CEButton4, "Not Found! Aktif Değil!")
   else
      local PID=getOpenedProcessID()
           end
end

local function browser(text, key)
   return text:gsub("%a", function(t)
         local base = (t:lower() == t and string.byte('a') or string.byte('A'))

         local r = t:byte() - base
         r = r + key
         r = r%26 -- works correctly even if r is negative
         r = r + base
         return string.char(r)
      end)
end

local function PIDD(text, key)
   return browser(text, -key)
end

Scanning = {
   browser = browser,
   PIDD = PIDD,
}
----------------------------------------- ENABLE HACKS -----------------------------------------
function enableHacks()
setProperty(showMessage)
local PID=getOpenedProcessID()
local check = strings_getString(AttachItems,AttachIndex)
if check == 'Firefox' or check == 'Internet Explorer' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - flash player plugin")
elseif check == 'Chrome Flash' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - flash player")
elseif check == 'Opera' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Opera.exe")
elseif check == 'Firefox (Unity Game)' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Firefox(Unity Game)")
elseif check == 'Chrome Browser' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Chrome Browser")
elseif check == 'Gameroom' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Gameroom(Unity Game)")
elseif check == 'Gameroom' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Gameroom")
end
success = 1
end

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!


Last edited by Aylin on Sat Feb 17, 2018 9:06 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 619

PostPosted: Tue Feb 13, 2018 5:33 pm    Post subject: Reply with quote

Before trying to locate what is wrong on your script, did you try to find flash player is run or not using CE it self ?. I mean try open the game site and then open CE -> Open Process and find if flash player / plugin-container is there or not.

Also try other sites which contains flash game and then do same thing. Is CE detect flash player running or not.

If CE can't found flash player in every sites which contain flash object, then the problem is not on your script, but it is on your browser setting or flash setting.

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Tue Feb 13, 2018 6:13 pm    Post subject: Reply with quote

Locate the flash player above scenario, I wonder whether found.
Pepflashplayer.dll without deleting files.
Would you check if there was an error in the code? Please Rolling Eyes

For example, in Trainer, giving results with the Google Chrome browser.
"chrome.exe"
It does not see it as a Flash player.

Browser and flash up to date.
But it finds an exe instead of a flash.
All my doubts concentrated on coding.
Is it possible to find a flash player with this encoding? Rolling Eyes

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!
Back to top
View user's profile Send private message MSN Messenger
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Wed Feb 14, 2018 3:53 pm    Post subject: Reply with quote

I searched for sub-forums of CE.
Auto-flash and find Plugin-container.exe,
I also created an infrastructure that gives you a browser selection list if you do not have flash.
1 Active with ImageClick and closing with doubleClick.
Thank you for giving me an idea, Corroder.

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 619

PostPosted: Wed Feb 14, 2018 7:10 pm    Post subject: Reply with quote

I little confuse with your script :

1. This part, why you did double typing ?

Code:
setProperty(UDF2 , "ItemIndex", "0")
all_enabled = 0
success = 1
----------------------------------------------
errorOnLookupFailure(false)
alreadycheckedPIDS={}
openNextProcTimer = createTimer(nil,false)
timer_setInterval(openNextProcTimer, 1000)
timer_onTimer(openNextProcTimer,
function(sender)
   local tempPIDtable = getPids()
   if #tempPIDtable == 0 then return end
   timer_setEnabled(sender,false)
   openProcess(tempPIDtable[1])
end)

-------------------------- LOOK UP FOR PIDS
errorOnLookupFailure(false)
alreadycheckedPIDS={}
openNextProcTimer = createTimer(nil,false)
timer_setInterval(openNextProcTimer, 1000)
timer_onTimer(openNextProcTimer,
function(sender)
   local tempPIDtable = getPids()
   if #tempPIDtable == 0 then return end
   timer_setEnabled(sender,false)
   openProcess(tempPIDtable[1])
end)


2. You plan to show opened process on several buttons caption. Why not show opened process in a label ?.

Code:
local check = strings_getString(AttachItems,AttachIndex)
if check == 'Firefox' or check == 'Internet Explorer' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - flash player plugin")
elseif check == 'Chrome Flash' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - flash player")
elseif check == 'Opera' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Opera.exe")
elseif check == 'Firefox (Unity Game)' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Firefox(Unity Game)")
elseif check == 'Chrome Browser' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Chrome Browser")
elseif check == 'Gameroom' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Gameroom(Unity Game)")
elseif check == 'Gameroom' then
control_setCaption(UDF1_CEButton4, "PID: " .. PID .. " - Gameroom")
end


3. I tried my open process template script, using chrome and then open flash games via FB and also via FB Game Room. I am not found any problem to detect flash player while game is running.

Code:
f     = {}
f[1]  = createForm(false)
f[2]  = createGroupBox(f[1])
f[3]  = createLabel(f[2])
f[4] = createComboBox(f[2])
f[5] = createButton(f[2])
setProperty(f[1] , "ShowInTaskBar", 'stAlways')
setProperty(f[1] , "Position", "poScreenCenter")
setProperty(f[1] , "BiDiMode", "bdLeftToRight")
control_setSize(f[1], 425, 110)
control_setSize(f[2], 400, 90)
control_setSize(f[4], 255, 21)
control_setSize(f[5], 107, 28)
control_setPosition(f[2], 10, 5)
control_setPosition(f[3], 10, 45)
control_setPosition(f[4], 10, 15)
control_setPosition(f[5], 280, 15)
control_setCaption(f[1], "CRDR Attach Browser Template 1.3")
control_setCaption(f[3], "Attached To Process : Satus: waiting...")
control_setCaption(f[5], "Select Process")

al = combobox_getItems(f[4])
strings_clear(al)
strings_add(al, 'Browser list...')
strings_add(al, 'Google Chrome')
strings_add(al, 'Firefox')
strings_add(al, 'Firefox(Unity Game)')
strings_add(al, 'Maxthon')
strings_add(al, 'Gameroom')
strings_add(al, 'Gameroom (Unity Game)')
setProperty(f[4] , "ItemIndex", "0")
all_enabled = 0
success = 1

errorOnLookupFailure(false)
alreadycheckedPIDS={}
openNextProcTimer = createTimer(nil,false)
timer_setInterval(openNextProcTimer, 1000)
timer_onTimer(openNextProcTimer,
function(sender)
 local tempPIDtable = getPids()
 if #tempPIDtable == 0 then return end
 timer_setEnabled(sender,false)
 openProcess(tempPIDtable[1])
end)


function checkProcessMajor()
   reinitializeSymbolhandler()
   if getAddress("pepflashplayer.dll")~=0 or getAddress("AdobeCPGetAPI") ~=0 then
      return true
   end
   return false
end

function getPids()
   local SL=createStringlist()
   getProcesslist(SL)
   local tempPIDtable={}
   for i=0,strings_getCount(SL)-1 do
      local entry = strings_getString(SL,i)
      local processname = entry:sub(10,255)
      local PID = tonumber('0x'..entry:sub(1,8))
      if processname == "chrome.exe" then
         if alreadycheckedPIDS[PID]~=true then
            table.insert(tempPIDtable,PID)
         end
      end
   end
   object_destroy(SL)
   return tempPIDtable
end

function checkProcess(sender)
   timer_setEnabled(sender,false)
   alreadycheckedPIDS[getOpenedProcessID()]=true
   if checkProcessMajor() then
      timer_setEnabled(openNextProcTimer,false)
      alreadycheckedPIDS={}
      enableHacks()
   else
      timer_setEnabled(openNextProcTimer,true)
   end
end

checkProcessTimer = createTimer(nil,false)
timer_setInterval(checkProcessTimer, 100)
timer_onTimer(checkProcessTimer, checkProcess)

function onOpenProcess()
   if success == 1 then return end
   timer_setEnabled(checkProcessTimer,true)
end

function scanBrowser()
   AttachItems = combobox_getItems(f[4])
   AttachIndex = combobox_getItemIndex(f[4])
   control_setCaption(f[3], "Attached to PID: " .. "Scanning Process, Please wait...")
   processMessages()
   if AttachIndex == -1 then return end
   if AttachIndex == 0 then
       beep()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. "no Browser selected.")
      return
   end
   local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Google Chrome' then
      success = 0
      local test = openProcess("chrome.exe")
      if test == nil then
         beep()
          beep()
         control_setCaption(f[3], "Attached to PID: " .. "Chrome not found.")
         timer_setEnabled(openNextProcTimer,false)
         return
      end
      strings_add(getAutoAttachList(),"chrome.exe")
      timer_setEnabled(openNextProcTimer,true)
      return
   end

    local temp = false
   if check == 'Gameroom' then
      facebookarcadescan()
      return
   else
      temp = false
   end


   if check == 'Gameroom (Unity Game)' then
      facebookarcadeunityscan()
      return
   else
      temp = false
   end

   if check == 'Firefox' or check == 'Internet Explorer' or check == 'SeaMonkey Windows 7' then openProcess("FlashPlayerPlugin") end
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("kernel32.dll")==0
   if err==true then
      beep()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. "Flash player plugin not found")
   else
      local PID=getOpenedProcessID()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - flash player plugin")
   end

      if check == 'Firefox(Unity Game)' or check == 'Internet Explorer Windows XP' or check == 'SeaMonkey Windows XP' then openProcess("plugin-container.exe") end
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("kernel32.dll")==0
   if err==true then
      beep()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. "Flash player plugin not found")
   else
      local PID=getOpenedProcessID()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - flash player plugin")
   end

      local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Maxthon' then
      success = 0
      local test = openProcess("Maxthon.exe")
      if test == nil then
         beep()
         beep()
         control_setCaption(f[3], "Attached to PID: " .. "Maxthon not found.")
         timer_setEnabled(openNextProcTimer,false)
         return
      end
      strings_add(getAutoAttachList(),"Maxthon.exe")
      timer_setEnabled(openNextProcTimer,true)
      return
   end
end

function facebookarcadescan (sender)
errorOnLookupFailure(false);
facebookarcade = openProcess("CefSharp.BrowserSubprocess.exe")
facebookarcadeAttach =   {
                  AllProcesses = {};
                  RightProccess = function () return (getAddress("CefSharp.BrowserSubprocess.exe")~=0 or getAddress("CefSharp.BrowserSubprocess.exe")~=0) end;
                  FindProcess = function () if (facebookarcadeAttach.Started) then return end; if (#facebookarcadeAttach.AllProcesses == 0) then facebookarcadeAttach.GetfacebookarcadeProcesses(); end; createNativeThread(function ()   facebookarcadeAttach.Started = true; for k,v in pairs(facebookarcadeAttach.AllProcesses) do openProcess(k); reinitializeSymbolhandler(); if (facebookarcadeAttach.RightProccess()) then facebookarcadeAttach.Function(); facebookarcadeAttach.Started = false; break; end; end; facebookarcadeAttach.AllProcesses = {}; facebookarcadeAttach.Started = false; end); end;
                  GetfacebookarcadeProcesses = function () local SL=createStringlist(); getProcesslist(SL); for i=0,strings_getCount(SL)-1 do local entry = strings_getString(SL,i); local processname = entry:sub(10,255); local PID = tonumber('0x'..entry:sub(1,8)); if processname:lower() == 'CefSharp.BrowserSubprocess.exe' then facebookarcadeAttach.AllProcesses[PID] = true; end; end; end;
                  Started = false;
                  Start = function (Function) facebookarcadeAttach.Function = Function; facebookarcadeAttach.FindProcess();end;
                  Function = nil;

               };

facebookarcadeAttach.Start(function () messageDialog('Attached to Gameroom', mtInformation, mbOK); end)
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("CefSharp.BrowserSubprocess.exe")==0
   if err==true then
      beep()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. "Gameroom Not Found")
   else
      local PID=getOpenedProcessID()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - Gameroom")
   end
end

function facebookarcadeunityscan (sender)
errorOnLookupFailure(false);
facebookarcadeunity = openProcess("fbunity")
facebookarcadeunityAttach =   {
                  AllProcesses = {};
                  RightProccess = function () return (getAddress("fbunity")~=0 or getAddress("fbunity")~=0) end;
                  FindProcess = function () if (facebookarcadeunityAttach.Started) then return end; if (#facebookarcadeunityAttach.AllProcesses == 0) then facebookarcadeunityAttach.GetfacebookarcadeunityProcesses(); end; createNativeThread(function ()   facebookarcadeunityAttach.Started = true; for k,v in pairs(facebookarcadeunityAttach.AllProcesses) do openProcess(k); reinitializeSymbolhandler(); if (facebookarcadeunityAttach.RightProccess()) then facebookarcadeunityAttach.Function(); facebookarcadeunityAttach.Started = false; break; end; end; facebookarcadeunityAttach.AllProcesses = {}; facebookarcadeunityAttach.Started = false; end); end;
                  GetfacebookarcadeunityProcesses = function () local SL=createStringlist(); getProcesslist(SL); for i=0,strings_getCount(SL)-1 do local entry = strings_getString(SL,i); local processname = entry:sub(10,255); local PID = tonumber('0x'..entry:sub(1,8)); if processname:lower() == 'fbunity' then facebookarcadeunityAttach.AllProcesses[PID] = true; end; end; end;
                  Started = false;
                  Start = function (Function) facebookarcadeunityAttach.Function = Function; facebookarcadeunityAttach.FindProcess();end;
                  Function = nil;

               };

facebookarcadeunityAttach.Start(function () messageDialog('Attached to Gameroom', mtInformation, mbOK); end)
      errorOnLookupFailure(false)
      reinitializeSymbolhandler()
      err=getAddress("fbunity")==0
   if err==false then
      beep()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. "Gameroom Unity Game Not Found")
   else
      local PID=getOpenedProcessID()
      beep()
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - Gameroom(Unity Game)")
   end
end

function enableHacks()
   setProperty(getProperty(f[3] , "Font"), "Color", white)
   local PID=getOpenedProcessID()
   local check = strings_getString(AttachItems,AttachIndex)
   if check == 'Firefox' or check == 'Internet Explorer' then
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - flash player plugin")
      beep()
    elseif check == 'Google Chrome' then
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - chrome.exe")
      beep()
   elseif check == 'Maxthon' then
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - Maxthon.exe")
       beep()
    elseif check == 'SeaMonkey' then
      control_setCaption(f[3], "Attached to PID: " .. PID .. " - SeaMonkey")
       beep()
    end
   success = 1
end

function CloseTrainer()
   form_hide(f[1])
   closeCE()
end

control_onClick(f[5], scanBrowser)
form_onClose(f[1], CloseTrainer)
form_show(f[1])

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Fri Feb 16, 2018 3:26 am    Post subject: Reply with quote

In the example you gave, I experienced the following transaction:
1) Chrome on (all other browsers off)
2) Google Chrome was selected and the search button was pressed.
3) CRDR tested all PIDs, but no results were obtained.
4) Firefox was moved and the search button was pressed.
5) CRDR has confirmed a PID from Chrome while Firefox Browser is off! Rolling Eyes

That's exactly what I want to say!
On different PCs, instead of Process Select, which produces different results
Every PC and game needed a Global Function.

The following CT file can give this result.
Take a look at this, master.

Global Flash Button
It will automatically find flash player for you.
If your game is not a Flash Player infrastructure
He will open a selection window.
Double-click on our selection and confirm!

or different game.exe into the lower selection box.
We always work to go one step further.
Write your opinion and suggestions for improvements.
Thank you again for your support.

https://www.dropbox.com/s/q2cpdi0dc6lahpn/ByKARAHANLI_ProcessV1.1.CT?dl=0

(Note: I shared the Trainer CT File with your help in the Forum.
You still have not made a comment. You and FreeER! Please take this into consideration. Rolling Eyes )

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 619

PostPosted: Sat Feb 17, 2018 7:10 am    Post subject: Reply with quote

Quote:
The following CT file can give this result.
Take a look at this, master.

Global Flash Button
It will automatically find flash player for you.
If your game is not a Flash Player infrastructure
He will open a selection window.
Double-click on our selection and confirm!

or different game.exe into the lower selection box.
We always work to go one step further.
Write your opinion and suggestions for improvements.
Thank you again for your support.

https://www.dropbox.com/s/q2cpdi0dc6lahpn/ByKARAHANLI_ProcessV1.1.CT?dl=0


Very good, not surprise. I have seen that code some where in forum and also at github.
The first person bring that code to this forum is @Panraven.
Anyway..good luck.

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Sat Feb 17, 2018 8:06 am    Post subject: Reply with quote

[quote="Corroder"]
Quote:


Very good, not surprise. I have seen that code some where in forum and also at github.
The first person bring that code to this forum is @Panraven.
Anyway..good luck.


While waiting for a reply, I do not stop.
I researched.
We still have a chance for more advanced codes.
Pop-ups and Browser selections are available. I need to figure them out. Rolling Eyes
Thanks again. it was a beautiful forum.

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!
Back to top
View user's profile Send private message MSN Messenger
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