Kevin,
I see. So all you're wanting in this case is to make Window-Eyes speak
something when an event occurs in your program? If so, then this is
doable from .net. Assuming you have added a reference to WindowEyes.dll
in your project, add this to the top line of your main application:
using WindowEyes;
Then, in the initial class declaration:
private Application application;
private Speech speech;
In the form load, do this:
application = new WindowEyes.Application();
speech = new application.Speech();
Finally, whenever you want Window-Eyes to say something, just call
speech.Speak("Hi there.");
HTH,
Steve
On 3/27/2013 10:39 AM, Kevin Morales wrote:
I don't think I do. I only need Window-Eyes to speak when a property
on my EditingWindow form is declared.
I will provide some C# code if I may:
// This form is called from an MDI form
// which I call ParantForm:
public class EditingWindow : Form
{
public bool SubscriptMode {get; set; }
// When a hotkey is pressed, this property is set to either true or false.
}
So, I'm not sure if that would be considered .NET specific.
Thanks,
Kevin
On 3/27/13, Stephen Clower <[email protected]> wrote:
Kevin,
Unless you are wanting to call specific methods of the .net framework,
you don't need to worry about it at all. Are you needing to do something
.net-specific?
Steve
On 3/27/2013 8:45 AM, Kevin Morales wrote:
Thanks to everyone for your answers. However, I guess I didn't
explain myself on something. I have looked at VB Script's syntax, Chip
Orange's classes, Jamal's tutorials, MSDN's VB Script guide and the
Windoew-Eyes developer manual. Still, I have a bit of a problem. I
hear that one has to somehow configure a .NET assembly to be called
from VB Script, in order to be recognixed by Com. There is where I am
confused, and I can't seem to wrap my head around.
Has someone had the opportunity to write Com Scripts that interact
with .NET applications?
On 3/26/13, Tom Kingston <[email protected]> wrote:
Here's a link to Chip's tutorials.
https://www.gwmicro.com/App_Central/Developers/Interactive_Classes/
And here's a link to the greatest script ever written; Immediate mode
window. It allows you to pop up a window, write bits of code, and
execute them in real time. It's both a great learning tool and an
amazing workhorse for real projects.
https://www.gwmicro.com/App_Central/Apps/App_Details/?scriptid=1018
Hth,
Tom
On 3/26/2013 12:41 PM, RicksPlace wrote:
Hi Kevin:
There is a complete introduction series on VBS scripting (Audio Files)
created by Chip Orange available.
They will take you through most of the basics but you will need to also
do a little homework concerning programming using VBScript syntax - the
actual statements like variables, looping and tables and all that jazz.
I am not sure wwhere the archived audio tutorials are but Chip did
them
online for us and they are very good.
Ask and someone will give hyou the link to where they are located and I
think they are a good place to start to get a very clear overview of
the
scripting process using VBS.
Rick USA
----- Original Message ----- From: "Kevin Morales"
<[email protected]>
To: <[email protected]>
Sent: Tuesday, March 26, 2013 11:11 AM
Subject: Re: Question: Window-Eyes and .NET.
Dear Steve,
Thank you for your answer. How would I do this through VB Script,
since that seems to be the easiest way to program for Window-Eyes? I
actually have looked at the examples that you have provided, but
sadly, I don't understand the code completely.
Thanks
Kevin Morales
On 3/26/13, Stephen Clower <[email protected]> wrote:
Kevin,
Yes; this can be done either natively in Window-Eyes via VBScript or
JScript, or if you prefer, .net or any other external language which
supports COM automation. If .net is your proverbial cup of tea, then
the
VB and C# examples at https://www.gwmicro.com/App_Central/Developers/
should be enough to get you started.
Regards,
Steve
On 3/26/2013 8:51 AM, Kevin Morales wrote:
Dear GW-Scripting List Members,
I am a beginner in programming and I happened to be stuck.
I am building a .NET application with Visual C# 2012 for desktop.
I want my application to use Windoe-Eyes to do the following:
1. Generate a set file for the application.
2. Add dictionary entries for the symbols ^, / and *, along with a
few
words too.
3. Then, I want the user to press a hotkey and hear if subscript
mode
is on or off.
4. Lastly, I also want the user to press a hotkey so that
Window-Eyes
can pause while dictating a Mathematics problem.
Is all or most of this even possible, given that .NET has a lot of
security and given that .NET is "managed"?
If so, can someone give me some guidance as to how to do this?
Thanks a lot in advance,
Kevin Morales
--
--
Stephen Clower
Product support specialist & App Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
--
--
Stephen Clower
Product support specialist & App Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
--
--
Stephen Clower
Product support specialist & App Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com