I am sending some text to the current window on CTRL+k hotkey. To prevent the CTRL key from modifying the intended text I am using acSendControlUp() before acSendKeys. This works when the left CTRL key is being pressed but not the right CTRL key. I have tried acSendKeyUp("{VKEY 163}"), acSendKeyUp("{VKEY 162}") & acSendKeyUp("{VKEY 17}") with no success.
I've considered using a 'while-do' delay loop but can see no way of determining if a given key (RCTRL in this case) is being pressed.
P.S. I've been going through a lot of life transitions and will be getting back to S+ in the near future; so I apologize to all for my less than normal involvement.
That post worked thanks. I replaced VK_CAPITAL = 0x14 with VK_CONTROL = 0x11 in the Global Lua; & the action I'm using to wait for either left or right Control key to be released is:
local iCtrl = aGetKeyState(VK_CONTROL) while iCtrl <= -100 do iCtrl = aGetKeyState(VK_CONTROL) acDelay(10) end