I'm trying to create an autocompletion script for parenthesis and quotes, like it is done in many IDEs. For example if I double press "<", it should output "<>" and place the cursor in the middle.
Code: Select all
$+<::
If (A_ThisHotKey = A_PriorHotkey and A_TimeSincePriorHotkey < 300) {
SendInput >
Send, {Left}
}
else {
SendInput <
}
return
How can I send the original keypress in the else statement, or bypass the script if the "IF "statement is false? Or maybe there's more elegant solution?