NAME Win32::Shortkeys - A shortkeys perl script for windows VERSION 0.05 INSTALLATION To install Win32::Shortkeys, cd to the directory that contains this file and type the following: perl Makefile.PL make make test make install On windows use nmake or dmake instead of make. To install this module into a specific directory, do: perl Makefile.PL PREFIX=/name/of/the/directory ...the rest is the same... Please also read the perlmodinstall man page, if available. DEPENDENCIES XML::Parser 2.44 Time::HiRes 1.9733 Win32::Clipboard 0.58 Config::YAML::Tiny Win32::Shortkeys::Kbh 0.01 Encode 2.84 Test::Simple 0.44 Carp 1.4 DESCRIPTION Since the synopsis above is short, the main things to describe are in the file pass to Win32::Shortkeys-new($file)>. Properties file It must follow the Config::YAML::Tiny syntax. Mine looks like file_path: shortkeys_utf8.xml file_encoding: UTF-8 use_ctrl_v: 1 load_key: VK_HOME quit_key: VK_F12 usleep_delay: 400_000 vkcode_map: t: VK_TAB e: VK_RETURN d: VK_DOWN l: VK_LEFT r: VK_RIGHT x: VK_BACK s: VK_SHIFT c: VK_CONTROL a: VK_MENU w: VK_SPACE h: VK_HOM The key given in the load_key property is used to reload the shorkeys.xml file (without exiting the script). The key given in the quit_key property is used to terminate the script. The xml file It's name is given by the file_path property. It's xml syntax is: Recent advances in biochemical and molecular diagnostics for the rapid detection of antibiotic-resistant Enterobacteriaceae: a focus Expert Review of Molecular Diagnostics .... The values of the k attribute are a-z string composed of lower case character(s) (a string can have two or more characters). I call those strings shortkeys and when press on the keyboard after they < key with the script running, the key pressed are replaced by the content of the corresponding data element. For example, with the cursor in an opened notepad file, hitting the two keys element: Expert Review of Molecular Diagnostics. The shortkeys.xml file should be utf-8 encoded, even if the encoding can be defined in the properties. With the key <, the script enter a "search mode" for a shortkey sequence. This key is hard coded and can't be changed (unless you edit the code). The text from the shortkeys file is sent to the keyboard using the send_input API function. With using the use.ctrl_v='1' attribute in a data element, the text will be place in the clipboard and paste (with sending the keys ctlr + v) at the cursor position. This text will be copied and paste. And the new line will be preserved. In the xml file, data elements can be combine using a dataref element. 10.1080/14737159.2017.1289087 Published version; http://dx.doi.org/ When hitting COPYRIGHT This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.