[ddots-l] Re: Creating .HSC Code For A Stand-alone Application

  • From: "Phil Muir" <ddots@xxxxxxxxxxxx>
  • To: <ddots-l@xxxxxxxxxxxxx>
  • Date: Tue, 3 Feb 2009 21:43:57 -0000

Cool!  Yup, feel free to give me a call.  Curious which application your trying 
to get going?

Regards, Phil Muir
 
P J Muir Productions,
Music And Audio Production
Telephone: US (615) 713-2021  
UK+44-1747-821-794
Mobile: UK +44-7968-136-246
E-mail:
info@xxxxxxxxxxxx
URL:
www.philmuir.com/ 
  ----- Original Message ----- 
  From: Omar Binno 
  To: ddots-l@xxxxxxxxxxxxx 
  Sent: Tuesday, February 03, 2009 9:41 PM
  Subject: [ddots-l] Re: Creating .HSC Code For A Stand-alone Application


  Thanks a bunch Phil,

  I'll have my brother help me with this. If I have any issues, I'll skype you 
if that's okay.

  Thanks again.
    ----- Original Message ----- 
    From: Phil Muir 
    To: ddots-l@xxxxxxxxxxxxx 
    Sent: Tuesday, February 03, 2009 4:30 PM
    Subject: [ddots-l] Creating .HSC Code For A Stand-alone Application


    Hi Omar!

    I have altered the subject line of this E-mail to reflect the content.  
This is easy enough to do.

    1: open the stand-alone application that you wish to script.

    2: Open the script manager and create a blank .jss file for the application 
in question.

    3: add the following code to your .jss file:

    use "HotSpotClicker.jsb" 

    Void Function FocusChangedEvent (handle FocusWindow, handle PrevWindow)
    HSCFocusChanged (GetWindowname (GetTopLevelWindow (FocusWindow)))
    ; now call the version in default.jss.
    FocusChangedEvent (FocusWindow, PrevWindow)
    EndFunction

    int Function HandleCustomWindows (handle hFocus)
    if (HSCCheckForPrompt (hFocus)) then
    ; a prompt exists for this window
    ; if you specify a processing function for the prompt, it can say the 
window contents.
    ; So we are done.
    return(1) ; indicate that we took care of it.
    Endif
    ; include any other logic you need for other purposes.
    ; return 1 if you don't want jaws default processing to do any more 
speaking.
    return(0) ; means we did not handle this window, so jaws should take care 
of it itself
    EndFunction


    Then, press the keystroke Control and the letter S to compile the script 
source.  Close out the script source and start creating your .HSC sets.

    Note: the above code was taken from your 
HSCConnectionCodeForBlankJssFiles.HTML

    file.  This file is located in your HotSpotClicker folder in Program files.

    Regards, Phil Muir
     
    P J Muir Productions,
    Music And Audio Production
    Telephone: US (615) 713-2021  
    UK+44-1747-821-794
    Mobile: UK +44-7968-136-246
    E-mail:
    info@xxxxxxxxxxxx
    URL:
    www.philmuir.com/

Other related posts: