Просмотр полной версии : Capture Message
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.
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.
Thx, btw is that possible to hook MessageBox function this way? I tried but guess did something wrong:(
vBulletin® v3.6.11, Copyright ©2000-2024, Jelsoft Enterprises Ltd. Перевод: zCarot