Sir Static
July 16th, 1999, 02:06 PM
Is there any way to set a delay in VB? I have searched through the help index and havent found anything close to it...
What i am trying to do is make a program that prints out some text in notepad by the use of the 'SendKeys' function but it prints the characters out as fast as the processor can, but this it too fast for the effect i want... I tryed to put it in a timer (using a static int with a case statement so it would print one char at a time) but it would print out anything.
ReturnValue = Shell("notepad.EXE", 1) ' Run Notepad.
AppActivate ReturnValue ' Activate Notepad.
SendKeys "Hello, this is only a test... ~", true
Also i was wondering if buy using the SendKeys function if there is a way to have it use 3 keys at once (eg. control & alt & delete). If not, is there another way to restart the computer?
If you have never used the sendkeys function before i sugest u take my code and through it in a function. It's realy neet
What i am trying to do is make a program that prints out some text in notepad by the use of the 'SendKeys' function but it prints the characters out as fast as the processor can, but this it too fast for the effect i want... I tryed to put it in a timer (using a static int with a case statement so it would print one char at a time) but it would print out anything.
ReturnValue = Shell("notepad.EXE", 1) ' Run Notepad.
AppActivate ReturnValue ' Activate Notepad.
SendKeys "Hello, this is only a test... ~", true
Also i was wondering if buy using the SendKeys function if there is a way to have it use 3 keys at once (eg. control & alt & delete). If not, is there another way to restart the computer?
If you have never used the sendkeys function before i sugest u take my code and through it in a function. It's realy neet