RE: Need Help With MSAAEventSource Problem In External Script

2011-03-30 Thread Chip Orange
Hi Rick, have you used WEEvent to log the MSAA events to make sure onObjectFocus is getting called? I've never used this event, I've used the onObjectFocus for the window object, but maybe this isn't generating MSAA events for some reason? WEEvent would tell you anyway. hth, Chip __

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Aaron Smith
On 3/30/2011 8:19 PM, Aaron Smith wrote: Spesk Module & " " & Class Or Speak, if you want it to work. Aaron -- Aaron Smith Web Development * App Development * Product Support Specialist GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825 260-489-3671 * gwmicro.com To insure t

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Aaron Smith
Anything that is a variant (such as the Parameter parameter of RegisterHotkey) can be pretty much what you want it to be: a string, a int, an object, a whatever. You can even make your own objects, and pass them along. Here's a completely useless example: Class SuperFancy Public Module

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Jared Wright
So weird. Coming from a primarily C++/Java background, trusting in my ability to just throw different datatypes around willie-nillie in VBScript takes some getting used to. Even PHP is more picky, and I'd always thought of it as lenient. On 3/30/2011 5:12 PM, Aaron Smith wrote: Ah, you figured

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread bT
Yes, definitely, if not it is destroyed when exiting any call or sub... bruce Sent: Wednesday, March 30, 2011 5:11 PM Subject: Re: Multiple Parameters to Hotkey Routines On 3/30/2011 4:43 PM, bT wrote: Yes, just do not use the parens. Standard VB calling method. You can use the p

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Aaron Smith
Ah, you figured it out. Yes, you can pass anything you want in an array, including other objects (as you've noted) and arrays. Aaron On 3/30/2011 5:06 PM, Jared Wright wrote: And you can in fact mix objects and strings in the array, which confirms what I was really after. For instance: dim o

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Aaron Smith
On 3/30/2011 4:43 PM, bT wrote: Yes, just do not use the parens. Standard VB calling method. You can use the parens if you place the word call in front of the procedure or sub. When registering a hotkey, you need to store the result in a global variable, otherwise it's a one trick pony.

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Aaron Smith
That's because you took my pseudo code too literally. Try this: Dim myKey : Set myKey = Keyboard.RegisterHotkey("Control-shift-Z", "mySub", nothing, Array("see", "dog", "run")) Aaron On 3/30/2011 4:35 PM, Jared Wright wrote: If I load: Keyboard.RegisterHotkey("Control-shift-Z", "mySub", not

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Jared Wright
And you can in fact mix objects and strings in the array, which confirms what I was really after. For instance: dim oMyHotkey : set oMyHotkey = Keyboard.RegisterHotkey("Control-shift-Z", "mySub", nothing, Array("Aaron", ActiveWindow)) sub mySub(aParms) dim sName : sName = aParms(0) dim oWind

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Jared Wright
The problem was that in my haste to pound out the example I wasn't giving RegisterHotkey a variable to put its result in, as it's a function not a sub. I'm an idiot either way. Should've been. dim oMyHotkey : set oMyHotkey = Keyboard.RegisterHotkey("Control-shift-Z", "mySub", nothing, Array("

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread bT
Yes, just do not use the parens. Standard VB calling method. You can use the parens if you place the word call in front of the procedure or sub. Bruce Sent: Wednesday, March 30, 2011 4:35 PM Subject: Re: Multiple Parameters to Hotkey Routines If I load: Keyboard.RegisterHotkey("

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Jared Wright
If I load: Keyboard.RegisterHotkey("Control-shift-Z", "mySub", nothing, Array("see", "dog", "run")) sub mySub(aParms) speak aParms(0) & aParms(1) & aParms(2) End Sub I get: hotkeypassing.vbs - Microsoft VBScript compilation error Line 1 Column 89 Keyboard.RegisterHotkey("Control-shift-Z", "

Re: Is Keyword VBS or WindowEyes?

2011-03-30 Thread bT
Hi! thanks, For I am at the moment extracting the references I would need and placing them inside my mail folder for easy reference. Now I will get the folder out and place it in my VB folder for future use. Just like I did with the Script CHM for vb from Microsoft. This would be t

RE: Is Keyword VBS or WindowEyes?

2011-03-30 Thread Jeff Bishop
It already is, in your program files folder in the GW Micro\Window-Eyes folder. The name is: Window-Eyes App Developer Reference.chm From: bT [mailto:b...@fltg.net] Sent: Wednesday, March 30, 2011 1:18 PM To: gw-scripting@gwmicro.com Subject: Re: Is Keyword VBS or WindowEyes? Hi

Re: Is Keyword VBS or WindowEyes?

2011-03-30 Thread bT
Hi Doug, It seems that opening the Application book can be a pain. Once open it seems to be OK. getting the links up on the screen is the problem and don't know why. Once there the Application Reference is OK. I am wondering, like some other languages, the HTML file used for this can

Re: Multiple Parameters to Hotkey Routines

2011-03-30 Thread Aaron Smith
I will often do something like: Keyboard.RegisterHotkey("Control-Blah", "MySub", SomeWindow, Array(x, y, z)) and then Sub MySub(parmArray) firstParm : parmArray(0) secondParm : parmArray(1) thirdParm : parmArray(2) End Sub Aaron On 3/30/2011 3:28 PM, Jared Wright wrote: Just wante

Multiple Parameters to Hotkey Routines

2011-03-30 Thread Jared Wright
Just wanted some clarification on passing parameters to hotkey routines, and I'm sort of hoping someone on here will know already and save me some trial and error work. Sorry, cheating a bit I guess. If I want to pass more than one parameter to my hotkey routine, is the best practice to wrap th

Re: Is Keyword VBS or WindowEyes?

2011-03-30 Thread Doug Geoffray
Bruce, The help option currently doesn't work with the FrameWork App because in 7.5 we changed the name of the help file and the App hasn't been updated but it will shortly. But the Window-Eyes App Developer Reference does have an in-depth example of using the Strings method in the location

Re: Is Keyword VBS or WindowEyes?

2011-03-30 Thread bT
Hi Rick, It has it under Applications and nothing there to explain it. Just says there is a list of strings inside the XML file. doing the help button and got an error and sent an error report on it. Unless there is a newer version of the Framework program, no knowledge of the fu

Re: Is Keyword VBS or WindowEyes?

2011-03-30 Thread RicksPlace
Thanks Aaron: Off to continue through the Framwork learning as I go... To better keep up with Chip's online classes. Rick USA - Original Message - From: Aaron Smith To: gw-scripting@gwmicro.com Sent: Wednesday, March 30, 2011 10:06 AM Subject: Re: Is Keyword VBS or WindowEyes?

Re: Is Keyword VBS or WindowEyes?

2011-03-30 Thread Aaron Smith
Strings is a method of the Window-Eyes Application object. Aaron On 3/30/2011 9:52 AM, RicksPlace wrote: Hi: In the following statement what is the "Strings()" object or method? and is it a VBS or WindowEyes thingy? myStrings= Strings(myXMLFile) I have looked at the VBScript manual but not fou

Is Keyword VBS or WindowEyes?

2011-03-30 Thread RicksPlace
Hi: In the following statement what is the "Strings()" object or method? and is it a VBS or WindowEyes thingy? myStrings = Strings(myXMLFile) I have looked at the VBScript manual but not found it and it is not in the Object list in the WE Docs nor did I find it blasting through the GW ToolKit d

Re: Need Help With MSAAEventSource Problem In External Script

2011-03-30 Thread RicksPlace
Hi: This morning I changed 2 things but the changes did not seem to help: I changed the constant MSAAEventID to a Integer type to match the conversion mentioned in the VB.net Object Browser and, and added a prefix to the front of the Sub name just to match the form used by the clientInformatio