Thanks, Arnaud, clearer after reading the doc and the example. > 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? I just wanted to say that the frontmost app is not the Xojo one I'm currently coding (or trying to code! ;-) ). So, managing Keyboard events by my own is not 'internally' possible.
Jean-Luc Arnaud Le 14/01/2015 18:01, Marnaud a écrit : > 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 > _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
