I need to start a function and it must run continiosly until i press a key. I have tested it using "getchar()", but it doesn't work, becuase i need to press something to continue running the software. So, I think that i should start a process that only waits for a key to be pressed, but i don't know how to do this. What can i do?
"So getchar() doesnt work"
No - getchar does work; it is doing exactly what it says it should do!
If this is not the behaviour that you require, then you have two choices:
1. Use something else that does do what you require;
2. Modify getchar to do what you require. (The manual tells you how to do this - see the link I gave you earlier!)
Sorry about the triplicate(!) reply - the forum was giving an error:
ERROR TYPE Microsoft VBScript compilation (0x800A03E9) Out of memory /forum/docs/thread8233.asp
but, apparently, it was still doing the post!!
It just did it again - I wonder how many times this one will turn up...
Thanks to everybody!!!
Finally i used RI flag and the programm runs perfectly