Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handle to DropDown menu item ?
#1
Hi Kevin,

If you open a Dropdown Menu from File Edit etc, one can see id-numbers for the listed menu items appearing in the QM Status bar, but there is no window name associated with the menu so one cannot get a handle.

Is there perhaps still a way to use these id-numbers to make a choice in a macro ?

Thank you !
#2
can get menu handle like so
Code:
Copy      Help
int w1=win("" "#32768" "notepad")
or
Code:
Copy      Help
int w2=wait(0 WV win("" "#32768" "notepad"))

by make a choice do you mean click a menu item?

In many windows can click standard menu items (standard menus have a class of #32768)
for this use qm function men
don't need handle to menu .Just need handle to main window
example
Code:
Copy      Help
int w=win("" "Notepad")
men 8 w ;;New Window

read here for more info on clicking menu items in windows
men (quickmacros.com)
#3
Yes, that's what I was looking for !

Thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)