Computer Science Canada Background Application |
Author: | Phenomena [ Thu Oct 26, 2006 6:18 pm ] |
Post subject: | Background Application |
I was working on a program to help run a server in a game. I have most of it working pretty well, but I cant get my app in turing to simulate the enter key being pressed for an application running in the background. So what i need to do exactly is every 903 seconds, i need the enter key to pressed to restart the game server. |
Author: | [Gandalf] [ Thu Oct 26, 2006 7:04 pm ] |
Post subject: | |
Not doably possible with Turing. At best, run a program made in another language to do this using Sys.Exec(). |
Author: | Tony [ Thu Oct 26, 2006 8:14 pm ] |
Post subject: | |
you need to send info to keyboard's buffer (OS). VB's SendKey() is the absolute simplest way, though I don't think it matters since a background program is not going to be reading any keyboard input |