Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Visual Basic / VB:
Need help with making auto talker

 

 


chris 8865
Newbie

Apr 10, 2006, 2:56 AM

Post #1 of 2 (362 views)
Shortcut
Need help with making auto talker Can't Post

Hello, I need big help with making a basic simple auto talker please help me thank you Mad

Here a pic of what I have done so faw but what do i do now?



I ant pasted any code so please explain realy clearly what i need to do.


(This post was edited by chris 8865 on Apr 10, 2006, 3:05 AM)



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, type

Code
Timer1.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:

Code
Timer1.Enabled = False

which will turn off the timer.

3. In the timers Timer event, enter:

Code
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)

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.10 s on (CGI/1.1)