[jawsscripts] Re: can't use CreateObjectEx when using HotSpotClicker

  • From: "Jonathan C. Cohn" <jon.c.cohn@xxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 26 Mar 2015 12:55:02 -0400

Well, HSC should not create functions with different parameter lists then the 
original, but then again maybe the original has changed. You could create a  
prototype statement at the top perhaps using an optional argument. You will 
probably need to force JAWS to use the builtin version of the function also by 
using something like 

builtin::CreateEvent() 

Best of luck,

Jonathan
 

Sent from my iPhone

> On Mar 26, 2015, at 12:26 PM, Jason Fayre <jfayre@xxxxxxxxx> wrote:
> 
> Hello,
> I'm trying to do some work on an application that uses hotspots
> created with HotspotClicker. Unfortunately, I'm unable to do anything
> with CreateObjectEx to create a UIA object while hsc is loaded. If the
> use hotspotclicker.jsb item is in my script, the compile fails with an
> error stating:
> Function CreateObjectEx requires two parameters not three.
> If I remove the hsc line from the script, this problem goes away.
> I looked at the HSC script, and it looks like it has a CreateObjectEx
> function defined that appears to only take two parameters.
> Has anyone come across this and how did you solve it?
> Thanks!
> __________�
> 
> 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: