The link is working now, thank you. I will study it and post update when I have
my app working.
On Tuesday, December 1, 2015 4:00 PM, Aaron Smith <[email protected]>
wrote:
<!--#yiv6165573082 _filtered #yiv6165573082 {font-family:Helvetica;panose-1:2
11 6 4 2 2 2 2 2 4;} _filtered #yiv6165573082 {font-family:"Cambria
Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv6165573082
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv6165573082
#yiv6165573082 p.yiv6165573082MsoNormal, #yiv6165573082
li.yiv6165573082MsoNormal, #yiv6165573082 div.yiv6165573082MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 a:link, #yiv6165573082
span.yiv6165573082MsoHyperlink
{color:blue;text-decoration:underline;}#yiv6165573082 a:visited, #yiv6165573082
span.yiv6165573082MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}#yiv6165573082
p.yiv6165573082msonormal, #yiv6165573082 li.yiv6165573082msonormal,
#yiv6165573082 div.yiv6165573082msonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault, #yiv6165573082
li.yiv6165573082msochpdefault, #yiv6165573082 div.yiv6165573082msochpdefault
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal1, #yiv6165573082
li.yiv6165573082msonormal1, #yiv6165573082 div.yiv6165573082msonormal1
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault1, #yiv6165573082
li.yiv6165573082msochpdefault1, #yiv6165573082 div.yiv6165573082msochpdefault1
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal2, #yiv6165573082
li.yiv6165573082msonormal2, #yiv6165573082 div.yiv6165573082msonormal2
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal3, #yiv6165573082
li.yiv6165573082msonormal3, #yiv6165573082 div.yiv6165573082msonormal3
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault2, #yiv6165573082
li.yiv6165573082msochpdefault2, #yiv6165573082 div.yiv6165573082msochpdefault2
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal11, #yiv6165573082
li.yiv6165573082msonormal11, #yiv6165573082 div.yiv6165573082msonormal11
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault11, #yiv6165573082
li.yiv6165573082msochpdefault11, #yiv6165573082
div.yiv6165573082msochpdefault11
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 span.yiv6165573082msohyperlink {}#yiv6165573082
span.yiv6165573082msohyperlinkfollowed {}#yiv6165573082
span.yiv6165573082msohyperlink2 {}#yiv6165573082
span.yiv6165573082msohyperlinkfollowed2 {}#yiv6165573082
span.yiv6165573082msohyperlink11 {}#yiv6165573082
span.yiv6165573082msohyperlinkfollowed11 {}#yiv6165573082
span.yiv6165573082emailstyle1711 {}#yiv6165573082
span.yiv6165573082emailstyle271 {}#yiv6165573082 span.yiv6165573082emailstyle38
{}#yiv6165573082 p.yiv6165573082msonormal4, #yiv6165573082
li.yiv6165573082msonormal4, #yiv6165573082 div.yiv6165573082msonormal4
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 span.yiv6165573082msohyperlink1
{color:blue;text-decoration:underline;}#yiv6165573082
span.yiv6165573082msohyperlinkfollowed1
{color:purple;text-decoration:underline;}#yiv6165573082
p.yiv6165573082msonormal5, #yiv6165573082 li.yiv6165573082msonormal5,
#yiv6165573082 div.yiv6165573082msonormal5
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault3, #yiv6165573082
li.yiv6165573082msochpdefault3, #yiv6165573082 div.yiv6165573082msochpdefault3
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal12, #yiv6165573082
li.yiv6165573082msonormal12, #yiv6165573082 div.yiv6165573082msonormal12
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault12, #yiv6165573082
li.yiv6165573082msochpdefault12, #yiv6165573082
div.yiv6165573082msochpdefault12
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal21, #yiv6165573082
li.yiv6165573082msonormal21, #yiv6165573082 div.yiv6165573082msonormal21
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 span.yiv6165573082msohyperlink21
{color:blue;text-decoration:underline;}#yiv6165573082
span.yiv6165573082msohyperlinkfollowed21
{color:purple;text-decoration:underline;}#yiv6165573082
p.yiv6165573082msonormal31, #yiv6165573082 li.yiv6165573082msonormal31,
#yiv6165573082 div.yiv6165573082msonormal31
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msochpdefault21, #yiv6165573082
li.yiv6165573082msochpdefault21, #yiv6165573082
div.yiv6165573082msochpdefault21
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 p.yiv6165573082msonormal111, #yiv6165573082
li.yiv6165573082msonormal111, #yiv6165573082 div.yiv6165573082msonormal111
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 span.yiv6165573082msohyperlink111
{color:blue;text-decoration:underline;}#yiv6165573082
span.yiv6165573082msohyperlinkfollowed111
{color:purple;text-decoration:underline;}#yiv6165573082
span.yiv6165573082emailstyle17111 {color:#1F497D;}#yiv6165573082
p.yiv6165573082msochpdefault111, #yiv6165573082
li.yiv6165573082msochpdefault111, #yiv6165573082
div.yiv6165573082msochpdefault111
{margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:"Times New
Roman", serif;}#yiv6165573082 span.yiv6165573082emailstyle2711
{color:#1F497D;}#yiv6165573082 span.yiv6165573082emailstyle381
{font-family:"Calibri", sans-serif;color:#1F497D;}#yiv6165573082
span.yiv6165573082EmailStyle54 {font-family:"Calibri",
sans-serif;color:#1F497D;}#yiv6165573082 .yiv6165573082MsoChpDefault
{font-size:10.0pt;} _filtered #yiv6165573082 {margin:1.0in 1.0in 1.0in
1.0in;}#yiv6165573082 div.yiv6165573082WordSection1 {}-->I’m not sure. I just
checked, and it’s working. What if you try again? 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. From: Yaling Liu [mailto:[email protected]]
Sent: Tuesday, December 1, 2015 4:53 PM
To: Aaron Smith <[email protected]>; Window-Eyes Scripting List
<[email protected]>
Subject: Re: Cannot handle OnObjectFocus event in external csharp app Hi
Aaron, I cannot view the link, receiving HTTP 404 page not found error.
On Tuesday, December 1, 2015 3:23 PM, Aaron Smith <[email protected]> wrote:
Take a gander through the class that we have that does work. Perhaps it will
help. I pulled this from the project mentioned earlier:
www.gwmicro.com/special/MyWindowEyes.cs 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. From: Yaling Liu [mailto:[email protected]]
Sent: Tuesday, December 1, 2015 3:16 PM
To: Aaron Smith <[email protected]>; Window-Eyes Scripting List
<[email protected]>
Subject: Re: Cannot handle OnObjectFocus event in external csharp app I tried
it in DesktopWindow_OnChildActivate, where I know my specific app window
becomes active, and I have the ChildWindow.Process. Still the same issue: the
focus event is trapped, but the OnObjectFocus event handler is not invoked. Are
there any specifics for how myMSAAEventSource should be obtained and
howmyMSAAEventSource_OnObjectFocus should be defined? On Tuesday, December
1, 2015 10:45 AM, Aaron Smith <[email protected]> wrote: Yes, that would
be my guess. We have a custom app that blocks/hooks focus for a specific
application. It hooks window focus, and when it finds a window that it wants to
act upon, it does this:
myMSAAEventSource.Process = ChildWindow.Process;
blockedFocusEvent =
myMSAAEventSource.BlockEvent(WindowEyes.MSAAEventID.event_OBJECT_FOCUS,
ChildWindow.Process);
myMSAAEventSource.OnObjectFocus += myMSAAEventSource_OnObjectFocus; So it
does seem like the process that you’re using is not the right one. 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. From: Yaling Liu
[mailto:[email protected]]
Sent: Tuesday, December 1, 2015 11:26 AM
To: Aaron Smith <[email protected]>; Window-Eyes Scripting List
<[email protected]>
Subject: Re: Cannot handle OnObjectFocus event in external csharp app I
deleted the line of setting msaaEventSource.Process, still not seeing
differences. My script app is loaded from the App Manager for a specific app
only, not global. I think the focus event is trapped correctly, since
Window-Eyes doesn't read anything when I am navigating in the specific app but
it reads as usual for all other apps. I am guessing the 2nd parameter of the
BlockEvent call isn't right, but I don't know how to fix it. Other event
handlers in my script app work, for instance, when I do: weapp.Speech.OnSpeak
+= Speech_OnSpeak, the handler is invoked as expected. On Tuesday, December
1, 2015 9:35 AM, Aaron Smith <[email protected]> wrote: I would start by
omitting the process property to ensure that you are getting all focus events.
Then you can set it once you locate the process for the application you’re
interested in. Is your app loaded through the App Manager as a global app or a
program specific app? 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. From:
Yaling Liu [mailto:[email protected]]
Sent: Tuesday, December 1, 2015 10:14 AM
To: Aaron Smith <[email protected]>; Window-Eyes Scripting List
<[email protected]>
Subject: Re: Cannot handle OnObjectFocus event in external csharp app I want
to be notified for the focus events of the app that the external script is
developed and loaded for. I tried to change the line to be the following, but
didn't see any difference. Where can I get the app process object?
msaaEventSource.Process = weapp.ClientInformation.ApplicationProcess; On
Tuesday, December 1, 2015 7:45 AM, Aaron Smith <[email protected]> wrote:
By setting the EventSource Process property to your own process, you're telling
Window-Eyes to only notify you about focus events in your own assembly.
Is that what you're attempting to do?
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: Scripting [mailto:scripting-
> [email protected]] On Behalf Of
> Yaling Liu via Scripting
> Sent: Monday, November 30, 2015 7:12 PM
> To: [email protected]
> Subject: Cannot handle OnObjectFocus event in external csharp app
>
> I am modifying the first C# example at:
> https://www.gwmicro.com/App_Central/Developers/C-Sharp/, added the
> following code in MyWindowEyes.cs. msaaEventSource and blockEvent are
> member variables of MyWindowEyes.cs. The focus event handler
> MSAAEventSource_OnObjectFocus does not work. It's not called. I know the
> BlockEvent method is executed correctly because when tabbing through
> buttons, Window-Eyes does not read anything.
>
> public bool Init() { ... msaaEventSource = weapp.MSAAEventSource;
> msaaEventSource.Process = ci.ApplicationProcess;
> blockEvent =
> msaaEventSource.BlockEvent(WindowEyes.MSAAEventID.event_OBJECT_F
> OCUS, ci.ApplicationProcess);
> msaaEventSource.OnObjectFocus +=
> MSAAEventSource_OnObjectFocus; ...
> }
> void MSAAEventSource_OnObjectFocus(WindowEyes.Accessible Accessible)
> {
> Program.wineyes.weapp.Speech.Silence();
> Program.wineyes.weapp.Speech.Speak("hello world");}
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.window-eyes.com/private.cgi/scripting-window-
> eyes.com/attachments/20151201/2cf4d8c5/attachment.htm>
> _______________________________________________
> Any views or opinions presented in this email are solely those of the author
> and do not necessarily represent those of Ai Squared.
>
> For membership options, visit http://lists.window-
> eyes.com/options.cgi/scripting-window-
> eyes.com/asmith%40aisquared.com.
> For subscription options, visit http://lists.window-
> eyes.com/listinfo.cgi/scripting-window-eyes.com
> List archives can be found at http://lists.window-
> eyes.com/private.cgi/scripting-window-eyes.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachments/20151201/2ddf7035/attachment.htm>
_______________________________________________
Any views or opinions presented in this email are solely those of the author
and do not necessarily represent those of Ai Squared.
For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com