[jawsscripts] Re: Maximizing a window

  • From: "Snowman" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 2 Dec 2017 17:21:34 -0600

That is why it is best to use the names instead of the numbers.  But, to use 
the names, you must include the proper .jsh file, and I don't know that name 
at the moment.
But, using those names makes this read a little better, and there are some 
other maintainability reasons to use those as well.
Steve, just compare these numbers with whatever these names you use are 
defined to.
But, if these numbers are correct, or the names to which they are attached, 
this should work.



+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern 
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message ----- 
From: "Jeremy Richards" <jeremy.richards7@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, December 02, 2017 5:00 PM
Subject: [jawsscripts] Re: Maximizing a window


Hi,

What do these numbers represent: 274 and 61000.

(GetFocus()), 274, 61488, 0)

Thanks

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Csaba Godo
Sent: Saturday, December 2, 2017 2:51 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Maximizing a window

Hi Steve,

there is my working code to minimize/maximize windows in JAWS Script:

Script WindowMinimize ()
; Minimizes the window to the Taskbar
SendMessage(GetAppMainWindow(GetFocus()), 274, 61472, 0)
EndScript ; WindowMinimize

Script WindowMaximize ()
; Maximizes the window to the full screen.
SendMessage(GetAppMainWindow(GetFocus()), 274, 61488, 0)
EndScript ; WindowMaximize

HTH

Csaba





2017. 12. 02. 14:47 keltezéssel, Steve Spamer írta:

Hi folks. I currently have:
PostMessage (hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0) to maximize a
window, but it definitely isn’t working.  Could anyone let me know what I 
need to include in order to get a window maximized when opening it? THX 
Steve.
Follow me on Twitter: @stevesax123
Visit the samplitude Access website. Jaws scripts for pro recording
with Samplitude in Windows: www.samplitudeaccess.org.uk __________

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

__________

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

__________�

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

__________�

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

Other related posts: