Delphi 5
SKYPE4COMLib_TLB Imported From (Skype4COM.dll ver 1.0.27.1)
I have That Issue, I Check If skype are Running in the Machine, If not I try To launch It Ussing "ShellExecute()"
But When Launch it, Skype Takes the 99 % of CPU.
There is the code that Im Ussing
Hwnd:=Application.Handle; //Handle Application
reg:=TRegistry.Create; //Registry Unit, to get Access to the Registry
Reg.RootKey:=HKEY_LOCAL_MACHINE;
Reg.OpenKeyReadOnly('\SOFTWARE\Skype\Phone');
aux:=Reg.ReadString('SkypePath'); //Gets the Path Where is installed Skype
Reg.CloseKey;//Close Registry
If (Aux<>'') and (FileExists(aux)) then begin
if not IsFileActive('Skype.exe') then
//That Line Can Be Excluded, if Is already running only open the GUI with out any problem
ShellExecute(hwnd,'Open',Pchar(aux),'','',SW_NORMAL);
//have Try To launch it Whith out Handle and the Same Issue
end else If MessageDlg('Skype does not Installed, Want Visit the WebSite',mtConfirmation,[mbyes,mbno],0)=ID_yes then
ShellExecute(Hwnd,'Open',Pchar('http://www.skype.com/'),'','',SW_MAximize);
Do You have any Idea?!
Thanks and Regards