i am having problems with sending a X keystroke to a java swing window that shall remain in the background.
What i did was the following:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1194">
<Macro Name="Finde Fenster: javaw.exe" Expanded="True">
<Action>
Window.FindWindow(u'javaw.exe', u'MASP Notification with feedback', u'SunAwtFrame', None, None, None, False, 0.0, 0)
</Action>
<Action>
Window.SendKeys(u'x', False)
</Action>
</Macro>
</EventGhost>
Now, if i add
Code: Select all
<Action>
Window.BringToFront()
</Action>
Is there a fix available for this apart from not automating java swing applications at all? Maybe to use the mouse to click a button while the window is in the background (didnt manage to do that)?
Regards,
Paul