Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is it possible to write value in address with the listview?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Razi
Expert Cheater
Reputation: 1

Joined: 17 Jan 2018
Posts: 202

PostPosted: Fri Aug 10, 2018 3:30 pm    Post subject: Is it possible to write value in address with the listview? Reply with quote

Is it possible to write value in the address with the listview? A form was created in the CE designer with listview. Listview was created with two columns and with the viewstyle property: vsReport. For example, reading from an address in listview is done like this:
Code:
local items = UDF1.CEListView1.Items
items.Clear()

local valuetable = {[0x00] = 'MP Plus'
,[0x01] = 'HP Plus'
,[0x02] = 'Speed Plus'
,[0x03] = 'Magic Plus'
,[0xFF] = 'NONE'
}

for x = 1, 30 do
local offset = x*4-4
local valueS = readBytes(0x009E8D4C+offset)
local item = items.Add()
item.Caption = valuetable[valueS]
item.SubItems.text = bAnd(0xFFFFFF, readInteger(0x009E8D4D+offset))
end


But, I can not even select the second column in listview. Can not select because it's SubItem? Maybe there is a tutorial on how to write the value to the address from different columns or cells? I did not find one. Found only how to read from the address in listview.
For example: In the second column, in the fifth row, there is a number(value) in this cell and we need to change it using listview and write the changed number(value) to the address. How to do this?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Thu Aug 16, 2018 5:31 am    Post subject: Reply with quote

I tested it myself in CE and found the same, that i couldn't graphically edit a second column. If you only need to edit 1 then you can just put the value in the first column...I know that CE is built in Lazarus and the forms come from that but googling really didn't seem to give me an answer (other than doing it purely with code which I imagine could be done in CE with lua as well, detect double click and popup your own inputQuery or something and set the value).

Perhaps someone else has another answer.

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Thu Aug 16, 2018 1:27 pm    Post subject: Reply with quote

you need to spawn a editbox at the position of the column you click that disapears on focus loss
_________________
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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites