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 


Custom File Explorer Using CE Form Components

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue Apr 14, 2020 6:33 pm    Post subject: Custom File Explorer Using CE Form Components Reply with quote

In Lazarus FP I can make a custom file explorer easy by using TShellTreeview, TSplitter, and TShellListView. Does any chance or example do the same thing in CE?. I can't find the CEListview property set to ShellTreeview1 in CE. At least, any useful example using CETreeView?.

EDIT:
Out of topic, every time I open CEF site, there is a notice for the unread topic inside a subforum, but if I go there, nothing topics are unread. I noticed that because someone made a new topic and suddenly delete the topic. This is a little annoying.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Wed Apr 15, 2020 12:53 am    Post subject: Reply with quote

use
Code:

getFileList(Path:string, searchMask:string OPTIONAL, SearchSubDirs: boolean OPTIONAL, DirAttrib: integer OPTIONAL): Returns an indexed table with filenames
getDirectoryList(Path:string, SearchSubDirs: boolean OPTIONAL): Returns an indexed table with directory names

to fill the treeview

_________________
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
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Wed Apr 15, 2020 4:48 am    Post subject: Reply with quote

Thanks, DB. Something like this:

Code:
math.randomseed(os.time())

path = 'E:\\'

for i,p in ipairs(getFileList(path, '', false)) do
 print(p)
end


for i,p in ipairs(getDirectoryList(path, false)) do
 print(p)
end


Now, I just need to try to implement the results from the code above to the events to CETreeview and CEListview.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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