Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

registry key etc...

Empfohlene Antworten

Veröffentlicht

MOIN!

ich möchte ein programm schreiben, das wenn man es ausführt sofort einen reg-key schreibt, sodass das programm automatisch bei jedem win-start gestartet wird.... wie stellt man sowas an?

Was soll das werden, Spyware?

Welche Programmiersprache?

Wie wäre es mit einem Windowsdienst?

ich möchte das mit delphi machen... nein soll keine spyware werden :D ich will nur meinen kumpel damit schocken... der meint ich hätte keine ahnung von computern... :floet:

Delphi, dann bin ich raus mit C# oder VB.NET hätte ich helfen können.

Da ich den Zweck recht albern finde, nur eine kurze RTFM-Antwort:

Delphi hat eine integrierte sehr gute Hilfe mit Beispielen. Dein Zauberwort heisst TRegistry.

der meint ich hätte keine ahnung von computern...

Hat er da soo unrecht? ;)

:floet:

Ok, is ja nix schlimmes bei:


uses Registry;

[...]

procedure TForm1.FormShow(Sender: TObject);

const

  cRegKey = 'Software\Microsoft\Windows\CurrentVersion\Run';

  cName = 'MeinProgramm';

var Reg: TRegistry;

begin

  try

    Reg:= TRegistry.Create;

    try

      Reg.RootKey:= HKEY_LOCAL_MACHINE;

      Reg.OpenKey(cRegKey,False);

      if Reg.ReadString(cName) = '' then

        Reg.WriteString(cName, Application.ExeName);

    finally // wrap up

      Reg.Free;

    end;    // try/finally

  except


  end;  // try/except

end;

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.