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 


Help me learn~
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 4:41 pm    Post subject: Help me learn~ Reply with quote

Ok, so I've been bored and wanting to learn some Delphi..

I created this program, which really does nothing..its just for my own fun~



Anyways, I got some of the buttons to work, but need help with others..

This is basically a program to launch my things,(Yes I have desktop icons)

I've marked all the ones I got working with a Green Dot..



And I would like some help on how to get the others working..

I would also like to learn how to create a pop-up 'about' box..

All help welcome~

Thanks in advance~

-Lorrenzo

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Jul 24, 2007 4:42 pm    Post subject: Reply with quote

post source code
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 4:51 pm    Post subject: Reply with quote

There, not much..prolly will need a fix or 2


The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Jul 24, 2007 5:09 pm    Post subject: Reply with quote

Hardcoding to C:\. Bad.

Use SHGetFolderPath to get the paths to program files, my documents, my pictures etc via class IDs. To get to the root (in your case c:\, in my case d:\) use PathStripToRoot. To check whether programs like AOL or photoshop are installed and where they're installed, use the registry (where add/remove programs stores the information)
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 24, 2007 5:09 pm    Post subject: Reply with quote

Um, whats so hard about using shellexecute again? And to make an about form come up. Make a new form and design it then. Then double click on the about button and put this code.

Code:

Form2:=TForm2.Create(self);
  Form2.ShowModal;

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 5:13 pm    Post subject: Reply with quote

appalsap wrote:
Hardcoding to C:\. Bad.

Use SHGetFolderPath to get the paths to program files, my documents, my pictures etc via class IDs. To get to the root (in your case c:\, in my case d:\) use PathStripToRoot. To check whether programs like AOL or photoshop are installed and where they're installed, use the registry (where add/remove programs stores the information)


Ok, I think I understand..

oib111 wrote:
Um, whats so hard about using shellexecute again? And to make an about form come up. Make a new form and design it then. Then double click on the about button and put this code.

Code:

Form2:=TForm2.Create(self);
  Form2.ShowModal;


Thanks

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 5:21 pm    Post subject: Reply with quote

You may want to use CreateProcess() instead of ShellExecute() to open your programs, if that's what your doing right now.
_________________
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Jul 24, 2007 5:40 pm    Post subject: Reply with quote

on some computers photo shop directory is diffrent/doesnt exist...
so use a batch file and put photo shop on the same folder or another and do in the batch file:
move photoshopfoldername: c:\Docume~1\%username%\desktop
i dont really remember the move command im not sure its like that...
u can also do the same with shell execute... its easier...

paint = MSPaint?

ShellExecute(Handle, 'open', 'C:\Windows\System32\MSPaint.exe', nil, nil, SW_SHOWNORMAL);

notepad:

ShellExecute(Handle, 'open', 'C:\Windows\System32\Notepad.exe', nil, nil, SW_SHOWNORMAL);

My Documents:

i dont know on delphi... i know with command prompt:
start C:\Docume~1\%username%\desktop\Mydocu~1\

and u can use shell execute on that batch file...

maple:

ShellExecute(Handle, 'open', 'C:\Program Files\Nexon\MapleStory\MapleStory.exe', nil, nil, SW_SHOWNORMAL);

(might be wizet for old maple users... =\ i think...)


c: lol O_o

ShellExecute(Handle, 'open', 'C:\', nil, nil, SW_SHOWNORMAL);

internet?

ShellExecute(Handle, 'open', 'http://?????', nil, nil, SW_SHOWNORMAL);


delphi if i remember..:
ShellExecute(Handle, 'open', 'C:\Program Files\Borland\Delphi7\Delphi7\Delphi 7.exe', nil, nil, SW_SHOWNORMAL);
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 5:45 pm    Post subject: Reply with quote

Symbol, did you even read what appalsap wrote? And stop using ShellExecute to open programs. And after, you all say "I'm here to learn" you don't even take in consideration what other people said.
_________________
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Jul 24, 2007 5:47 pm    Post subject: Reply with quote

no i havent read O_o
now i did... =\
i dont even know what she means im new at delphi Surprised
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 5:55 pm    Post subject: Reply with quote

In appalsap post you can find 2 functions: PathStripToRoot and SHGetFolderPath. Now there's this cool site called MSDN So you go there's, and there's a search box on the top left, you search those functions there. You will end up with a page that will explain to you what that function does.

Example are in C, and since you may not understand C, you go to google and search for example "PathStripToRoot delphi" Or something like that, and well look at examples and that's how you learn.

_________________
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Jul 24, 2007 6:06 pm    Post subject: Reply with quote

already searched SHGetFolderPath delphi =)
reading now
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Tue Jul 24, 2007 6:37 pm    Post subject: Reply with quote

appalsap wrote:
Hardcoding to C:\. Bad.

Use SHGetFolderPath to get the paths to program files, my documents, my pictures etc via class IDs. To get to the root (in your case c:\, in my case d:\) use PathStripToRoot. To check whether programs like AOL or photoshop are installed and where they're installed, use the registry (where add/remove programs stores the information)


Yeah, totally tried to understand, check out MSDN, but don't quite get it.

can you try to explain just alittle more..I'm really new to all this..

thanks..

_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 24, 2007 6:37 pm    Post subject: Reply with quote

Guys, it really doesnt matter. Cuz this is a launcher for him, not us. He should know his file paths. If he doesn't he should figure them out, it really isn't that hard.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Tue Jul 24, 2007 6:41 pm    Post subject: Reply with quote

oib111 wrote:
Guys, it really doesnt matter. Cuz this is a launcher for him, not us. He should know his file paths. If he doesn't he should figure them out, it really isn't that hard.


Well if he uses what appalsap said, he could actually learn something new and not always doing it the wrong way.

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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