[jawsscripts] Re: General Script Query

  • From: Jonathan Cohn <jon.c.cohn@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 4 May 2016 10:21:03 -0400

I would expect that a type key("tab") would probably work better than calling 
the tab function. Though if you are attempting to get to a specific element in 
focus then using setFocus() on a window handle or the equivalent MSAA object 
command would be the approach I would take.

 
Best wishes,

Jonathan



On 4 May 2016, at 10:05, Hicks Steven (ROYAL CORNWALL HOSPITALS NHS TRUST) 
<steven.hicks@xxxxxxx> wrote:

Hi friends,
Not sure if anyone is able to help with the script below but it all seems to 
work fine, it locates the text on the screen and then double clicks but it 
doesn't seem to carry out the three tab press once it has moved to the 
location but when the script is complete, I can manually tab the three times 
as required, does anyone have any ideas please?
I Have commented out the three {tab} lines for now as they didn't do anything 
anyway.
Many thanks in anticipation,


Script SendMessage ()
If FindString(GetFocus(), "Send message", S_Top, S_Unrestricted) then
SayString("Send message")
LeftMouseButton()
LeftMousebutton()
;{tab}
;{tab}
;{tab}
Else
SayString("Match not found")
EndIf
PCCursor()
EndScript

********************************************************************************************************************

This message may contain confidential information. If you are not the 
intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take 
any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff 
in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive 
information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be 
accessed anywhere

********************************************************************************************************************
__________�

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: