
brownhead
Member
Apr 10, 2006, 7:45 AM
Post #2 of 2
(327 views)
Shortcut
|
|
Re: [chris 8865] Need help with making auto talker
[In reply to]
|
Can't Post
|
|
Well you've sorta got the right idea... but you need to change the command button that has the caption of 7 to a textbox with a caption of 7... Then follow these steps: <First Make Sure all the controls are named corectly> Timer :: Name=Timer1 Textbox1 (What to type) :: Name=Text1 Textbox2 (How long it should wait) :: Name=Text2 1. In the startbuttons code, typeTimer1.Interval = Val(Text2) * 1000 Timer1.Enabled = True That will make the timer go off every time the amount of time the user entered into the TextBox has expired. The * 1000 part is there because the Interval is measured in miloseconds which are 1/1000 of a second. Then it enables the timer, allowing it to start executing... 2. In the stop buttons code, enter: which will turn off the timer. 3. In the timers Timer event, enter:SendKeys Text1 & "{Enter}" That will type whatever is in the textbox
------------------------------------- [img]http://i25.photobucket.com/albums/c51/70k0/BHU.png[/img]
(This post was edited by brownhead on Apr 10, 2006, 7:47 AM)
|