Dragobr wrote:
In this case, your substitution solved the problem, but try this:
$0::
SetTitleMatchMode 2
IfWinNotActive, OpenOffice.org
{
send, .
}
Else
{
send, 0
}
return
This is the code I need, except with 0 instead of NumpadDot.
The above script is called when 0 is pressed. If calc is active, pressing zero will make the script press zero, but instead of inputing a zero, it will call the script started by zero. We need a way to make the 0 key work as if there was no script when called by the else statement.
Put that dollar sign infront of your activating key