Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Delphi 

[Delphi] open programs from delphi

Here is how you open other programs from your delphi program. In the uses make sure you add ShellAPI. The folllowing lines opens up notepad

Code
ShellExecute(Handle, 'Open', 'notepad', nil, nil, SW_SHOW);

To open the broswer and to go to a specific page use the following line.

Code
ShellExecute(Handle, 'Open', 'www.site.com', nil, nil, SW_SHOW);
Autoit:

; Open Notepad
ShellExecute("Notepad.exe")

; Open a .txt file with it's default editor
ShellExecute("myfile.txt", "", @ScriptDir, "edit")
Thanks for the nice code guys .. hope i get better soon ✌
Dont like shellexecuting files because CMD pops up.
lol nice :) going to be using this a lot in the future im sure :D
what you planning on making hexed ;) lol
from the basic surely making notepad, calculator etc.. the meanthing is about simple any useful progms
(Sep 8, 2010 03:12 PM)Symbiotic Wrote:  Dont like shellexecuting files because CMD pops up.

Yes im sure ill get yelled at for this but want to bring this to peoples attention that you can do this without the CMD box being shown, its called SW_HIDE
[Image: F2G97kn.png]
(Jul 17, 2017 11:54 PM)Xogg Wrote:  Yes im sure ill get yelled at for this but want to bring this to peoples attention that you can do this without the CMD box being shown, its called SW_HIDE

WOW! All the way back from 2010! :D
(Jul 18, 2017 07:01 AM)Volty Wrote:  WOW! All the way back from 2010! :D

Delphi needs to be brought back to life. I guess this thread did too.
[Image: F2G97kn.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Delphi] by Hs32-IdirJul 19, 2021 07:51 AM 3 289 Jul 19, 2021 07:51 AM
Last Post: BlackHook
[Delphi] by VxV3n0mxVJan 4, 2018 07:37 PM 10 3,640 Jan 4, 2018 07:37 PM
Last Post: tcsh
[Delphi] by SymbioticJul 28, 2017 08:19 PM 10 1,664 Jul 28, 2017 08:19 PM
Last Post: Xogg