[jawsscripts] Re: Triggering FocusChangedEvent from a hotkey to force HscFocusChanged to run?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 15 Sep 2010 08:54:01 +1000

Hi Dennis.

Ok thanks muchly for this,
I'll test that when I get with my client after this latest 198 build install
of hsc, which once again permits the new multi button dlgSelectItemInList to
function again,
but, surely FocusChangedEventEx mustn't be firing in these situations.
, else FocusChangedEvent, and subsequently hscFocusChanged, which is called
inside that,
would both run/fire. would not they?

I guess whichever way, my quick somewhat probably totally mental block
stupid question is, can an event function like this,
which is normally auto-triggered by certain criteria, be run, or, called,
just like any other function, from inside a script? or with any caveats to
know about if so?
 or not?

thanks.

From: "Dennis Brown" <DennisTBrown@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, September 14, 2010 12:01 PM
Subject: [jawsscripts] Re: Triggering FocusChangedEvent from a hotkey to
force HscFocusChanged to run?


> Hi,
> See if FocusChangedEventEx fires.  That is the normal event that fires
> FocusChangedEvent.
>
> Thanks,
> Dennis Brown
>
> ----- Original Message ----- 
> From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Monday, September 13, 2010 2:20 PM
> Subject: [jawsscripts] Triggering FocusChangedEvent from a hotkey to force
> HscFocusChanged to run?
>
>
> > mighty scripters.
> > A very pathetic greens question today, but, I have a situation on a
> > client's computer, whereby within his internet explorer 6 browser, which
> > is what his company uses as their front end shell to several inhouse
> > applications and pages etc,
> > sometimes FocusChangedEvent simply does not fire, when his new
> > page/document loads.
> > Which means of course that then HscFocusChanged, the function that
causes
> > hsc to check the TopLevelWindow, of the page, and then realize that it's
> > meant to switch sets, does not run.
> > Thus it doesn't switch sets via topLevelWidnow name, as it should, in
> > these situations.
> >
> >
> > Thus, is it possible, for me to, say, trigger, either the whole
> > FocusChangedEvent functionh from inside a script, rather than it being
> > triggered automatically as it normally would be? in order to then force
> > the HscFocusChanged to run, and cause the set switch that's meant to
> > happen upon each new page that loads?
> >
> > But, well I got a bit tangled up with the whole passing parameters
thing,
> > and whether, if at all, what I'm trying to achieve, really can be done?
> >
> > I tried just putting the single function:
> >
> > HSCFocusChanged (GetWindowname (GetTopLevelWindow (FocusWindow)))
> >
> >
> >
> > into a script, but when compiling, it complains about it and claims:
> >
> > Unknown variable FocusWindow
> > So, has anyone got any great ideas of how I might accomplish what I'm
> > trying to? in the case where the normal FocusChangedEvent, simply does
not
> > fire upon the loading of a new Page?
> >
> > I know the answer of how to do this must be simple, but, it's just
> > stupidly eluding me at the present?
> > I'd be greatful for any tips anyone might have to share on whether one
can
> > run an event driven function, in this key-oriented way?
> >
> > Thanks again.
> >
> > Geoff c.
> >
> > __________�
> >
> > View the list's information and change your settings at
> > //www.freelists.org/list/jawsscripts
> >
> >
>
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: