Try this:

ConnectEvent BrowseMode, "OnStateChange", "BrowseMode_OnStateChange"

Sub BrowseMode_OnStateChange(bmState)
        If bmState = bmsActive Then
                ' browse mode is active
        Else
                ' browse mode is not active
        End If
End Sub

Thanks,

Aaron

-- 
Aaron Smith 
Web Development * App Development * Product Support Specialist
Ai Squared * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * www.aisquared.com

To insure that you receive proper support, please include all past 
correspondence (where applicable), and any relevant information pertinent to 
your situation when submitting a problem report to the Ai Squared Technical 
Support Team.

> -----Original Message-----
> From: David [mailto:[email protected]]
> Sent: Wednesday, October 15, 2014 2:12 AM
> To: [email protected]
> Subject: Browse Mode Buffer, Please help
> 
> Hey listers.
> I have been playing around with some coding this morning, but seem to be
> stuck. Maybe I do not fully comprehend the meaning of what I am doing. :)
> 
> I have a piece of a script, which only should kick into action, whenever
> Browse Mode is working. That is, it should not perform anything, whenever
> you are in things like Notepad or Word. But when you are reading a website,
> independent on whether it is under Internet Explorer or Firefox or (if
> possible) in your Email program, and Browse Mode is turned On, the code
> should kick in.
> 
> I have been scrolling through the manual, and I found the enumeration
> named
>      BrowseModeState
> and
>      BMSActive.
> I guess, somehow I should do a testing on these, to see when my code
> would be needed. And that is where I hoped for your assistance.
> 
> Just to make room for as little misunderstanding as possible, this script 
> would
> be running globally, quietly sitting in the background, and only jump into
> action when the user is working under Browse Mode. If only I could figure
> the way of doing this ongoing testing. I thought of the OnStateChange sub,
> but am afraid I do not fully grasp the way it works, even after looking at the
> code produced by the Framework app.
> 
> If anyone please could throw up a couple of lines showing me the needed
> testing, or could point me to a code that would samplify this behavior.
> Right offhand, I am not aware what app from the Central would hold code
> that would perform equally, or I could have downloaded it and tried to figure
> how to work around this one.
> 
> Thanks for any input.
> 
> 
> --
> David
> 

Reply via email to