[futurebasic] Re: [FB] Active Aplication

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: AlStaff@...
Date: Sat, 5 Jun 1999 08:37:23 EDT
>I'm trying to find out if my application is the active application by doing
>this
>
>IF SYSTEM(_aplActive) = _false THEN BEEP:FN inBackground
>
>I'm only using beep for now while I try to get this to work.
>When I change to another application I don't get a beep, and all my normal
>application events keep occuring and my applications window keeps drawing
>pictures.
>
>I'm I using the write call, what could I be doing wrong?
>
>Thanks alot, I'm sure I'm missing something here. >>


There's an error in the FB documentation. SYSTEM(_apleActive) returns 1 when 
your app is in the foreground and -1 when your app is in the background. All 
you need to do is change _false to -1.

IF SYSTEM(_aplActive) = -1 THEN BEEP:FN inBackground


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html