Odds are you can just send a "null" key instead of "." And it will still work just as well without actually typing anything. I used to do the same thing to keep an application active at my old job. It was nice because even when it was active I could still use the computer like normal without stopping the script.