I am attempting to simulate accessing a menu bar option in a macro. I believe I am close. First I am getting the menu handle with getmenu(applicationhandle). Next, I am using getmenuitemid(menuhandle, index). Then I believe I am supposed to use sendmessage(menuhandle, wm_command, wparam, lparam) where lparam is 0 and the lower half of wparam is the menuid; first of all, will this work? Secondly how do I make a wparam so that the lower half is the id? Thank you for your help.

Joe