Thanks Doug for adding this to your plans.
 
The rest of the problem however is that it appears there's no way to create
on screen anything which looks and acts remotely like a context menu.
 
If I were asking for plans for enhancements, it would be more along the
lines of adding a context menu capability to the xml dialog facility of
window eyes, even though I'm sure these additional mouse event capabilities
will be helpful to someone.
 
thanks.
 
Chip
 

  _____  

From: Doug Geoffray [mailto:[email protected]] 
Sent: Friday, June 11, 2010 11:40 AM
To: [email protected]
Subject: Re: is it possible to create a context menu with a script?


I am behind on this thread but I'll chime in anyway.

You could use the OnButtonUp and OnButtonDown mouse events but currently we
only pass back the button that was used.  So in your event callback you
could use the Mouse object to get the window the mouse is over and it's
position to determine if you want to do anything.  Of course the issue with
this is it may be possible by the time you get the button event that the
mouse moved so you aren't getting the correct window or position when the
click occurred but I think this window is small enough to not worry about.

However, I did add to the Window-Eyes specs to setup an enhanced mouse event
that would not only give you the button of interest but also the Window
object the mouse was over, the mouse position and the keyboard modifier
state.

Doug

Chip Orange wrote: 

Hi Jamal,



what I was referring to were the "onButtonUp" and "onButtonDown" events for

the mouse object.



As Aaron points out, maybe you meant an event which relates the mouse button

click to a particular object it was clicked over; no such luck, these only

tell you if it was the left or right button and that's it.



Chip

 



-----Original Message-----

From: Jamal Mazrui [mailto:[email protected]] 

Sent: Friday, May 21, 2010 1:50 PM

To: [email protected]

Subject: RE: is it possible to create a context menu with a script?



Hi Chip,

Not sure what you mean.  I searched the scripting documentation and could

not find an event related to a right mouse click.  I only found one event

related to the Mouse object, which fires when the mouse pointer changes

shape.  If I've missed something, can you give me the specifics?



Jamal





-----Original Message-----

From: Chip Orange [mailto:[email protected]]

Sent: Thursday, May 20, 2010 7:50 PM

To: [email protected]

Subject: RE: is it possible to create a context menu with a script?



Jamal, there is one in the mouse object, but it isn't limited to any object

such as a control or dialog if that was what you were wanting.



Chip





-----Original Message-----

From: Jamal Mazrui [mailto:[email protected]]

Sent: Thursday, May 20, 2010 8:29 AM

To: [email protected]

Cc: Ron Parker

Subject: Re: is it possible to create a context menu with a script?



In WE8, could GW add an event for a right mouse button click?



Jamal





On 5/20/2010 8:14 AM, Ron Parker wrote:

  

Not necessarily "supposed to have both," no, but the recommendation at 

the time was that if you did have context menus, there should always 

be some other way to accomplish the same thing. This may have changed; 

it's been over a decade since I had to care about the nitty-gritty 

rules about context menus.



And no, there's no way in Window-Eyes to do this. Someone could create 

an application in some non-script language that exposed a shared 

object or a COM Automation server to Window-Eyes script clients and 

interacted with the OS to provide this functionality, but as far as I 

know it's not available now. (For that matter, you could even do it in 

some scripting languages. PerlScript, for example. But then you'd be 

requiring your users to install PerlScript.)



On 5/19/2010 9:00 PM, Chip Orange wrote:

    

I think I'm following this point, you're supposed to have both in a 

proper interface?

I had one in a large VBA project, for my employer not a script for 

WE, where I had the users select the item they wanted to work with, 

and then click a toolbar button or menu choice or command button, and 

I had requests from some of the users to add context menus; they said 

they assumed you could always right click anything and do whatever 

with a context menu, as well as clicking on a toolbar button, and 

sometimes with a crowded screen full of information and choices, they 

thought it was easier to right click than to hunt down the right menu 

choice or toolbar button.

so anyway, I could give them a context menu in an office VBA project, 

so I wondered if I could do the same in an xml dialog?

it looks like not, but thanks for you guys answering the question.

Chip



*From:* Ron Parker [mailto:[email protected]]

*Sent:* Wednesday, May 19, 2010 4:15 PM

*To:* [email protected]  <mailto:[email protected]>
<mailto:[email protected]>

*Subject:* Re: is it possible to create a context menu with a script?



Actually, even if you have context menus, you're supposed to do that 

anyway. It's in the Windows UI guidelines (or was, back when 

dinosaurs roamed the Earth.)



On 5/19/2010 4:11 PM, Aaron Smith wrote:

      

Alternatively, use the existing dialog menu system to act on the 

selected list view item.



Aaron



On 5/19/2010 3:59 PM, Ron Parker wrote:

        

Visually, it'd look nothing like a context menu. Also, it obviously 

wouldn't have any support for shortcuts or submenus or checkmarks 

or disabled items or separators or accelerators, though presumably 

you could sort of emulate those with enough work. (Submenus would 

require a treeview instead of a listbox.)



On 5/19/2010 3:55 PM, Chip Orange wrote:

          

you could detect when a right click happened, and maybe even build 

a listbox dynamicly if you could figure out if the right click 

happened over your item, but then is displaying a dialog with a 

listbox the same thing as a context menu (assuming you could make 

it close with the enter key and not require an "ok" button)? it 

doesn't sound like it would look much like a context menu.



Chip





-----Original Message-----

From: Jeff Bishop [mailto:[email protected]]

Sent: Wednesday, May 19, 2010 3:49 PM

To: [email protected]  <mailto:[email protected]>
<mailto:[email protected]>

Subject: Re: is it possible to create a context menu with a script?



I don't think so but it would be cool.

----- Original Message -----

From: "Chip Orange" <mailto:[email protected]> <[email protected]> 

 <mailto:[email protected]> <mailto:[email protected]> To:
<mailto:[email protected]> <[email protected]> 

 <mailto:[email protected]> <mailto:[email protected]>

Sent: Wednesday, May 19, 2010 12:48 PM

Subject: is it possible to create a context menu with a script?





            

Hi all,



the subject says it all; is it possible to have something like a 

listbox, where you can create a context menu if the user right 

clicks on any item in the listbox?



thanks.



Chip





              

--

Aaron Smith

Product Support Specialist * Web Development GW Micro, Inc. * 725 

Airport North Office Park, Fort Wayne, IN 46825

260-489-3671 * gwmicro.com



To insure that you receive proper support, please include all past 

correspondence (where applicable), and any relevant information 

pertinent to your situation when submitting a problem report to the 

GW Micro Technical Support Team.

        





  

Reply via email to