View previous topic :: View next topic |
Author |
Message |
Arnw How do I cheat? Reputation: 0
Joined: 04 Apr 2016 Posts: 3
|
Posted: Wed Aug 09, 2017 5:59 am Post subject: Comparing two separate scan tabs |
|
|
Hi, is there a way to compare two separate scan tabs? Specifically I want to find all values in the second tab that are not in the first tab.
I did some searching and found this:
/viewtopic.php?p=5585292#5585292
But I couldn't get that script to work for me.
Thanks.
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Wed Aug 09, 2017 9:33 am Post subject: |
|
|
Does it do nothing or error or? Have you tried adding some print statements to verify that the code is running?
Zanzer wrote: | <the original code without prints> |
Code: | list = getCurrentMemscan().FoundList
print('there are', list.Count, ' items in the first list')
addr = {}
for i=0,list.Count-1,1 do
print('adding', list.Address[i]) -- may not want to do this for hundreds of thousands of results...
addr[list.Address[i]] = true
end |
Start up your new scan and execute the following:
Code: | table = getAddressList()
list = getCurrentMemscan().FoundList
print('there are', list.Count, ' items in the second list')
for i=0,list.Count-1,1 do
if addr[list.Address[i]] == nil then
print('Creating', list.Address[i]) -- may not want to do this for hundreds of thousands of results...
table.createMemoryRecord().Address = list.Address[i]
end
end |
|
|
Back to top |
|
|
Arnw How do I cheat? Reputation: 0
Joined: 04 Apr 2016 Posts: 3
|
Posted: Wed Aug 09, 2017 10:27 am Post subject: |
|
|
That worked great. Thanks.
|
|
Back to top |
|
|
|