Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!kodiak From: kodiak@amiga.UUCP (Robert R. Burns) Newsgroups: comp.sys.amiga.tech Subject: Re: SetFunction Keywords: can't get it work Message-ID: <3717@amiga.UUCP> Date: 5 Apr 89 17:36:10 GMT References: <518@hvrunix.UUCP> <946@applix.UUCP> Reply-To: kodiak@tooter.UUCP (Robert R. Burns) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 19 In article <518@hvrunix.UUCP> ahinds@hvrunix.UUCP (Alexander Hinds) writes: > > Can anybody tell me how to use SetFunction()? ... > > SetFunction(IntuitionBase,(long)-60,&MyFunction); >I used -60 because it is DisplayBeep() offeset.(I think). er, why mess with numbers? extern int LVODisplayBeep; SetFunction(IntuitionBase, &LVODisplayBeep, &MyFunction); and link with amiga.lib -- Bob Burns, amiga!kodiak _ | /_ _|. _ | Commodore __ |_) _ |_ _ )' |<(_)(_)|(_\|< /\ | ||| _` /\ |_)(_\| )(_\ | | \ Software ___/..\|\/|||__|/..\___ Faith