[jawsscripts] Re: DlgSelectScriptToRun function problem

  • From: John Martyn <johnrobertmartyn@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 4 Nov 2013 00:29:02 -0700

The better bet is to use the user buffer to call scripts. It works much
better and won't give you errors. The only problem is you have to
prepopulate the JSM file manually. Here is an example. It might be possible
to build a function to get all your scripts and make a user buffer but the
scripts would have to be more descriptive in that approach.
messages
@navigationKeys Navigation Keys
Go to Home Page %KeyFor (HomePage) 
Go Back a Page or window %KeyFor (BackPage) 
Go Forward a Page %KeyFor (ForwardPage) 
Follow the currently playing song in the Music Library %KeyFor (FollowTrack)

@@
@informationKeys Informational Keys
Check the currently playing Artist and Song %KeyFor (CurrentlyPlaying) 
Check the currently playing song's timecode %KeyFor (Timeline) 
Check information in the LCD window %KeyFor (Information) 
Check the Track Totals status bar %KeyFor (TrackStatus) 
@@
@windowAccess Window Access
Access the Sources Sidebar %KeyFor (GoToSidebar) 
Access the visible track or window list %KeyFor (GoToTrackList) 
iTunes Store Web interface %KeyFor (GoToWeb) 
@@
@windowOptions Window Options
Use the search feature %KeyFor (EditSearch) 
Fast forward through a song %KeyFor (FastForward) 
Rewind through a song %KeyFor (Rewind) 
Uncheck and check songs in the track list. %KeyFor (BoxyBoxy) 
Enable or disable the column browser. %KeyFor (ColumnBrowser) 
Change the column positions and sort columns. %KeyFor (ColumnSort) 
Enable or disable multiSelect %KeyFor (MultiSelect) 
Access the window sort options %KeyFor (WindowOptions) 
Shift a track up in a playlist %KeyFor (ShiftUp) 
Shift a track down in a playlist %KeyFor (ShiftDown) 
Drag and Drop playlists %KeyFor (DragNDrop) 
Apply an equalizer preset to a song or group %KeyFor (Equalizer) 
Apply a genre to a song or group %KeyFor (ChangeGenre) 
Apply a rating to a song or group %KeyFor (ChangeRating) 
Multi Check or Uncheck by Artist or Album %KeyFor (UncheckItems) 
Access the Helper functions %KeyFor (HelperScripts) 

@@
endmessages

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Csaba Godo
Sent: Sunday, November 03, 2013 11:21 PM
To: JAWSScripts List
Subject: [jawsscripts] DlgSelectScriptToRun function problem

Hi guys,

I need some help in scripting DlgSelectScriptToRun function. This function
displays a dialogbox and the list on it can be filled with items, which
could start directly scripts by pressing spacebar. My problem is when I
start a script from this list, which uses InputBox function, then after
terminating this script I can not display the script list dialog again,
because I get the message that one of the JAWS dialogs is opened and until
closing it I can't display a new one again.

Here is my script:

Script ShowScriptSelector()
; Displays the script chooser dialog
; Ctrl+Alt+M

DlgSelectScriptToRun("InsertFraction", "LateX Inserter", TRUE) EndScript

Script InsertFraction
var string sA
If InputBox("Enter the fraction:", "Fraction", sA) != 0 Then
TypeString("Entered fraction: " + sA) EndIf EndScript

It seems when in the script list I choose an item and press spacebar, then
JAWS does not close this dialog immediately before running the selected
script, but hides it. So when the "InsertFraction" script ends then the
hidden script list dialog stays opened and lacks the JAWS open it again. Do
somebody have idea about a workaround for this problem?

Thanks in advance!

Csaba
__________ďż˝

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: