[jawsscripts] Re: Using the SetWindowVisualState Method

  • From: Marcus <marcus.canaday@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sat, 4 Feb 2017 15:00:29 -0500

Thanks Bob.



On 2/4/2017 12:39 PM, Bob wrote:

I cant remember the line to declare the the UIA object so some lazy code 
below:

hWnd = GetAppMainWindow(GetCurrentWindow())

Element = UIA.GetElementFromHandle(hWnd)

Two options:

PatternObject = Element.GetWindowPattern()

PatternObject.SetWindowVisualState(WindowVisualState_Maximized)

Or single line:

Element. GetWindowPattern().SetWindowVisualState(WindowVisualState_Maximized)

Hope this helps

Bob


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Marcus
Sent: 04 February 2017 17:08
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Using the SetWindowVisualState Method
Importance: High

Good afternoon,


I'm hoping someone can give me an example of how to use the 
SetWindowVisualState method to maximize a window. Thanks much.



__________

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



__________�

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


__________�

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

Other related posts: