IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Delphi (https://www.ircforumlari.net/delphi/)
-   -   Programı Başlangıca Yazmak (https://www.ircforumlari.net/delphi/689558-programi-baslangica-yazmak.html)

Kaf_Dağı 18 Mart 2015 14:35

Programı Başlangıca Yazmak
 
Kod:

// Başlangıçta başlatmak için Registry'e yazar
procedure RunOnStartup(value:string);
var R:Tregistry;
begin
R:=TRegistry.Create;
R.RootKey:=HKEY_LOCAL_MACHINE;
R.OpenKey('\\Software\\Microsoft'
    + '\\Windows\\CurrentVersion\\Run',false);
  R.WriteString(value,application.exename);
  R.CloseKey;
R.free;
end;
 
// Az önce yazdığımız değeri silmek istersek:
procedure DoNotRunOnStartup(value:string);
var R:Tregistry;
begin
R:=TRegistry.Create;
R.RootKey:=HKEY_LOCAL_MACHINE;
R.OpenKey('\\Software\\Microsoft'
    + '\\Windows\\CurrentVersion\\Run',false);
if R.ValueExists(value) then
 R.DeleteValue(value);
  R.CloseKey;
R.free;
end;



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 04:44.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk