Posts: 45
Threads: 10
Joined: May 2012
Hello,
I have an object that has a location of Null, so whenever i go to use .Mouse(1) on the object it sends me to the top left corner of my screen which doesn't help me at all. I was wondering if there is a way to assign the object an x y cx cy location.
Any help would be grateful.
Thank you
Posts: 12,081
Threads: 142
Joined: Dec 2002
Isn't.
Some object give incorrect location or some other accessible property. It may be a bug in its host program.
Posts: 45
Threads: 10
Joined: May 2012
I forgot to inform that the object i am trying to access is a MENUITEM. Is there another way to access the MENUITEM even though the x y cx cy are all 0s?
Posts: 12,081
Threads: 142
Joined: Dec 2002
The menu item is visible then?
DoDefaultAction does not work?
Posts: 45
Threads: 10
Joined: May 2012
The object is a child of another MENUITEM not Menubar (sorry), and the only way that i can get it to be visible is to first click on the parent object (which i can do), but when i use DoDefaultAction on the child object i get this error "0x80020003, Member not found."
Posts: 12,081
Threads: 142
Joined: Dec 2002
To click menu items usually we use keyboard. Alt+underlined letter. You can record it.
Or, if it is standard menu, use men() function. You can record it, also there is a dialog.
If not standard menu, and does not respond to keyboard, will need to show/click using mouse. You can record it.
DoDefaultAction often does not work with hidden objects. Then says 'error, member not found'.