This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Jun 28, 2007 10:52 PM by Marco Delacruz  
Marco Delacruz   3 posts since
Jun 23, 2007
Currently Being Moderated

Jun 23, 2007 12:25 AM

Any clues to click coordinates in an activeX container?

I would like to click given coordinates in an activeX container.  Has anyone tackled this before?  Any references or clues one can point me to?  Regards, Marco.

Serge Piletsky TeamDev Ltd. 670 posts since
Apr 24, 2006
Currently Being Moderated
2. Jun 27, 2007 12:01 PM in response to: Marco Delacruz
Re: Any clues to click coordinates in an activeX container?

Hi,

 

In WinPack library (http://www.teamdev.com/winpack/index.jsf) there is the appropriate wrapper Wnd class for this HWND type: http://www.teamdev.com/downloads/winpack/javadoc/com/jniwrapper/win32/ui/Wnd.html

 

And in this Wnd class contains "public Rect getWindowRect()" method which is the wrapper for 'GetWindowRect' function.

 

You can create Wnd object from any AWT component as well as from a handle. In WinPack demo application there are examples that demonstrate using of this class.

 

-Serge

Serge Piletsky TeamDev Ltd. 670 posts since
Apr 24, 2006
Currently Being Moderated
3. Jun 27, 2007 12:03 PM in response to: Marco Delacruz
Re: Any clues to click coordinates in an activeX container?

I think you can achieve that by sending mouse click events to the specified windows handle. In Wnd class that I mentioned earlier there is 'sendMessage' for this purpose.

 

-Serge

More Like This

  • Retrieving data ...