From: Jane on
Hello everyone

I hope you can help me with this.

I have created an access form that opens a number of windows in internet
explorer.
I need to simulate a mouse move and left click to get from one active window
to another.
The amount of move is not that important as long as it's around 2 inches or
so to the left or right, up, or down (basically out of the small Find/Search
window)

I have looked using SendKeys - something like:
{mousemove X,Y}
{mouseclick}
Of course this will not work in VBA but is the something like this available ?

I can use SendKeys Alt-Tab to show the windows panel but then you still have
to use the mouse to click the window you want

I can't use the actual mouse so it all has to be done programmatically

Thank you if you can offer any assistance

Jane


From: Stefan Hoffmann on
hi Jane,

On 08.04.2010 09:32, Jane wrote:
> I have created an access form that opens a number of windows in internet
> explorer.
> I need to simulate a mouse move and left click to get from one active window
> to another.
Why do you want to simulate it? Is 'simulation' the correct term? If the
answer is yes then you need to use Win32 API functions, e.g.

GetWindow to find the correct IE window:

http://support.microsoft.com/kb/183009

SendMessage to send any message (this includes the mouse messages) to it:

http://msdn.microsoft.com/en-us/library/ms644950%28VS.85%29.aspx

Otherwise you should explain, what you are trying to achieve.


mfG
--> stefan <--
 | 
Pages: 1
Prev: Windows 7 f'd up my database
Next: <Kein Betreff>