Sending a combination of keystrokes
Posted: 13 Jan 2014, 07:20
Hi,
I am using the KeystrokeExpression in order to transform P3Speller selections into keystrokes. My expression detects if the SelectedRow state is greater or equal than 2 and send a 'b' or an 'i' depending on the result.
But I have a problem when I want to send a combination of keystrokes like "CTRL+R", because I know what is the code for the CTRL Key (0x11) and what is the code for the R Key (0x52), but I don't know how to send it together.
¿Can you solve my problem?
When 66 is 'b' and 73 is 'i'.
Thanks!
I am using the KeystrokeExpression in order to transform P3Speller selections into keystrokes. My expression detects if the SelectedRow state is greater or equal than 2 and send a 'b' or an 'i' depending on the result.
But I have a problem when I want to send a combination of keystrokes like "CTRL+R", because I know what is the code for the CTRL Key (0x11) and what is the code for the R Key (0x52), but I don't know how to send it together.
¿Can you solve my problem?
Code: Select all
NewRow:=(SelectedRow>=2)?66:73;zero:=(SelectedRow!=0)?NewRow:0;result:=(zero==prev)?0:zero;prev:=zero;resultThanks!