[jawsscripts] Re: Invalid window, hitting a brick wall?

  • From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 8 Mar 2019 13:02:23 -0000

Well, not being a super experienced scripter here, I personally can't get 
this to work.  The situation is:
When the invalid window is encountered, I can go into BX, set focus to the 
foreground window and then navigate to the actual window that's opened.
Trying to gain focus or left clicking within BX on the foreground window or 
top level window etc does nothing, it seems as if only a left click within 
any children of this new window will bring focus and everything then starts 
working again.
The key issue is non of this works from the script.

So, in the scripts at the point where I'm focussed on the invalid window, 
only insert plus escape or functions like WindowsDestroyedEvent are active 
and working, all other keys do nothing.  Putting any script within the 
insert plus escape script or via a function like WindowDestroyedEvent does 
work, but it will not announce, set focus or click on any windows that I can 
navigate to within BX.

Example:
Function WindowDestroyedEvent (handle hWindow)
Var
    String strClass

Let strClass = GetWindowClass(getFocus())

If IsInvalidWindow () Then
; doesn't work.     SetFocus(GetForegroundWindow())
; doesn't work.     Say (GetWindowName(GetForegroundWindow()), OT_STRING, 
TRUE)
; doesn't work.
SaveCursor()
JAWSCursor()
MoveToWindow(GetForegroundWindow())
LeftMouseButton()
RestoreCursor()
    Return
etc etc etc
Else
WindowDestroyedEvent (hWindow)
EndIf
EndFunction

I know I'm limited with knowledge of jaws scripting, but do you think I'm 
hitting an issue that is present in the program and scripting is not the way 
to resolve matters? Best Steve.


-----Original Message----- 
From: Doug Lee
Sent: Thursday, March 7, 2019 8:42 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Invalid window, hitting a brick wall?

Try setFocus(getForegroundWindow())

On Thu, Mar 07, 2019 at 08:19:22PM -0000, Steve Spamer wrote:
CAUTION: This email originated from outside of the organization. Do not 
click links or open attachments unless you recognize the sender and know the 
content is safe.


Hi Pete. No I'm afraid not. It's the same with any screen reader loaded, so
I guess it's a native issue.  Like I said, the screen, although it shows
text, is just dead, no amount of clicking etc activates anything.  Only alt
tabbing out of it gets things going again.  Anyway, I can't seem to do
anything about it at the moment, so it will just have to be a situation
where the user will just have to alt tab.  It's not a regular action that
causes this, and it doesn't happen on any subsequent actions doing the same
thing, it seems as if it's just that initial importing..  best steve.

-----Original Message-----
From: Peter Torpey
Sent: Thursday, March 7, 2019 8:01 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Invalid window, hitting a brick wall?

Does doing a screen refresh help the problem?

--Pete


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Steve Spamer
Sent: Monday, March 4, 2019 2:23 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Invalid window, hitting a brick wall?

Hi folks. Here's another interesting situation I hope you can help with.

I have a situation that after a certain file is loaded, the scripts
encounter an invalid window.  Now, all can be resumed in regards to script
functionality if you say alt tab away and back in, or simply open the task
manager and then close again etc, but when this window is in focus, you
basically hit a brick wall.  You can't click in the window to bring focus,
you can't refresh, BX reports only this window and there are no parents or
children windows.  The scripts still report they are loaded, but non of the
keys work

So, you're basically stuck unless you manually do something like what I've
mentioned.  Has anyone encountered such a situation?, and if so, is there
any script way to maintain the scripts functionality without having to
manually get the focus back?  Nothing script wise I've currently tried
works.  I currently have the windows destroyed event reporting when this
happens, so I've tried switching scripts, refreshing and trying to get some
kind of focus via this function, but no joy.

If anyone has any ideas, I'd gladly like to hear them.  Many thanks steve.


Follow me on Twitter: @stevesax123
Visit the samplitude Access website. Jaws scripts for pro recording with
Samplitude in Windows: www.samplitudeaccess.org.uk

__________???

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

-- 
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and 
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was 
done." --Helen Keller
**********
Join us at CSUN March 13-15!
Booth 1013, Level Access Showcase Suite (Platinum Ballroom 8)
__________�

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: