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 load data into a table in CE?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Jun 23, 2016 6:20 pm    Post subject: Is it possible to load data into a table in CE? Reply with quote

In CE, is it possible to load data from memory and then display them in a table or form, like the one in the screenshot?

I don't mean to export the data into an excel file, I only want to show the data table in a CE trainer, so users of the trainer can select the data that they want to modify.

PS: there are hundreds of characters in game. I tried to use Listbox, but I didn't know how to select different columns.



Capture.JPG
 Description:
 Filesize:  19.82 KB
 Viewed:  4958 Time(s)

Capture.JPG


Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jun 23, 2016 6:45 pm    Post subject: Reply with quote

You want a ListView. Change the ViewStyle to vsReport.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Fri Jun 24, 2016 4:38 am    Post subject: Reply with quote

Zanzer wrote:
You want a ListView. Change the ViewStyle to vsReport.


Thanks, Zanzer. Smile

I kinda have two follow up questions:
1. If I want to display another window or form after the user clicks a box in the ListView, which function should I use in CE? or is it possible?

2. How to unable the user from changing the value of an item in the ListView?

Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Jun 24, 2016 5:02 am    Post subject: Reply with quote

1:
in the onMouseDown event you get an x and y position.
you can use the x position to find out which column the mouse is pressed down on (enumerate the columns and add their width until it reaches x )

you can show another form using form.show() or form.showModal()
showModal() won't return until the form is closed


2: set the readonly property to true

_________________
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
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Fri Jun 24, 2016 5:04 am    Post subject: Reply with quote

Dark Byte wrote:
1:
in the onMouseDown event you get an x and y position.
you can use the x position to find out which column the mouse is pressed down on (enumerate the columns and add their width until it reaches x )

you can show another form using form.show() or form.showModal()
showModal() won't return until the form is closed


2: set the readonly property to true


Thanks, Dark Byte. Smile
Back to top
View user's profile Send private message
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