Oh..I understand now. Sure it can be done.
Actually it's almost the same with what you asked before, but easier.
You should try to learn scripting. I will try to explain to you again...
Global Lua:
CtrlButtonState=0
First, create a global variable to determine whether the ctrl is already down or not. And I set the variable into 0, because it is not down yet.
Lua Script:
if CtrlButtonState==0 then
acSendControlDown()
CtrlButtonState=1
else
acSendControlUp()
CtrlButtonState=0
end
Let's read the script above.
if CtrlButtonState==0 then means that if the variable has value 0, the script will do: acSendControlDown() and CtrlButtonState=1 set the variable to value to 1.
And else means that if the value of CtrlButtonState is not 0, it will release the ctrl and set CtrlButtonState to 0.
Hope you learn more about scripting from my example.