[jawsscripts] Re: Need help on AutoFinishEvent function

  • From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 25 Jan 2011 23:01:44 -0000

It's possible to add a line to the local KeyPressedEvent to save the name of 
each key as it is pressed, as a global variable.

  Martin


----- Original Message ----- 
From: "Don Marang" <donald.marang@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, January 25, 2011 10:29 PM
Subject: [jawsscripts] Re: Need help on AutoFinishEvent function


>I could not think of one either.  That is why I suggested the easiest
> solution.  The AutoFinishEvent, as you suggested is the best method to
> determine when the application closes or focus moves away from the
> application.  I was thinking of testing the last keystroke with a call to
> GetScriptKey and look for the absence of Alt + Tab or Alt + Shift + Tab.
> There are two problems with this.
>
> 1.  I did not do any testing if this call still holds the last key pressed
> in this case.  AutoFinishEvent is not a script, it is an event that gets
> triggered when windows acts upon this script called previously.  It might
> work?  I can not think of any easy way at the moment to retrieve the last
> keystroke.
>
> 2.  There are other ways to move the focus to another application, such as
> starting another application from the Start menu, using a hotkey to go to
> the Desktop, or bringing up a JAWS dialog.  All of these conditions need 
> to
> be considered when writing the logic.
>
> Don Marang
>
> There is just so much stuff in the world that, to me, is devoid of any 
> real
> substance, value, and content that I just try to make sure that I am 
> working
> on things that matter.
> Dean Kamen
>
>
> --------------------------------------------------
> From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx>
> Sent: Tuesday, January 25, 2011 5:24 AM
> To: <jawsscripts@xxxxxxxxxxxxx>
> Subject: [jawsscripts] Re: Need help on AutoFinishEvent function
>
>> Thanks for your suggestion. But when you exit some application like
>> notepad,
>> MS word, it will ask you to save current file or not, and I'd like the
>> script speaks that message after programme quit. I think we can check if
>> the
>> programme is not running, script will speaks that message. However, I
>> don't
>> know the function for doing it.
>> Signature________________ Dang Manh Cuong Course: Psychology of education
>> Department: HCMC University of Pedagogy 280 An Duong vuong, ward 4,
>> district
>> 5, HCMC Vietnam Home: 555/2B Tan Dong Hiep, Di An, Binh Duong Home -
>> phone:
>> +84 650-3742-067
>> ----- Original Message ----- 
>> From: "Don Marang" <donald.marang@xxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Tuesday, January 25, 2011 3:47 PM
>> Subject: [jawsscripts] Re: Need help on AutoFinishEvent function
>>
>>
>>> The most straight forward way to handle this would be to create a new
>>> script
>>> attached to the Alt + F4 key combination.  This script only needs to say
>>> what you want to say and then pass the keys on to the application.  This
>>> will not get called, however, if the application is closed  some other
>>> way,
>>> such as a File > Exit menu or the System > Close menu methods.
>>>
>>> Script ExitApp ()
>>> SayMessage (OT_MESSAGE, "Exiting Application", "Exiting...")
>>> TypeKey ("Alt+F4", )
>>> EndScript
>>>
>>> Don Marang
>>>
>>> There is just so much stuff in the world that, to me, is devoid of any
>>> real
>>> substance, value, and content that I just try to make sure that I am
>>> working
>>> on things that matter.
>>> Dean Kamen
>>>
>>>
>>> --------------------------------------------------
>>> From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx>
>>> Sent: Monday, January 24, 2011 3:16 AM
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Subject: [jawsscripts] Need help on AutoFinishEvent function
>>>
>>>> Hi listers
>>>> I'd like to create an auto finish event with the folowing features
>>>>
>>>> ·        If press alt+f4, says something like quit application
>>>>
>>>> ·        If press alt+tab to swich to other window, does not say
>>>> anything
>>>>
>>>> So how to do it. Please show me
>>>>
>>>> Thank so much
>>>>
>>>>
>>>>
>>>>
>>>> ________________
>>>> Dang Manh Cuong
>>>> Course: Psychology of education
>>>> Department: HCMC University of Pedagogy
>>>> 280 An Duong vuong, ward 4, district 5, HCMC Vietnam
>>>> Home: 555/2B Tan Dong Hiep, Di An, Binh Duong
>>>> Home - phone: +84 650-3742-067
>>>> Mobile: +84 902-572-300
>>>> E-mail: dangmanhcuong@xxxxxxxxx
>>>> Yahoo ID: manhcuong0312
>>>> Skype name: dangmanhcuong
>>>> Blog: http://vn.myblog.yahoo.com/manhcuong0312
>>>> Website: http://ngoisaodanduong.com
>>>> http://www.saomaicenter.org
>>>>
>>>>
>>>>
>>>> __________�
>>>>
>>>> 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
> 

__________�

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

Other related posts: