fyi, to anyone who wants to try this (using the Office VBA editor), below is
a better "skeleton" to start with; you add the window eyes com object to the
references, create a new module, and start with this for the main body; copy
it each time you start a new function or sub.  the commands ending with an
apostrophe are to show you those lines don't get copied over to the vbscript
version (hopefully I'll come up with something which removes them).

what you get is a very good way to use intellisense on any of your variables
that you decide to type by adding an " as <type>" to their declaration.
hopefully my processing prog will remove the type declarations as well:

Option Explicit

Sub WE_Main() '
' window eyes script main body, function, or sub goes within the "WITH"
statement below:'
With WindowEyes.Application '
With .Speech
With .Script

End With '
End With '
End With '
End Sub '
    
 

-----Original Message-----
From: Chip Orange [mailto:lists3...@comcast.net] 
Sent: Monday, January 18, 2010 11:56 AM
To: 'gw-scripting@gwmicro.com'
Subject: RE: looking for script editor which will support intellisense for
WE?

thanks Aaron and Ron; this is exactly what I had to do in the MS Office
script, although I suspect the details will end up being different; that
script is very specific to the way Office does things.

which reminded me, office allows you to add any com object to the list it
works with, and it's VBA (very close to VBScript), so I just went and added
the window-eyes .tlb to it's list, and created the following module within
an office VBA code window; it works very well, although it won't
autocomplete any VBScript variables you define since they don't come with a
type.  I'm thinking the notepad++ you mention would have to have the same
issue.

what if you wrote your script using VBA (specifying variable and function
types), and there was a routine which stripped them off to produce the
VBScript file when you wanted to run it?  I'm going to run with that for now
to see if ultimately it makes things easier or not.

Chip

-----------
Option Explicit

Function sharedObjects(name As String) As Object

End Function

Sub WE_Main()
' window eyes script main body, function, or sub goes within the "WITH"
statement below:
With WindowEyes.Application

End With
End Sub

------------
 

-----Original Message-----
From: Aaron Smith [mailto:aa...@gwmicro.com]
Sent: Monday, January 18, 2010 9:34 AM
To: gw-scripting@gwmicro.com
Subject: Re: looking for script editor which will support intellisense for
WE?

You can activate Notepad++'s "intellisense"-like feature by pressing
Control-Space on a context sensitive word. The problem with this feature is
that, after the list of suggestions pops up, you have both a cursor and a
highlight that navigates with the arrow keys. While the cursor doesn't move
as you arrow, it's where Window-Eyes is paying attention to, meaning you
just hear the line number repeated as you arrow up and down.

You could write a script to resolve this. Watch for OnChildCreate with a
ClassName of "ListBoxX" and make the arrow keys read the list. Perhaps
that's something I'll work on, time permitting.

Aaron

On 1/18/2010 8:37 AM, Ron Parker wrote:
> On 1/17/2010 11:11 PM, Chip Orange wrote:
>> hi all,
>>
>> I'm getting really spoiled by intellisense at work (in MS Office 
>> VBA), and was wondering if there's an editor I can use for WE scripts 
>> which I can get to use intellisense for the WE application object?
>
>
> Notepad++ ( http://notepad-plus.sourceforge.net/uk/site.htm ) is
> supposed to have an autocomplete function that can be customized with 
> your own API list. I haven't tried to use it, so I'm not sure if it 
> helps you with the arguments like Visual Studio's intellisense does, 
> but I suspect that it doesn't.
>

--
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 GW Micro Technical
Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to