[jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- From: "Dennis Brown" <DennisTBrown@xxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Mon, 24 Dec 2007 11:47:43 -0500
Hi,
Here is an example:
ClickAtPoint(GetCursorCol(),GetCursorRow(),TRUE)
The GetCursorCol() gives the cursor's current column, and GetCursorRow()
gives the cursor's current row.
If you have to move the Jaws cursor a couple of pixels to the link itself,
then you can add a couple to the cursor column with:
ClickAtPoint(GetCursorCol()+2,GetCursorRow(),TRUE)
This would send the function the column + 2.
Use Alt+Delete to get the cursor position, then see how many column
positions the link is from the actual cursor, then add that to the column
parameter within the function.
It sounds like the cursor isn't positioned on the link by default.
Tab to a link, then hit Insert+Space to activate HomeRow.
Next, use F3 to get to type code, and use F1 to hear the code. If it says
47, it Jaws sees it as a link.
If Jaws doesn't see it as a link, RouteJawsToPc and then move to the link,
then check its type code again.
If it is 47, then it is a matter of the cursor not being positioned on the
link by default.
If Jaws does see it as a link, and pressing Enter doesn't activate it, then
pass the Enter key through by first hitting Insert+Numpad3, then Enter.
This will ensure the Enter isn't getting trapped by a script somewhere.
If Jaws does recognize it as a link, but the Enter key does not activate the
link, and the Enter key is not trapped, then there are indeed links that the
developer creates that only activate with an OnClick internal function call.
If this is such an application, then adding the following script is one way
to handle it:
Script MyEnterKey()
; Assign to the Enter key...
If GetObjectSubTypeCode(TRUE)==47 Then
; It is indeed a link...
LeftMouseButton()
Return
EndIf
;It isn't a link, so let the default Enter script get called...
PerformScript Enter()
EndScript
Thanks,
Dennis Brown
----- Original Message -----
From: "Pranav Lal" <pranav.lal@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, December 24, 2007 11:16 AM
Subject: [jawsscripts] Re: Clicking a link in a program that uses Internet
explorer
Hi Dennis,
How do I determine the x and y coordinates for the cursor? Plus, wont these
change as the amount of information that is displayed on the screen changes?
Pranav
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Dennis Brown
Sent: Monday, December 24, 2007 9:22 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Clicking a link in a program that uses Internet
explorer
Hi,
ClickObjectByName works on MSAA objects, and was written for instances where
you need to click on an object like a tool bar item, etc.
For instance, I used this when writing the Windows Live Messenger/MSN
Messenger script set, and I wanted a keystroke to move the user to the
History window. It wouldn't be the best for your situation.
Just off the top of my head, what about the ClickAtPoint function?
ClickAtPoint(GetCursorCol(),GetCursorRow(),TRUE)
The True option tells it to use the JawsCursor.
Again, this is just off the top of my head.
Thanks,
Dennis Brown
----- Original Message -----
From: "Pranav Lal" <pranav.lal@xxxxxxxxx>
To: <JAWSScripts@xxxxxxxxxxxxx>
Sent: Sunday, December 23, 2007 8:32 PM
Subject: [jawsscripts] Clicking a link in a program that uses Internet
explorer
Hi all,
I am trying to write scripts for a program called ultimate vocabulary.
You
can get a trial version of this programme from www.ultimatevocabulary.com.
The programme uses Internet Explorer. A significant number of its options
are rendered as links. However, something nonstandard is being done to
them
such that even if I press enter on those links, they do not get clicked.
I
have to use the JAWS cursor to click those links. I was trying to find a
way to click these links via jaws scripts. I came across the
ClickObjectByName procedure which may do what I want. However, this
procedure requires a window handle which changes for every application
session. So, how do I click these links?
For example, there is a link called "Word Test". As of now, I have to
click
it by:
1. Root the jaws cursor to the pc cursor.
2. Double click on that link.
I have tried using Jamal Mazrui's windig utility to make some sense of the
program screen. I got a host of window handles and MSAA objects. Many of
the
MSAA objects are clickable. What do I do next?
Pranav
__________
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
__________
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
- References:
Other related posts:
- » [jawsscripts] Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
- » [jawsscripts] Re: Clicking a link in a program that uses Internet explorer
Hi all, I am trying to write scripts for a program called ultimate vocabulary. You can get a trial version of this programme from www.ultimatevocabulary.com. The programme uses Internet Explorer. A significant number of its options are rendered as links. However, something nonstandard is being done to them such that even if I press enter on those links, they do not get clicked. I have to use the JAWS cursor to click those links. I was trying to find a way to click these links via jaws scripts. I came across the ClickObjectByName procedure which may do what I want. However, this procedure requires a window handle which changes for every application session. So, how do I click these links? For example, there is a link called "Word Test". As of now, I have to click it by: 1. Root the jaws cursor to the pc cursor. 2. Double click on that link. I have tried using Jamal Mazrui's windig utility to make some sense of the program screen. I got a host of window handles and MSAA objects. Many of the MSAA objects are clickable. What do I do next? Pranav __________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts