PDA

Просмотр полной версии : Capture Message


kargo
12.11.2010, 15:57
Hey i saw in older version of L2phx procedure for replace Message. For eg. when have trial component and i want to hide this message. Cant find it now :/ Anyone can post this ?

alexteam
12.11.2010, 16:00
Cant find it now
coz now its uses fullsource component. so no reason to hook this message.

kargo
12.11.2010, 16:06
But can u post this function? :)

alexteam
12.11.2010, 18:48
NativeAPI.pas (http://l2phx.pp.ru/wsvn/filedetails.php?repname=l2phx3&path=%2FNativeAPI.pas&rev=83&sc=1)
advApiHook.pas (http://l2phx.pp.ru/wsvn/filedetails.php?repname=l2phx3&path=%2FadvApiHook.pas&rev=83&sc=1)

var
ShowMessageOld: procedure (const Msg: string);

procedure ShowMessageNew(const Msg: string);
begin
if Msg<>'Unregistered version of FastScript.' then
ShowMessageOld(Msg);
end;

begin
HookCode(@ShowMessage,@ShowMessageNew,@ShowMessage Old);
//blablabla
UnhookCode(@ShowMessageOld);
end.

kargo
13.11.2010, 06:31
Thx, btw is that possible to hook MessageBox function this way? I tried but guess did something wrong:(