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 


How to open two processes at the same time in ce7.1

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

Joined: 13 Sep 2018
Posts: 202

PostPosted: Fri Sep 25, 2020 11:19 pm    Post subject: How to open two processes at the same time in ce7.1 Reply with quote

I wonder if CE can open multiple processes at the same time and read and write memory to them at the same time
Code:
if f1 then f1.destroy() end
if f2 then f2.destroy() end

f1=createForm()

f2=createForm()
f2.setPosition(400,0)

lab1=createLabel(f1)
lab1.font.size=15
lab1.caption='click Open Notepad Process'

lab2=createLabel(f2)
lab2.font.size=15
lab2.caption='click Open Calc Process'

lab1.OnClick=function()
  if readSmallInteger('Notepad.exe')==nil then
    ShellExecute('C:\\Windows\\System32\\Notepad.exe')
    openProcess('Notepad.exe')
  end
  f1.caption=string.format('%.8X',getOpenedProcessID())
end

lab2.OnClick=function()
  if readSmallInteger('Calc.exe')==nil then
    ShellExecute('C:\\Windows\\System32\\Calc.exe')
    openProcess('Calc.exe')
  end
  f2.caption=string.format('%.8X',getOpenedProcessID())
end
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1525

PostPosted: Sat Sep 26, 2020 2:58 am    Post subject: Reply with quote

It may be possible if you open two CEs.
Otherwise, it can be used interchangeably as the example below.
You cannot search and change 2 codes at the same time.
Whatever the case may be, CE will do this in turn.
Result; Even if you click the commands below at the same time,
It starts from the first button you clicked, with a difference of CE milliseconds.
Or "Nil"! Wink

Code:
if f2 then f2.destroy() end

f2=createForm()
f2.Position="poDesktopCenter"

lab1=createLabel(f2)
lab1.font.size=13
lab1.caption='click Open Notepad Process and hack'

lab2=createLabel(f2)
lab2.font.size=13 lab2.Top=40
lab2.caption='click Open Calc Process and hack'



lab1.OnClick=function()
    openProcess('Notepad.exe')
  f2.caption=string.format('%.8X',getOpenedProcessID()).."-Notepad.exe"
end

lab2.OnClick=function()
openProcess('Calculator.exe') -- Windows 10
  f2.caption=string.format('%.8X',getOpenedProcessID()).."-Calc.exe"
end

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website 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