[jawsscripts] Re: VMware Player

  • From: "Donald Marang" <donald.marang@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 7 Aug 2009 17:45:49 -0400

When I say set the Window Class manually, I was referring to editing the 
text file, "VMPlayer.jcf".  If you use the Window Class Reassign utility, 
you are limited to the classes in the utilities list box.  The classes in 
the list cover almost all classes recognized by JAWS.  In fact, I have only 
found "HelpBalloon"  that JAWS recognizes, but is not in the list.  I have 
no idea if there are more classes JAWS can recognize.  I did notice that 
there is not a "MenuBar" class in the list, so I have been experimenting to 
determine if JAWS recognizes this as a class and if that would help in this 
situation.  Does anyone know what this control should have as a window 
class?  Does anyone have a list of classes that JAWS recognizes that are not 
in the utility's list?

Example of a JCF file:
[WindowClasses]
ATL:004701B0=ListView
;  #32770=HelpBalloon
ToolbarWindow32=MenuBar

You can dynamically change items in the JCF file within scripts with the 
SetJCFOption function.  But I do not think that function could set window 
classes.  A window class could be modified using the more generic 
IniWriteStringfunction.  But Window Classes should not change so editing and 
distributing the JCF file would be more appropriate.

I have been attempting to rewrite your Open function to use a more reliable 
MoveToControl call.  I have used this command many times, but it is not 
working for me in this application yet!  I will paste the revised function 
below.  Perhaps someone can notice my stupid mistakes.

If I get this call working,   how would you want this function to work.  It 
could simply click the "Open" button.  This dialog also has a button for 
downloading other Virtual Machines from their market place and a useful 
multi select list of recently used virtual machines.  Eventually, if these 
basic calls work, a check could be made in the AutoStartEvent function for 
the presence of this dialog and bring up options as soon as the application 
starts.

Script Open ()
var
 string sClass,
 int iCid,
 string sTitle

; Open browse dialog button ID = 263
; Download from market place button ID = 264
; Recent multi select list ID = 265

let sClass="Button"
Let iCid = 263
let sTitle=GetAppTitle ()
SayString ("in Open script:  title =" + sTitle)
if sTitle=="VMware Player" then
 ; Let iAction = DlgSelectControls (sDialogControls, 4, "How do you want to 
select a virtual machine?", iMask, iMaskDefault)
 ; Let iIndex = DlgSelectItemInList (sOpenControls, "How do you want to 
select a virtual machine?", False, 1)
 If MoveToControl (GetAppMainWindow (GetFocus ()), iCid) Then
  ; JAWSCursor ()
  ; JAWSPageUp ()
  ; JAWSHome ()
  ; NextLine ()
  ; NextLine ()
  ; NextLine ()
  ; NextLine ()
  ; NextWord ()
  SayString ("clicking the open button")
  SayLine ()
  LeftMouseButton ()
 Else
  SayMessage (OT_ERROR, "Open button not found!")
 EndIf
 PCCursor ()
else
 SayMessage (OT_ERROR, "There is already a virtual machine running")
endif
EndScript


Don Marang


----- Original Message ----- 
From: "Chris Hallsworth" <christopherh40@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, August 07, 2009 9:51 AM
Subject: [jawsscripts] Re: VMware Player


> Yes I agree. The menu is accessible once opened; it's the bar itself. How 
> do
> I manually reclass a control, i.e., via scripting?
>
> --
> Chris Hallsworth
> E-mail: christopherh40@xxxxxxxxxxxxxx
> MSN: ch9675@xxxxxxxxxxx
> Skype: chrishallsworth7266
> Klango: chrishallsworth
>
> --------------------------------------------------
> From: "Donald Marang" <donald.marang@xxxxxxxxx>
> Sent: Friday, August 07, 2009 5:38 AM
> To: <jawsscripts@xxxxxxxxxxxxx>
> Subject: [jawsscripts] Re: VMware Player
>
>> Hi Chris,
>>
>> I have started to collect info about the VM application and menus.  there
>> are quite a few built-in scripts and functions to work with menus.  Just
>> do
>> a search for "menu" in the FSDN to get an idea.  Functions like
>> GetMenuName
>> GetMenuMode
>> MenuModeEvent
>> MenuBarActiveProcessed
>> and
>> MenuActiveProcessed
>> look useful once a menu is activated to get information and feedback
>> about
>> the status, mode and location in the menus.  However, this is not really
>> the
>> problem in this application.  They seem to work fine once activated.
>> There
>> are functions like
>> ActivateMenuBar
>> but I don't think this by itself will do anything different than pressing
>> the Alt key.  Perhaps a manual window classification like I previously 
>> was
>> able to do with System Tray windows will help.
>>
>> I have not gotten much accomplished today.  I was not feeling well and
>> there
>> was a bat flying around the room all night!
>>
>> Don Marang
>>
>>
>> ----- Original Message ----- 
>> From: "Chris Hallsworth" <christopherh40@xxxxxxxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Thursday, August 06, 2009 3:45 PM
>> Subject: [jawsscripts] Re: VMware Player
>>
>>
>>> Could someone please give me tips on making the VMware Workstation menu
>>> bar
>>> accessible? For example are there built in functions or scripts I can 
>>> use
>>> to
>>> tell JAWS that it's a menu bar and that it should behave that way? 
>>> Please
>>> advise. Thanks.
>>>
>>> --
>>> Chris Hallsworth
>>> E-mail: christopherh40@xxxxxxxxxxxxxx
>>> MSN: ch9675@xxxxxxxxxxx
>>> Skype: chrishallsworth7266
>>> Klango: chrishallsworth
>>>
>>> --------------------------------------------------
>>> From: "Donald Marang" <donald.marang@xxxxxxxxx>
>>> Sent: Thursday, August 06, 2009 12:18 AM
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Subject: [jawsscripts] Re: VMware Player
>>>
>>>> Yes that would be nice.  I have not done too much with menus, but I 
>>>> will
>>>> attempt to look into it as time permits.
>>>>
>>>> Don Marang
>>>>
>>>>
>>>> ----- Original Message ----- 
>>>> From: "Chris Hallsworth" <christopherh40@xxxxxxxxxxxxxx>
>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>> Sent: Wednesday, August 05, 2009 4:57 PM
>>>> Subject: [jawsscripts] VMware Player
>>>>
>>>>
>>>>> Hello all,
>>>>> I'd like to have a go at creating some scripts to make VMware Player
>>>>> more
>>>>> keyboard friendly, particularly when wanting to use the menus. Any
>>>>> starters
>>>>> would be greatly appreciated. At the moment it works fine with JAWS,
>>>>> however
>>>>> you have to use the JAWS cursor to first find either the VMware Player
>>>>> or,
>>>>> if a virtual machine is running, devices. Once I've found that I just
>>>>> click
>>>>> on it and a standard pull down occurs and JAWS can read the menus and
>>>>> associated dialogue boxes fine. So I would like to enhance the
>>>>> accessibility
>>>>> so that JAWS can quickly locate and click on the appropriate menus,
>>>>> which
>>>>> I
>>>>> think are actually toolbars, according to the tutor message, using
>>>>> keystrokes.
>>>>> Thanks in advance for any starters.
>>>>> --
>>>>> Chris Hallsworth
>>>>> E-mail: christopherh40@xxxxxxxxxxxxxx
>>>>> MSN: ch9675@xxxxxxxxxxx
>>>>> Skype: chrishallsworth7266
>>>>> Klango: chrishallsworth
>>>>>
>>>>> __________
>>>>> Visit and contribute to The JAWS Script Repository
>>>>> http://jawsscripts.com
>>>>>
>>>>> View the list's information and change your settings at
>>>>> http://www.freelists.org/list/jawsscripts
>>>>>
>>>>
>>>> __________
>>>> Visit and contribute to The JAWS Script Repository
>>>> http://jawsscripts.com
>>>>
>>>> View the list's information and change your settings at
>>>> http://www.freelists.org/list/jawsscripts
>>>>
>>> __________
>>> Visit and contribute to The JAWS Script Repository 
>>> http://jawsscripts.com
>>>
>>> View the list's information and change your settings at
>>> http://www.freelists.org/list/jawsscripts
>>>
>>
>> __________
>> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
> 

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: