|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Stacktrace Expert Cheater Reputation: 1
Joined: 04 Jul 2015 Posts: 105
|
Posted: Thu Aug 27, 2015 4:30 am Post subject: How do I make a text that says "(ProcessName) found!&qu |
|
|
How do I make a text that says "(ProcessName) found!" in a trainer? Let's say before attaching CE to a process, a red text will say "(ProcessName) not found." then once it finds the process it'll say (ProcessName found!". Thanks! |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Thu Aug 27, 2015 4:37 am Post subject: |
|
|
use a label and set the caption property to the text you want _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
lolAnonymous Expert Cheater Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Thu Aug 27, 2015 10:47 am Post subject: |
|
|
Hmmm But What Function We Will Use Darkbyte ? |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Aug 27, 2015 10:53 am Post subject: |
|
|
Code: | function onOpenProcess(processid):
If this function is defined it will be called whenever cheat engine opens a process.
Note: The the same process might be opened multiple times in a row internally
Note 2: This function is called before attachment is fully done. You can call reinitializeSymbolhandler() to force the open to complete, but it will slow down
process opens. Alternatively, you could launch a timer which will run when the opening has finished |
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Mon Aug 31, 2015 7:11 pm Post subject: |
|
|
Maybe something like this
Code: |
red="0x000000FF"
white="0x00FFD700"
--
t=createTimer(nil)
t.Interval=1000
t.OnTimer=function(t)
----- put your process name to replace "myprocess_xxx.exe"
if getProcessIDFromProcessName("myprocess_xxx.exe") ~= nil then
local font = getProperty(UDF1.CELabel1 , "Font")
setProperty(font, "Color", white)
control_setCaption(UDF1.CELabe1, "Process found ")
else
local font = getProperty(UDF1.CELabel1 , "Font")
setProperty(font, "Color", red)
control_setCaption(UDF1.CELabe1, "Process not found ")
-- closeCE()
end
end
t.Enabled=true
|
|
|
Back to top |
|
|
lolAnonymous Expert Cheater Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Tue Sep 01, 2015 1:40 am Post subject: |
|
|
Corroder If I Have 4 Strings In My Process List
1.Firefox
2.Google Chrome
3.Maxthon
4.Plugin Container
Can U Help Me In This ? |
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Tue Sep 01, 2015 10:15 pm Post subject: |
|
|
In case Plugin Container is not a browser but it's a "process name".
Try put this code as a sub form of yours trainer under a button click
process in main form trainer.
Code: |
f = createForm()
control_setSize(f, 400,400)
control_setCaption(f, "Process List")
setProperty(f , "BiDiMode", "bdLeftToRight")
list = createListBox(f)
x,y = control_getSize(f)
control_setSize(list, x-10, y-30)
control_setPosition(list, 5,5)
button1 = createButton(f)
button2 = createButton(f)
button3 = createButton(f)
button4 = createButton(f)
control_setSize(button1, 60, 20)
control_setSize(button2, 60, 20)
control_setSize(button3, 60, 20)
control_setSize(button4, 60, 20)
control_setCaption(button1, "Get")
control_setCaption(button2, "Clear")
control_setCaption(button3, "Attach")
control_setCaption(button4, "Exit")
control_setPosition(button1, 20,y-22)
control_setPosition(button2, 100,y-22)
control_setPosition(button3, 180,y-22)
control_setPosition(button4, 280,y-22)
Items = listbox_getItems(list)
TempTable = {}
function GetTheProcessList()
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))
TempTable[i] = {PID, processname}
end
return TempTable
end
function AddTheProcessList()
GetTheProcessList()
index = 0
for y in pairs (TempTable) do
index = index+1
end
for i=0, index-1 do
if TempTable[i]~='' and TempTable[i]~= nil then
local TempText = "Process ID : "..TempTable[i][1].." Process Name : "..TempTable[i][2]
strings_add(Items, TempText)
end
end
end
function GetAndAddProcess()
TempTable = {}
strings_clear(Items)
AddTheProcessList()
end
function Clear()
TempTable = {}
strings_clear(Items)
end
function AttachToTheSelectedProcess()
local ProcessID = listbox_getItemIndex(list)
if ProcessID~=-1 then
if TempTable[ProcessID][1]~=nil then
openProcess(TempTable[ProcessID][1])
else
return showMessage("Failed to open the select process")
end
else
return showMessage("Please choose a process from the list")
end
end
function Exit()
form_hide(f)
end
control_onClick(button1,GetAndAddProcess)
control_onClick(button2,Clear)
control_onClick(button3,AttachToTheSelectedProcess)
control_onClick(button4,Exit)
|
|
|
Back to top |
|
|
|
|
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
|
|