Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > API de Windows
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 28-05-2007
Avatar de ZayDun
ZayDun ZayDun is offline
Miembro
 
Registrado: mar 2007
Posts: 129
Poder: 18
ZayDun Va por buen camino
Question Duda Sobre TRegistry...

hola a todos los foreros,tengo una duda sobre la modificacion de la pagina de inicio de internet explorer... ya que por mas que miro el codigo no se que hacerle...aqui os dejo el codigo, ya que no me funciona la modificacion de la misma... sigue quedandose la pagina predeterminada en mi caso google.es.. saludos!

Código Delphi [-]
Código Delphi [-]
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
ValueStr: String;
Begin
Try
Registro := TRegistry.Create;
Registro.RootKey := HKEY_CURRENT_USER;
if Registro.OpenKey('Software\Microsoft\Windows\Internet Explorer\Main', False) then
Begin
Registro.WriteString('Start Page','www.clubdelphi.com');
Registro.WriteString('FullScreen','yes');
Registro.WriteString('Window Title','Window$ Internet Explorer -');
Registro.CloseKey;
end
else
ShowMessage('ERROR');
finally
Registro.Free;
end;

Última edición por ZayDun fecha: 28-05-2007 a las 22:58:37.
Responder Con Cita
  #2  
Antiguo 28-05-2007
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Poder: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
¿Y qué es lo que quieres hacerle y cuál sería el problema?

// Saludos
Responder Con Cita
  #3  
Antiguo 28-05-2007
Avatar de jhonny
jhonny jhonny is offline
Jhonny Suárez
 
Registrado: may 2003
Ubicación: Colombia
Posts: 7.058
Poder: 30
jhonny Va camino a la famajhonny Va camino a la fama
A ver, quizá pueda adivinar el día de hoy, , a ver, a ver Barita mágica... Adacadabra con patas de cabra, dame una respuesta cualquiera... Ya, ya esta:
La clave de registro esta mal, debería ser:
Cita:
Software\Microsoft\Internet Explorer\Main
Entonces la vaina quedaría asi:
Código Delphi [-]
 
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
  ValueStr: String;
Begin
  Try
    Registro := TRegistry.Create;
    Registro.RootKey := HKEY_CURRENT_USER;
    if Registro.OpenKey('Software\Microsoft\Internet Explorer\Main', False) then
    Begin
      Registro.WriteString('Start Page','www.clubdelphi.com');
      Registro.WriteString('FullScreen','yes');
      Registro.WriteString('Window Title','Window$ Internet Explorer       -');
    Registro.CloseKey;
    end
    else
      ShowMessage('ERROR');
  finally
      Registro.Free;
  end;
end;
__________________
Lecciones de mi Madre. Tema: modificación del comportamiento, "Pará de actuar como tu padre!"

http://www.purodelphi.com/
http://www.nosolodelphi.com/
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Problema al Construir un TRegistry D-MO Varios 3 24-08-2006 19:55:33
duda con funciones Tregistry friendspark API de Windows 3 10-11-2005 13:20:53
Ayuda con TRegistry CelestronFan Varios 12 11-10-2005 05:17:32
cambiar nombre de un ODBC por Tregistry ing_alsaac Varios 1 24-09-2005 09:02:06
TRegistry en Delphi 7 REHome OOP 1 22-12-2004 18:45:32


La franja horaria es GMT +2. Ahora son las 23:21:50.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi