Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Location Null
#1
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
#2
Isn't.
Some object give incorrect location or some other accessible property. It may be a bug in its host program.
#3
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?
#4
The menu item is visible then?
DoDefaultAction does not work?
#5
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."
#6
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'.


Forum Jump:


Users browsing this thread: 5 Guest(s)