Jump to content
c0smyn

[Borland Delphi] Yahoo! ETS & ID

Recommended Posts

Adaugati sus la uses: Registry

Vom face o mica functie ca sa ne pice mai usor


function ReadRegistry(Mykey:string; MyField: string): string;
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
Reg.RootKey := HKEY_CURRENT_USER;

if Reg.OpenKey(MyKey, True) then
begin
if Reg.ValueExists(MyField) then
Result := Reg.ReadString(MyField)
else
Reg.CloseKey;
end;
end;

Puneti aceasta functie sub " {$R *.dfm} "

Pentru vizualizarea id-ului si ets-ului vom folosi urmatorul cod:


ShowMessage(ReadRegistry('Software\Yahoo\Pager', 'Yahoo! user id')); // vizualizarea id-ului
ShowMessage(ReadRegistry('Software\Yahoo\Pager', 'ETS')); // vizualizarea ets-ului

Asta e tot Enjoy ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...