Secondly, I could use either the OnKeyDown or OnKeyProcessedDown methods of the Keyboard OnKeyProcessedDown method exposes all the values you will need to process the key.
So, use that event if you want the key data, for you will need to know which key was hit and this is the one to use. Bruce ----- Original Message ----- From: "Sean Farrow via Scripting" <scripting@lists.window-eyes.com> To: <scripting@lists.window-eyes.com> Sent: Tuesday, March 29, 2016 3:58 PM Subject: Layered keystrokes Hi, I'm trying to create a script that uses a set of layered keystrokes. I have come up with a few ways of doing this: Firstly use a hotkey and set a global variable, creating more hotkeys and checking whether the global variable is set in these keystroke handlers. Secondly, I could use either the OnKeyDown or OnKeyProcessedDown methods of the Keyboard object. What is the difference between these two event handlers/when should each be used? Is there any other way of doing this that I haven't thought about? Any advice appreciated. Kind regards Sean. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachments/20160329/54e45f05/attachment.htm> _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lab4me%40fltg.net. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com