Example #1
0
        public static menuinfo Menu_GetMenuItem(int h, int n)
        {
            //convert to C#
            menuinfo mi = new menuinfo();

            mi.text = Menu_GetMenuItemString(h, n);
            mi.id   = win32.GetMenuItemID(h, n);
            return(mi);
        }
Example #2
0
        public static void Menu_Select(int hwnd, string m1, string m2)
        {
            Tracing.WriteLine("Menu_Select \"{0}/{1}\"", m1, m2);
            menuinfo mi = WindowsAutomation.UI.Menu_FindMenuItemID(hwnd, m1, m2);

            if (mi == null)
            {
                throw new Errors.AutomationError(string.Format("Couldn't find {0} {1}", m1, m2));
            }
            Tracing.WriteLine("Menu_Select menu id = {0}", mi.id);

            win32.SendMessage(hwnd, (int)win32.constants.WM_COMMAND, mi.id, 0);
        }
Example #3
0
		public static menuinfo Menu_GetMenuItem( int h, int n )
		{
			//convert to C#
			menuinfo mi = new menuinfo();
			mi.text = Menu_GetMenuItemString( h, n );
			mi.id = win32.GetMenuItemID( h, n );
			return mi;

		}