Simulate a popup menu button

Bob Sneidar bobs at twft.com
Wed Jul 18 14:00:06 EDT 2012


That works jacque, only no cursor. He will have to set the mouseLoc to that first I believe. After that, he can set the mouseLoc, then use the arrow keys to navigate the menus. It's klunky but it ought to work. 

Bob


On Jul 18, 2012, at 10:02 AM, 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.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list