[jawsscripts] Re: How to maximize windos in JAWS script?

  • From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 6 Jun 2013 21:43:16 +0700

Hi
Here is another method
Script ToggleRestoreWindow ()
;This script make notepad maximize or restore
Var
String sName, String sShortname ;Get the name of currently open file
SpeechOff ()
{Alt+space}
If GetControlAttributes (false)==4 then ;the Restore option is unavailable
{x} ;send letter x to current application
Let sName=FormatString (Maximize_l, GetAppTitle ())
Let sShortname=FormatString (Maximize_s, GetAppTitle ())
Else ;windows is currently maximize
EnterKey ()
Let sName=FormatString (restore_l, GetAppTitle ())
Let sShortname=FormatString (restore_s, GetAppTitle ())
EndIf
Pause ()
SpeechOn ()
SayFormattedMessage (ot_message, sName, sShortName)
EndScript
I coppied this from the script I've written for notepad
HTH
Cuong
----- Original Message ----- 
From: "Csaba Godo" <arpadhazi68.jawsul@xxxxxxxxx>
To: "JAWSScripts List" <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, June 06, 2013 8:04 PM
Subject: [jawsscripts] How to maximize windos in JAWS script?


> Hi guys,
>
> What is the best practice in JAWS script to maximize the active window?
> I would like to maximize all application windows at startup and examine
> this status at GetFocus event. If the window is in normal state, then it
> should be maximized. Is it possible with JAWS script? I did not find any
> built-in command.
>
> Thanks in advance for your help!
>
> Csaba
> __________ďż˝
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
________________ Dang Manh Cuong HCMC University of Pedagogy: The 
Educational Psychology Mobile: +84 902-572-300 E-mail: 
dangmanhcuong@xxxxxxxxx Yahoo! ID: manhcuong0312 Skype name: dangmanhcuong 
facebook: 

__________ďż˝

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

Other related posts: