[jawsscripts] Re: Using Virtual Viewer right after DlgSelectItemInList

  • From: "Kamil" <kamilimak@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 1 Jul 2008 11:52:15 -0400

Thanks Jackie and Alice for your prompt responses.

Based on Alice's experience, I tried JAWS 8 & 9 and none of them had this 
issue.
It seems that it's only happening for version 7 and earlier.
While upgrading to a higher version is something that I'm going to do, 
hopefully by the end of the year,
I still welcome any thoughts or suggestions that can shed some light on 
cause of this odd issue.

Thanks a lot,

Kamil

----- Original Message ----- 
From: "Smith, Alice A. HQ DCO" <Alice.A.Smith@xxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, July 01, 2008 10:42 AM
Subject: [jawsscripts] Re: Using Virtual Viewer right after 
DlgSelectItemInList


> Kamil,
>
> I am using JAWS 9 in Windows XP. Your code works fine in Notepad. I
> compiled and ran the following. The only time the Virtual Viewer
> disappears is when you press Ctrl+K a second time or press Escape.
>
> ;Notepad=20
> ;Testing DlgSelectItemInList with VV
> Include "HjGlobal.jsh" ; default HJ global variables
> Include "hjconst.jsh" ; default HJ constants
>
> Script PerformAction () ;Ctrl+K
> Var
> int result
> Let result =3D DlgSelectItemInList("Word1|Word2", "Glossary", TRUE, 1)=20
> If result =3D=3D 1 Then
> UserBufferClear()
> UserBufferAddText("blah blah blah")
> UserBufferAddText("blah blah blah")
> UserBufferActivate()
> EndIf
>
> EndScript
>
> Just to be safe, I add the following before I call the virtual viewer.
>
> if UserBufferIsActive() then
>    UserBufferDeactivate()
> EndIf=20
>
> Your code snippet doesn't include everything in the function/script. If
> you are still having problems, please send more code.
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Kamil Shafizadeh
> Sent: Monday, June 30, 2008 9:43 PM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Using Virtual Viewer right after
> DlgSelectItemInList
>
> Hi folks,
> I'm trying to give the user the choice of selecting an item using
> DlgSelectItemInList and then displaying the related details in Virtual
> Viewer.
> The problem is that once I add the text to the user buffer and try to
> activate, it shows up for a second and the gets closed.
> If I put several pauses after adding text and before activating the
> buffer, virtual viewer shows up and stays.
> Dependency on pauses is what I would like to avoid.
> Any advice would be highly appreciated.
> (The sample code comes below)
> =20
> Thanks,
> =20
> Kamil
> =20
> Let result =3D DlgSelectItemInList("Word1|Word2", "Glossary", TRUE, 1) =
> If
> result =3D=3D 1 Then
> UserBufferClear()
> UserBufferAddText("blah blah blah")
> UserBufferAddText("blah blah blah")
> Pause() Pause() Pause() Pause() Pause()
> UserBufferActivate()
> EndIf
> =20
> =20
> _________________________________________________________________
> News, entertainment and everything you care about at Live.com. Get it
> now!
> http://www.live.com/getstarted.aspx
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
> 

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

Other related posts: