Win32-Shortkeys
view release on metacpan or search on metacpan
- original version; created by ExtUtils::ModuleMaker 0.56
0.02 Package MySubs -> Win32::Shortkeys::MySubs
0.03 2017.11.29
z as a command abreviation is used to call usleep and
to induce a waiting time
0.04 2018.02.02
ProtocolEncoding arg when parser is created in Ripper->catch
ProtocolEncoding set to the arg received in Shortkeys->parse_file
0.05 2018.02.21
ripper.pm : layers for writing the xml file have to use the :raw ... :crlf mantra to write UTF-16LE and UTF-16 (BE)
shortkeys.pm : Encoding used is iso-8859-1 instead of cp1250 to pass data to clipboard
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.
<data k= 'a' use.ctrl_v= '1'>
This text will be copied and paste.
And the new line will be preserved.
</data>
In the xml file, data elements can be combine using a dataref element.
<data k='qu'>10.1080/14737159.2017.1289087</data>
lib/Win32/Shortkeys.pm view on Meta::CPAN
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 <j when the script is running will replace this
two characters with the value of the corresponding <data> 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 C<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...
<data k= 'a' use.ctrl_v= '1'>
This text will be copied and paste.
And the new line will be preserved.
</data>
In the xml file, data elements can be combine using a dataref element.
<data k='qu'>10.1080/14737159.2017.1289087</data>
( run in 2.678 seconds using v1.01-cache-2.11-cpan-81fc1098f69 )