PDA

View Full Version : Solved: WINAPI problem:project:control any sw from vba(with sendkey+mouseclicks)



L@ja
08-29-2007, 04:13 AM
Hi,
I would like to write a simpre macro to manage the SAPGUI from Excel Macros...

I solved something with sendkeys, but I cannot check the followings:
the sapGUI have a status bar, but this control can't selected via keys, but if clicked, then I can read from ...

the problem:
the clicks need a exact positions. Where we clicks??
so how can ask -for example- the start btn x and y props?
I can get a handle with findwindow api, but I can't found any xy or position tags... I can't know what can I looking for...

can here anybody help me?

thank you at all supports

L@ja
08-29-2007, 04:28 AM
I was lost it my first post
sorry

Charlize
08-29-2007, 04:31 AM
You can position the mousecursor by using vba and based on the location of the mousecursor you perform a click event of the mousecursor. This kind of coding is more likely something for I. Moala. Take a look at his site : http://www.xcelfiles.com

L@ja
08-29-2007, 04:37 AM
10x, I will check this.

my macro (i hope) work,
but I can't read another (target) window position to position my mouse to this pos :-)
(I hopy you understand my problems)
regards

L@ja
08-29-2007, 05:00 AM
Hi,
I can't found any position querys in the below site.
:dunno
can u drop me a direct link?

10x

L@ja
08-29-2007, 05:22 AM
Im stupid,
I looked :getwindowrect()