idanfast How do I cheat? Reputation: 0
Joined: 12 Jun 2012 Posts: 1
|
Posted: Tue Jun 12, 2012 8:27 am Post subject: Creating a new scan |
|
|
Hi,
I know this might seem a pretty stupid question, but the lack of quality documentation on the lua capabilities of CE drove me insane.
I wrote the following script:
Code: | pid=getProcessIDFromProcessName("explorer.exe")
if(pid~=nil) then
openProcess(pid)
else
showMessage("Process not found!")
return
end
ms=getCurrentMemscan()
if(ms==nil) then
ms=createMemScan(true)
end
memscan_newscan(ms)
memscan_firstScan(ms,soUnknownValue,vtByte,rtRounded,0,nil,0,0xffffffffffffffff,"+W-C",fsmNotAligened,"",false,false,false,false)
found=memscan_getAttachedFoundlist(ms)
showMessage(foundlist_getCount(found)) |
But when I try to run it I'm getting an error: attempt to call global 'memscan_newscan' (a nil value)
So apparently I don't have any function named memscan_newscan in my scope.
Just to be safe I also tried seeing what the following function returns:
Code: | type(memscan_newscan) |
It was nil...
Help would be much appreciated. Thanks!
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Jun 12, 2012 9:09 am Post subject: |
|
|
Looks like memscan_newscan didn't get implemented. It's not a problem as memscan_firstScan does a newscan as well
Also, since you are interested in the results, don't use getCurrentMemscan()
You can not wait till the results are done on that scan object. (memscan_waitTillDone() ) And immediately getting the results won't work as the scan might still be in progress. So use createMemScan() instead
_________________
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 |
|