[jawsscripts] Re: DlgSelectScriptToRun function problem

  • From: "Jonathan C. Cohn" <joncohn@xxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 5 Nov 2013 08:02:43 -0500

Csaba,
This is beyond the scope that I am capable of. It sounds like a fascinating 
process and might be useful for English speakers too.  
Best wishes,

Jonathan



On Nov 4, 2013, at 10:55 PM, Csaba Godo wrote:

> Hi Jonathan,
> 
> Thanks for the idea of the event scheduling. I went through a bit of the 
> default.jss file and found that the ScheduleFunction() function makes it 
> possible to do it. Now it seems that I can nest as many levels as I want.
> 
> But unfortunately, this solution is quite primitive for me. It was good 
> for me to do a prototype, but the final solution must be written in VB 
> as a reusable COM DLL. Using JFWApi I can call any script which are 
> loaded and can manage the information gathered from the JSD and JKM 
> files in a more elegant way than this. The user interface not mentioned. 
> There it is possible to use a treeview control for groupping and this 
> interface makes possible that user edits the whole hierarchy, ie. the 
> groups and the group items.
> 
> What I need is a generalized framework which implements the whole 
> functionality of the Keyboard Manager and extends it with some 
> functionality of the Script Manager, and adds some new one, too. And 
> this solution should work with many JAWS versions from 9 to 14. Because 
> many company user in Hungary uses even the version 9. Unfortunately not 
> all versions are localized. Olny version 9, 11 and 14 is translated.
> 
> 
> 
> 
> Tshaba
> 
> 
> 2013.11.04. 13:49 keltezéssel, Jonathan C. Cohn írta:
>> 
>> Sounds like you are trying to reproduce the type of functionality that jaws 
>> does with virtual ribbon and its DLL at least to some extent. In terms of 
>> the dialog box a quick hack to the solution would be to destroy the dialog 
>> and schedule an event to create it again.
>> Sent from my iPhone
>> 
>>> On Nov 4, 2013, at 4:24 AM, Csaba Godo <arpadhazi68.jawsul@xxxxxxxxx> wrote:
>>> 
>>> Hi John,
>>> 
>>> Many thanks for you idea, but for me it is not a good solution.
>>> I'm working on a generalized listbox based application menusystem, in
>>> which are listed all executable scripts, belonging to the given
>>> application regardless of whether there is a keystroke defined or not.
>>> The list should be expandable by editing an INI file. The scripts should
>>> be accessible trough this list. In many cases there are so many
>>> keystrokes to memorize, that is impossible, but with this solution the
>>> user needs to know that Ctrl+Alt+M opens the application menu list
>>> dialog and there are all commands listed. If it is neccessary, the
>>> commands should be groupped into logical groups for the better
>>> accessibility. If the user selects one of these logical groups, then the
>>> content of the list changes and displays only the content of the
>>> selected group. In this case, as the first list item, is displayed the
>>> 3-dot (well known from the DOS world) as a sign how to go back to the
>>> previous list. As a beta version I would like to do it with JAWS only,
>>> but later I will use a COM dll in wich I can encapsulate all
>>> functionality for this.
>>> 
>>> 
>>> 
>>> 
>>> Tshaba
>>> 
>>> 
>>> 2013.11.04. 8:29 keltezéssel, John Martyn írta:
>>>> 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
>>> __________ďż˝
>>> 
>>> 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

Other related posts: