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 


need a little help with runninng programs with a button

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Wed Feb 06, 2008 4:11 pm    Post subject: need a little help with runninng programs with a button Reply with quote

how can i make a button read a path from a .cfg file like
Code:
//DE INT path
C:\Program Files\Darkeden\darkeden.exe
//DE FS path
C:\Program Files\darkedenFS\dk2.exe
//GO path
C:\Program Files\GameFlier\ghostonline.exe
that way you can change it, but i dont know how to do it, like DEFS button reads the 2nd path, and DE int buttons reads the 1st path, and GO reads the 3rd path, how i make it do that? please help me
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Wed Feb 06, 2008 9:40 pm    Post subject: Reply with quote

Firstly, I suggest you don't store in flat file formats like that there is no real way to easily fetch the data without creating your own parser. Instead, store it in an INI, XML, or even the registry.

This is a good INI class and article:
http://vbaccelerator.com/home/VB/Code/Libraries/Registry_and_Ini_Files/Easy_Ini_File_Access/article.asp

And for the registry:
http://vbaccelerator.com/home/VB/Code/Libraries/Registry_and_Ini_Files/Complete_Registry_Control/article.asp

And for XML files:
http://www.vbaccelerator.com/home/Vb/Code/Controls/TreeView/XML_TreeView/article.asp
(Not really directly related to XMLs but it shows how to use them.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
killar456
Master Cheater
Reputation: 0

Joined: 30 Mar 2007
Posts: 415

PostPosted: Wed Feb 06, 2008 10:29 pm    Post subject: Reply with quote

oh, ok thanks for your help
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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