View previous topic :: View next topic |
Author |
Message |
sir-gunny Advanced Cheater Reputation: 0
Joined: 15 Mar 2012 Posts: 77
|
Posted: Mon Jul 13, 2015 11:55 am Post subject: Disable a MemoryRecord without executing the disable part |
|
|
Hi.
If i use openProcess() to reopen a closed process, the enabled MemoryRecord's stay active. If i change active to false, the disable part get execute. How can i cheange it to false without executing the disable part??
greez from gunny |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Jul 13, 2015 5:11 pm Post subject: |
|
|
Code: | local script = record.Script
record.Script = nil
record.Active = false
record.Script = script |
or
Code: | if STOP_EXECUTION == true then
assert(false)
end
...
openProcess()
STOP_EXECUTION = true
for each_record do
record.Active = false
end
STOP_EXECUTION = false |
|
|
Back to top |
|
|
sir-gunny Advanced Cheater Reputation: 0
Joined: 15 Mar 2012 Posts: 77
|
Posted: Wed Jul 15, 2015 10:18 am Post subject: |
|
|
Zanzer wrote: | Code: | if STOP_EXECUTION == true then
assert(false)
end
...
openProcess()
STOP_EXECUTION = true
for each_record do
record.Active = false
end
STOP_EXECUTION = false |
|
I dont understand this code. Can you explain it to me please?
EDIT:
Do you mean somethink like this:?
Code: | function _blub()
local AddressList = getAddressList()
local MemRecCount = AddressList.Count
local STOP_EXECUTION, MemRec
local iProcessName = getProcessIDFromProcessName("calc.exe")
openProcess(iProcessName)
for i=0, MemRecCount-1 do
MemRec = AddressList.getMemoryRecord(i)
if MemRec.Active == true then
assert(false,i+1)
end
end
end |
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Jul 15, 2015 4:54 pm Post subject: |
|
|
Code: | function _blub()
local AddressList = getAddressList()
local MemRecCount = AddressList.Count
local MemRec
local iProcessName = getProcessIDFromProcessName("calc.exe")
openProcess(iProcessName)
for i=0, MemRecCount-1 do
MemRec = AddressList.getMemoryRecord(i)
if MemRec.Active == true then
local script = MemRec.Script
MemRec.Script = nil
MemRec.Active = false
MemRec.Script = script
end
end
end |
|
|
Back to top |
|
|
|