GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Fifteen — Windows/OS Functions (continued)
Generally, user input is processed via Windows messages, via dialog controls and various window classes. However, the keyboard and can be directly accessed via a number of functions. For example, a script can peek at a specific key to see if it is pressed or to check the mouse position. In addition, keyboard and mouse actions can be sent back to a program, including the host.
Keyboard keys are referenced at a low and mid-level within Legato via Windows virtual keys. A virtual key specifies a position on the keyboard or human interface device (HID). At a low-level, there is no ‘a’ and ‘A’ characters, only the ‘A’ virtual key and the virtual key ‘Shift’, which when interpreted. make the pressing of the ‘A’ key a lowercase or uppercase character. Various keys are defined in the Legato SDK (based on the Windows SDK) and are listed in Appendix A — Legato SDK Standard Definitions. Common keys are VK_SHIFT, VK_CONTROL, letters such as VK_O, or numbers such as VK_7. Note that the numeric keypad has different key codes that the top row of numbers on the keyboard.
(Reserved)
Keyboard:
IsKeyPressed — Reads the state of a specific keyboard code.
Mouse:
GetCursorPosition — Returns the current caret position in screen or client coordinates.
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.