Re: jawsscripts Digest V2 #213 Outlook 2010 Script Bad Handle Marcus. Try the script below. It worked for me in Outlook 2010 regarding whether I was able to edit or not. Hopefully, that is what you are looking for. Paul ; PJB - used for testing Script TestOutlook () var int iType, handle fieldHandle LET fieldHandle = FindDescendantWindow(GetAppMainWindow(GetCurrentWindow()),To_Field) IF(!fieldHandle) THEN SayString("Bad Handle") RETURN ENDIF ; If the message is open for reading, To: field is type 43, if for editing, To: field is 66... let iType=GetWindowSubTypeCode(fieldHandle) IF iType==WT_MULTILINE_EDIT Then SayString("Editable") ELSE SayString("Not Editable") ENDIF EndScript On Saturday, November 8, 2014 9:16 AM, Paul Bonarrigo <pjbonarrigo@xxxxxxxxx> wrote: Re: jawsscripts Digest V2 #213 Outlook 2010 Script Bad Handle Marcus. I'll try experimenting to return a valid handle. I'll post a solution when I find one. Paul On Friday, November 7, 2014 11:08 PM, FreeLists Mailing List Manager <ecartis@xxxxxxxxxxxxx> wrote: jawsscripts Digest Fri, 07 Nov 2014 Volume: 02 Issue: 218 In This Issue: [jawsscripts] Re: jawsscripts Digest V2 #213 ---------------------------------------------------------------------- From: Marcus Canaday <marcus.canaday@xxxxxxxxx> Subject: [jawsscripts] Re: jawsscripts Digest V2 #213 Date: Fri, 7 Nov 2014 18:31:44 -0500 Thanks Paul, I'm a seasoned JAWS user but a novice scripter. Any suggestions on recoding the fuction to return a valid handle? I've tried to identify a unique window in the "reply" message but have had no luck. Thanks for your help. ----- Original Message ----- From: "" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "pjbonarrigo@xxxxxxxxx" for DMARC) <dmarc-noreply@xxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Monday, November 03, 2014 2:57 PM Subject: [jawsscripts] Re: jawsscripts Digest V2 #213 > Re: Outlook 2010 Script Question > I copied the contents of IsMessgeOpenForEditing function found in the > Outlook script file. > I then inserted it into a test script at the top of the Outlook script > file. > It is below. > I check for a valid handle, the original function does not. In the case > of a reply, focus is in the message body, script is checking the To_Field. > Replies return a bad handle. > If you recode the script below to return a good handle for the To_Field in > a Reply it should work. > You can also move focus into the To_Field of the reply and the existing > IsMessageOpenForEditing will work. > > > Script TestOutlook () ; Control + Shift + F12 > var > int iType, > handle hdl > hdl = FindDescendantWindow(GlobalRealWindow,To_Field) > IF(!hdl) THEN SayString("Bad Handle") ENDIF > ; If the message is open for reading, To: field is type 43, if for > editing, To: field is 66... > let > iType=GetWindowSubTypeCode(FindDescendantWindow(GlobalRealWindow,To_Field)) > If iType==WT_MULTILINE_EDIT Then > ;Return TRUE > SayString("Editable") > ELSE > ;Return FALSE > SayString("Not Editable") > ENDIF > EndScript > > > > > On Sunday, November 2, 2014 11:16 PM, FreeLists Mailing List Manager > <ecartis@xxxxxxxxxxxxx> wrote: > > > > jawsscripts Digest Sun, 02 Nov 2014 Volume: 02 Issue: 213 > > In This Issue: > [jawsscripts] Re: Outlook 2010 Script Question > [jawsscripts] SPSS script > > ---------------------------------------------------------------------- > > Subject: [jawsscripts] Re: Outlook 2010 Script Question > From: "Jonathan C. Cohn" <jon.c.cohn@xxxxxxxxx> > Date: Sun, 2 Nov 2014 20:09:33 -0500 > > I am not quite sure what you are needing, is it knowing which messages are > editable versus those that are read only? Or perhaps you need to know all > the types listed. If it is the former, then looking to see if Microsoft > Word is loaded in the window (which I donâ?Tt know exactly how to do) > Should be sufficient. > > Best wishes, > > Jonathan > > > > On Nov 1, 2014, at 10:02 AM, Marcus Canaday <marcus.canaday@xxxxxxxxx> > wrote: > >> I'm writing a script for Outlook 2010 that requires that I make a >> distinction between messages that I am sending (new messages or messages >> that are replies) vs. messages that are open for reading only. The >> IsMessageOpenForEditing function does not properly identify reply >> messages. Any help with this issue would be greatly appreciated. Thanks. >> >> --- >> This email is free from viruses and malware because avast! Antivirus >> protection is active. >> http://www.avast.com/ >> >> __________� >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> > > > ------------------------------ > > From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx> > Subject: [jawsscripts] SPSS script > Date: Mon, 3 Nov 2014 09:42:36 +0700 > > To all listers > Looking for a script for SPSS. Could you give me some advise? > Any help would be appreciated. > Cuong. > -------------- > Dang Manh Cuong > The Assistive technology specialist > Sao Mai Vocational and assistive center for the blind > 74/17 Bui Quang La, ward 12, Go Vap Dst, HCMC, Vietnam > Tel: +84862573309 > E-mail: trungtamsaomai2001@xxxxxxxxx > saomai.congnghe@xxxxxxxxx > Website: http://www.saomaicenter.org/ > http://www.sinhvienkhiemthi.org/ > Mobile: +84 902-572-300 > E-mail: dangmanhcuong@xxxxxxxxx > Yahoo! ID: manhcuong0312 > Skype name: dangmanhcuong > facebook: http://facebook.com/dangmanhcuong > Twitter: @ManhCuongTech > Website: http://ngoisaodanduong.com/ > Projec-Website: http://dangmanhcuong.googlecode.com/ > > > ------------------------------ > > End of jawsscripts Digest V2 #213 > ********************************* > __________� > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com/ ------------------------------ End of jawsscripts Digest V2 #218 ********************************* __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts