Click Button On Other App (AOL Toolbar)
Posted on 2006-03-30
Ok, first off here's my code. The SetFocusAPI wasn't in there originally and doesn't appear to have helped at all.
Call SendMessage(addresshWnd, WM_SETTEXT, 0&, location.Text)
Call SendMessage(pns, WM_LBUTTONDOWN, 0, 0&)
Call SendMessage(pns, WM_LBUTTONUP, 0, 0&)
The problem is that visually it works. I run it, the text is put where I want it in the AOL Toolbar (AOL 9.0)
and when I put a sleep in between the mouse events I can actually SEE it pushing the button and releasing.
Problem is nothing happens. If I do it manually obviously it does work. So here I am.. lost.. any ideas?