Cita:
Empezado por b2k
Hola, una ultima, cosa, como podria verificar si la ventana primero existe?
Saludos
|
Y yo haria algo como esto, asi:
Código Delphi
[-]
procedure TMain.BotonExisteVentana1Click(Sender: TObject);
var
pos:integer;
ventana:string;
begin
ventana:='caption_de_la_ventana';
pos:=FindWindow(nil,pChar(ventana));
If pos=0
then ShowMessage('No no! esa ventana no está!!!')
else ShowMessage('Si, la ventana está');
end;
Saludos
__________________
Código Delphi
[-]
try
ProgramarMicro(80C52,'Intel',MnHex,True);
except
On Exception do
MicroChip.IsPresent(True);
end;