Le 14 janv. 2015 à 12:01, Jean-Luc Arnaud <[email protected]> a écrit:
> I'm probably wrong, but I thought that: > > dim a as new AXUIElementMBS > > would do the trick, don't it? According to the documentation: http://www.monkeybreadsoftware.net/class-axuielementmbs.shtml “This class represents an element of the User Interface of an application.” So clearly, your object (with only New) doesn't target anything. There is an example (at the page mentioned) which shows how to instantiate one; perhaps you can find one that suits you? > If so, how to send a Keyboard event to the frontmost app? Doesn't the RemoteControlMBS class work for that? > Is it possible to send a KeyPress event to the frontmost application, even if > it's not a Xojo one? Well, I'll finally ask my question, which I have since the beginning (it stayed in my mind until now…): how would a Xojo app behave differently than a, say, XCode one about receiving keys press? _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
