![]() |
|
[Delphi] [Delphi] open programs from delphi - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [Delphi] [Delphi] open programs from delphi (/showthread.php?tid=352858) |
[Delphi] open programs from delphi - djfshady - Apr 5, 2010 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);* - Ground Defiance - Apr 5, 2010 Autoit: ; Open Notepad ShellExecute("Notepad.exe") ; Open a .txt file with it's default editor ShellExecute("myfile.txt", "", @ScriptDir, "edit") * - ananui81 - Sep 7, 2010 Thanks for the nice code guys .. hope i get better soon ✌ * - Symbiotic - Sep 8, 2010 Dont like shellexecuting files because CMD pops up. * - SIM-255772 - Sep 8, 2010 lol nice :) going to be using this a lot in the future im sure :D * - djfshady - Sep 9, 2010 what you planning on making hexed ;) lol * - haxced - Sep 12, 2010 from the basic surely making notepad, calculator etc.. the meanthing is about simple any useful progms * - Xogg - Jul 17, 2017 (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 * - Volty - Jul 18, 2017 (Jul 17, 2017 11:54 PM)Dexuh 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 * - Xogg - Jul 18, 2017 (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. |