Hey,
I got Buddy API and am using the following method to send stuff to an
outside App.
on sendStuff me
step1 = baActivateWindow(getAt(theWin, 1))
baWaitForWindow(getAt(theWin, 1), "active", 300)
if step1 = 1 then
step2 = baSendKeys("{ENTER}")
if step2 = 0 then
step3 = baSendKeys(theMsg)
if step3 = 0 then
step4 = baSendKeys("{ENTER}")
if step4 = 0 then
step5 = baActivateWindow(baWinHandle())
baWaitForWindow(baWinHandle(), "active", 300)
else
alert "mess up 4"&&step4
end if
else
alert "mess up 3"&&step3
end if
else
alert "mess up 2"&&step2
end if
else
alert "mess up 1"&&step1
end if
end
theMsg is a string and theWin is a list that has the correct windows
handler.
The problem is when this script is run, (for instance with WordPad being
theWin), WordPad only halfway comes up (it was minimized), nothing is
entered and the mouse locks. The only way to break out is to Ctrl+Alt+Del,
and then the movie moves on, having not accomplished its job.
Any ideas?
W. Locke Morgan
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]