View previous topic :: View next topic |
Author |
Message |
DrackenDarck Newbie cheater Reputation: 0
Joined: 23 Aug 2019 Posts: 14
|
Posted: Mon Dec 16, 2019 9:50 am Post subject: Filter results high/low |
|
|
Hi guys and girls,
is there a way that I can filter the result table based on the value amount?
So Like I am looking for the number 2 and set it to highest first, so if a value changes to 3,4,5, it goes to the top of the list.
Like you can filter it in the task manager, where the highest Ram using proccess is displayed on the top.
I mean the "Adress, Value, previous", buttons are clickable, but it doesnt change anything if I click them
Is there anywhere a hidden option?
Thanks!
See my example Screenshot in the attachment.
Description: |
|
Filesize: |
142.11 KB |
Viewed: |
5313 Time(s) |
|
_________________
German & English cheat(speak)ing. |
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Mon Dec 16, 2019 1:50 pm Post subject: |
|
|
No, you can't sort the list of search results.
It is expected that you narrow your search down to a reasonable limit and at that point, you won't have to.
|
|
Back to top |
|
|
DrackenDarck Newbie cheater Reputation: 0
Joined: 23 Aug 2019 Posts: 14
|
Posted: Sat Dec 28, 2019 5:36 pm Post subject: |
|
|
that is sad... would be nice if the Devs could add this as feature or... is it too complex?
_________________
German & English cheat(speak)ing. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Sat Dec 28, 2019 9:04 pm Post subject: |
|
|
the address files have a requirement that they are sorted for scanspeed reasons and the addresslist is a direct view into the address file, and only the addresses currently visible are read out, so not really
only if you have less than 1000 addresses perhaps it can be sorted at runtime, but that limitation would just confuse people with 1001 or more addresses
_________________
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Dec 29, 2019 1:10 pm Post subject: |
|
|
Add to autorun folder: copy and paste to text file, change file extension from ".txt" to ".lua"
It will add another button. After clicking it, you will get new window with sorted values. Rightclick the new window to sort in other direction.
Code: | local function showSortedFoundList()
local form = createForm(false)
form.OnClose = function (sender) return caFree end
form.BorderStyle = bsSizeable
form.Position = 'poWorkAreaCenter'
form.PopupMode = 'pmNone'
form.Caption = 'Sorted FoundList'
form.Width = (MainForm.Width * 0.75) // 1
form.Height = (MainForm.Height * 0.75) // 1
form.show()
local pm = createPopupMenu(form)
form.PopupMenu = pm
local mi = createMenuItem(pm)
pm.Items.add(mi)
mi.Caption = 'Reverse sort'
mi.OnClick = function ()
SortedFoundList_reverseSort = not SortedFoundList_reverseSort
MainForm.btnShowSortedFoundList.doClick()
form.close()
end
local listview = createListView(form)
listview.Align = alClient
listview.ViewStyle = vsReport
listview.AutoSort = false
listview.RowSelect = true
listview.BorderSpacing.Around = 5
local addColumns = listview.Columns.add
local addItems = listview.Items.add
local addrCol = addColumns()
addrCol.Caption = "Address"
addrCol.Width = listview.Canvas.getTextWidth(' DDDDDDDDDDDDDDDD ')
local valCol = addColumns()
valCol.Caption = "Value"
listview.AutoWidthLastColumn = true
local ms=getCurrentMemscan()
local fl=ms.FoundList
local results = {}
if fl.Count>0 then
for i = 0, fl.Count-1 do
results[1+#results] = {Address=fl.getAddress(i),Value=fl.getValue(i)}
end
table.sort(results, function (a,b)
local base = ms.isHexadecimal and 16 or nil
local aN,bN = tonumber(a.Value,base) or (-1/0),tonumber(b.Value,base) or (-1/0)
local aA,bA = tonumber(a.Address,16),tonumber(b.Address,16)
local res = aN==bN and aA<bA or aN<bN
if SortedFoundList_reverseSort then res = not res end
return res
end)
for _,v in ipairs(results) do
local item = addItems()
item.Caption = v.Address
item.SubItems.add(v.Value)
end
end
end
local function addBtnShowSortedFoundList()
local btn
if not MainForm.btnShowSortedFoundList then
addSortButtonAdded = true
btn = createButton(MainForm)
btn.Parent = MainForm.Panel5
btn.Name = 'btnShowSortedFoundList'
end
btn = MainForm.btnShowSortedFoundList
btn.Caption = 'Show Sorted'
btn.AutoSize = true
btn.AutoSize = false
btn.Height = MainForm.btnMemoryView.Height
btn.AnchorSideLeft.Control = MainForm.btnMemoryView
btn.AnchorSideLeft.Side = asrRight
btn.AnchorSideTop.Control = MainForm.btnMemoryView
btn.AnchorSideTop.Side = asrTop
btn.OnClick = function() showSortedFoundList() end
end
addBtnShowSortedFoundList()
|
_________________
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Mon Dec 30, 2019 5:05 am Post subject: |
|
|
DrackenDarck wrote: | that is sad... would be nice if the Devs could add this as feature or... is it too complex? |
If you know what you are looking for but not exactly, why don't you search by range?
|
|
Back to top |
|
|
DrackenDarck Newbie cheater Reputation: 0
Joined: 23 Aug 2019 Posts: 14
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Tue Jan 14, 2020 10:55 am Post subject: |
|
|
The button should be right next to the Memory View button (under the address list).
I can see it.
|
|
Back to top |
|
|
DrackenDarck Newbie cheater Reputation: 0
Joined: 23 Aug 2019 Posts: 14
|
Posted: Thu Jan 16, 2020 11:10 am Post subject: |
|
|
Csimbi wrote: | The button should be right next to the Memory View button (under the address list).
I can see it. |
Seems like I forgot to add my attachment..
There is no button.
Also not, if I make a scan.
Description: |
|
Filesize: |
287.79 KB |
Viewed: |
4782 Time(s) |
|
_________________
German & English cheat(speak)ing. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Thu Jan 16, 2020 11:29 am Post subject: |
|
|
call it sort.lua
_________________
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 |
|
|
DrackenDarck Newbie cheater Reputation: 0
Joined: 23 Aug 2019 Posts: 14
|
Posted: Thu Jan 16, 2020 1:28 pm Post subject: |
|
|
Dark Byte wrote: | call it sort.lua |
lol I thought I saved it as .lua with notepad++....
~~
seems like 134.000 reslts was too much?^^
whats the limit 1.000?
(I just made a test and searched for "5" in firefox^^)
Description: |
|
Filesize: |
61.14 KB |
Viewed: |
4767 Time(s) |
|
_________________
German & English cheat(speak)ing. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25291 Location: The netherlands
|
Posted: Thu Jan 16, 2020 1:56 pm Post subject: |
|
|
Just needs to add a few
to the loop code so the gui stays responsive
Anyhow, just wait, maybe an hour or 20
_________________
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 |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Thu Jan 16, 2020 3:27 pm Post subject: |
|
|
DrackenDarck wrote: |
whats the limit 1.000?
|
Your disk space and your lifetime, whichever comes first.
Discounting natural disasters, brownouts and such, of course.
|
|
Back to top |
|
|
DrackenDarck Newbie cheater Reputation: 0
Joined: 23 Aug 2019 Posts: 14
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Fri Jan 17, 2020 9:18 am Post subject: |
|
|
Sorting is always expensive and so, it was never intended to be sorted.
So, let's just say that it was not designed for that.
It was designed for quick search, windowing and refreshes.
What you got here is a custom LUA script that goes against that design.
|
|
Back to top |
|
|
|