how do you pulldown a menu?

Lynch, Jonathan bnz2 at cdc.gov
Wed Mar 23 10:59:34 EST 2005


I had to do this on an option menu:

Because this requires clicking on the arrow part of the option menu, I
did something like the following:

Put (the right of button "myOptionMenu) - 5 into X
put (the top of button "myOptionMenu") + 5 into Y
click at X,Y

This worked fine, but it should not be necessary. Just as the popup
comman can popup a popup menu, there should be a command to popup an
option menu.


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Howard
Bornstein
Sent: Wednesday, March 23, 2005 10:32 AM
To: MisterX
Cc: How to use Revolution
Subject: Re: how do you pulldown a menu?

Hi Xavier,

I'm not sure what you're trying to do here, but if you simply want to
simulate someone clicking a menu item, I didn't have any trouble
making it work.

I created a simple stack and a basic menu. I added a button to the
stack with this script:

on mouseUp
  click at the loc of btn "file"
  wait 30
  click at "16,48"
end mouseUp

This causes the File menu to select and then after 1/2 second, the
Open item of the File menu selects. The menupick handler in the File
menu gets an Open as its parameter.

Unfortunately, this won't work on a Mac in the way Mac users would
expect. Instead, it still drops down the (hidden) menu item within the
stack itself, rather than selecting the menu in the Mac's menu bar.

If this isn't what you were trying to do, maybe you could explain it
again.


On Wed, 23 Mar 2005 07:13:10 +0100, MisterX <b.xavier at internet.lu>
wrote:
> RunRev is great and we have virtually control of everything. But
one...
> 
> How do you pull down a menu using a script?
> 
> I tried click at the loc of mymenu but it didn't work!
> 
> The click actually when to the control below!
> 
> Never a dull moment!
> 
> thanks for any clues (other than faking a menu)
> 
> cheers
> Xavier


-- 
Regards,

Howard Bornstein
-----------------------
www.designeq.com
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list