Simulating a menu click



For a demo I move the cursor to an entry in the menu bar. Next I want to
emulate a click on the item, have the menu show its items list, move the
cursor down the list and emulate anothe rclick.

Help: "MenuItem.click does not generate a WM_COMMAND message ..." and the
menu will not show its list.
Apparently I need to send such a message myself.
I come as far as PostMessage(targetform.handle,WM_COMMAND, ? , ?) and when I
try this out with various parameters, the menu never reveals its list items.

Tom


.



Relevant Pages

  • The one thing I like better about Windows...
    ... ....is that the Home and End keys position the cursor to the beginning ... Anyway to get Mac to emulate this ...
    (comp.sys.mac.system)
  • Re: For Robin Hammond
    ... cursor thing for months now but there has always been something more ... Simply set the enabled property for the two controls on the form txtProgFore ... Finally, on my machine the progress bar is light blue, matching the inactive ...
    (microsoft.public.excel.programming)
  • Re: cursor doesnt appear in text entry field
    ... Jaz ... > began to happen on both of my computers I installed a Windows Update. ... The cursor longer automatically appears in the text entry ...
    (microsoft.public.windowsxp.general)
  • Re: Setting the Transition Function for two columns
    ... and B for entry. ... outside the highlighted range or press an arrow key. ... want the cursor to move down one row and back to column 1. ...
    (microsoft.public.excel.programming)
  • Re: Using DAO to move to the new record
    ... If an entry has been started, ... AFAIK, there is no way to make a form go to the new record if it does not ... "John S. Ford, ... > I'm trying to write some code that will move the cursor to the new record. ...
    (microsoft.public.access.formscoding)