[jawsscripts] Re: Writing Jaws Scripts!

  • From: "Jon Squally" <jonsqually@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 24 Aug 2009 09:01:43 -0700

Hello all.

From the code it looks like the first LeftMouseButton () is doing something
unrelated to the FindString ().  The if statement would allow a user to
determine whether the Findstring was successful since the function returns
an integer.  
Regards, Jon.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bob Kennedy
Sent: Monday, August 24, 2009 2:05 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: [jawsscripts] Re: Writing Jaws Scripts!

Hi John,

In order for your if statement to work, wouldn't you have to remove the 
first instance of the left mouse button?

I'm new at this so it's a question only.

Thanks
----- Original Message ----- 
From: "Jon Squally" <jonsqually@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Sunday, August 23, 2009 7:27 PM
Subject: [jawsscripts] Re: Writing Jaws Scripts!


Hello Chris, and all.

You might try putting an if statement to test whether the string is found so
that the left mouse button is not pressed unless check for updates is found.
The code would be as follows:
include "hjconst.jsh"
Script CheckForUpdates (); checks for updates.
JAWSCursor ()
JAWSPageUp ()
JAWSHome ()
NextLine ()
NextWord ()
NextWord ()
LeftMouseButton ()
If (FindString (GetCurrentWindow (), "check for updates", S_BOTTOM,
S_RESTRICTED))
then
LeftMouseButton ()
PCCursor ()
SayString ("Checking for updates, please wait")
Else
PcCursor ()
SayString ("Checking for updates not found")
endif
EndScript


I hope this helps, Jon.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Chris Hallsworth
Sent: Sunday, August 23, 2009 1:43 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Writing Jaws Scripts!

Hi all, I've created such script. See what you think of the code.
--start of code--
include "hjconst.jsh"
Script CheckForUpdates (); checks for updates.
JAWSCursor ()
JAWSPageUp ()
JAWSHome ()
NextLine ()
NextWord ()
NextWord ()
LeftMouseButton ()
FindString (GetCurrentWindow (), "check for updates", S_BOTTOM,
S_RESTRICTED)
LeftMouseButton ()
PCCursor ()
SayString ("Checking for updates, please wait")
EndScript

--end of code--
Thanks for any comments.
P.S. The hot key I assigned is CTRL+alt+u. Tested it three times, all did
what I asked it to do.
--
Chris Hallsworth
E-mail: christopherh40@xxxxxxxxxxxxxx
MSN: ch9675@xxxxxxxxxxx
Yahoo! Messenger: christopherh40@xxxxxxxxx
Skype: chrishallsworth7266
Klango: chrishallsworth

--------------------------------------------------
From: "Robert Edenhofer" <kc2mxg@xxxxxxxxxxx>
Sent: Wednesday, August 19, 2009 4:54 PM
To: <jawsscripts@xxxxxxxxxxxxx>
Subject: [jawsscripts] Writing Jaws Scripts!

> Hello, my names Bob Edenhofer, I'm interested in writing Jaws Scripts for
> a program called MalwareBytesAntiMalware, I've been reading the basics of
> scripting, manual, and trying to practice writing scripts for the program,

> and cannot get them to work!  I'd like to know if anyone of you guys could

> give me a hand on writing scripts, and maybe tandem into my machine and
> teach me I'm also on Skype, Feel free to look me up on skype!  My Skype
> name is Bob11272 the program works okay with jaws, but I want to asign the

> keystroke, Alt Control U for check for updates for
> MalwareBytesAntiMalware.  I can get on Skype if anyone wants to tandem
> with me.
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: