I don't know why. TypeKey has one definite advantage and that is you can stuff the name of the key into a string variable and then pass it to the function which means you can do all kinds of neat things with it. Cheers, Andrew. On 6/06/2013 4:17 PM, Octavian Rasnita wrote: > Do you know why did they deprecated {key} style? (bugs or something like > that?) > The TypeKey() style is not as nice... > > > --Octavian > > ----- Original Message ----- > From: "Andrew Hart" <ahart@xxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Thursday, June 06, 2013 9:24 PM > Subject: [jawsscripts] Re: How to maximize windos in JAWS script? > > >> I believe that the {key} notation for sending a key to an application >> has been depricated by FS. It's still supported for backward >> compatibility, but good coding practice expects the use of TypeKey, as >> Dang has mentioned. >> >> Cheers, >> Andrew. >> >> On 6/06/2013 11:05 AM, Dang Manh Cuong wrote: >>> AH >>> I read some sample script wich do this method to send a key to an >>> application. For example, {x} will send x to application, like you type >>> x. >>> However, I do it because I might be lazy at the time I write the script, >>> and >>> forget to fix. If you like this script, you should use the typekey >>> function >>> instead. >>> Read an explanation, but now I don't remember the reacent for it. >>> Cuong Dang Manh >>> ----- Original Message ----- >>> From: "Csaba Godo" <arpadhazi68.jawsul@xxxxxxxxx> >>> To: <jawsscripts@xxxxxxxxxxxxx> >>> Sent: Thursday, June 06, 2013 9:58 PM >>> Subject: [jawsscripts] Re: How to maximize windos in JAWS script? >>> >>> >>>> Hi Dang, >>>> >>>> What a simple and brilliant method! Like SendKeys in old VB. Thank you >>>> for the idea! I'll use it. >>>> >>>> >>>> >>>> Tshaba >>>> >>>> >>>> 2013.06.06. 16:43 keltezéssel, Dang Manh Cuong írta: >>>>> 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 >>>>> >>>> __________ďż˝ >>>> >>>> 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 >>> >>> >>> >> >> >> __________ďż˝ >> >> 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