Re: Stumped: JAWS GetObject function for current browser window?

  • From: "Bryan Garaventa" <bryan@xxxxxxxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 21 Sep 2007 13:14:11 -0700

I'm not sure, but I'll give it a go.

In the mean time, if anyone wishes to help me convert this into a JAWS script understandable format (hint hint), I'll be happy to give you my soul.

Have a great day,

Bryan Garaventa

----- Original Message ----- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Friday, September 21, 2007 12:46 PM
Subject: Re: Stumped: JAWS GetObject function for current browser window?


Hi Bryan,

I'm not sure this is exactly what you're looking for, but it's the guts of a vbs file that I found recently while Googling for something else.

It uses WMI to find all instances of Internet Explorer currently running on your own machine.

If you twist Jamal's arm, you may be able to get him to integrate this seamlessly into JAWS Script code.

 Here it is anyway:

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objShell = CreateObject("Wscript.Shell")

Set colProcesses = objWMIService.ExecQuery _
   ("Select * from Win32_Process Where Name = 'iexplore.exe'")
 WScript.Echo "Number alive: " & colProcesses.Count

For Each proc in colProcesses
 WScript.Echo "Handle: " & proc.Handle
 WScript.Echo "Process ID: " & proc.ProcessID
Next

 I don't think any lines have wrapped, but caveat emptor...

 Martin


----- Original Message ----- From: "Bryan Garaventa" <bryan@xxxxxxxxxxxxxxxxxxx>
To: <ProgrammingBlind@xxxxxxxxxxxxx>
Sent: Friday, September 21, 2007 7:03 PM
Subject: Stumped: JAWS GetObject function for current browser window?


Are there any JAWS scripters or Windows API programmers out there that can help me figure this problem out?

I need to create an object that reflects the current browser instance within a script, but am having trouble figuring out how to do this. For instance...

var object BrowserInstance
let BrowserInstance = GetObject("NoIdeaWhatToPutHere...")

Specifically, I need to retrieve the currently running instance of Internet Explorer7, as it appears when currently running.

The object type that I need to return is the Internet Explorer IDispatch object for the running application, which I asume would be properly named within the Windows Running Object Table.

If I could get the name for the instance of IE7 as listed in the Windows Running Object Table, presumably I could use the GetObject function successfully to retrieve this object.

Do you have any ideas how I might be able to do this? Any help would be greatly appreciated.

Thanks, and best wishes,

Bryan Garaventa




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



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

Other related posts: