Simulate a popup menu button

Bob Sneidar bobs at twft.com
Wed Jul 18 16:33:53 EDT 2012


But I tried it and it did work. 

Bob


On Jul 18, 2012, at 10:58 AM, J. Landman Gay wrote:

> On 7/18/12 12:02 PM, J. Landman Gay wrote:
>> On 7/18/12 12:03 PM, Lars Brehmer wrote:
>>> Thanks once again Craig!
>>> 
>>> But again no.
>>> 
>>> The popup button is already in place. It has 7 menu items, and 6 of
>>> those have a submenu with several choices. I simply want to (in a
>>> script) simulate clicking on it (done) then hiliting one of the items
>>> and then show that items submenu and hiliting one of those items and
>>> then execute picking that item (also done.) I just cant figure how to
>>> show the menu choices and hiliting them.
>> 
>> I'm not sure you can, since the menus respond only to physical clicks.
>> But you could test:  click at the loc of button myFakeCursorButton
>> 
>> I don't know if it will work.
>> 
> 
> Actually, that won't work because the click will go to the button. You might have to hide the button, send the click, and reshow the button. It will probably happen so fast the disappearance won't be noticeable, if the engine even draws the change at all.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list