-
Notifications
You must be signed in to change notification settings - Fork 0
/
agtscrpt.js
7185 lines (4947 loc) · 262 KB
/
agtscrpt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
var L_PhoneNumberLegit_Text = "\\map=\"one \\pau=100\\ eight hundred R U le jit\"=\"1-800-R U LEGIT\"\\";
var g_strRegionSetting = "";
var g_strKeyboardSetting = "";
var g_strLangSetting = " ";
function Agent_AddCommonCommands()
{
g_AgentCharacter.Commands.RemoveAll();
var L_AddCommonCommands1_Text = "&Close Menu";
g_AgentCharacter.Commands.Add("CloseMenu", L_AddCommonCommands1_Text);
if (g_bAgentShowSpecialISPCommands)
{
var L_AddCommonCommands2_Text = "Tell me &about Internet signup";
var L_AddCommonCommands3_Text = "&Re-start Internet signup";
var L_AddCommonCommands4_Text = "&Skip Internet signup";
try
{
g_AgentCharacter.Commands.Add(kpszISPSpecialCommand1, L_AddCommonCommands2_Text);
g_AgentCharacter.Commands.Add(kpszISPSpecialCommand2, L_AddCommonCommands3_Text);
g_AgentCharacter.Commands.Add(kpszISPSpecialCommand3, L_AddCommonCommands4_Text);
}
catch (e)
{
}
}
}
function Agent_AddAssistantanceCommand()
{
if (!window.external.get_RetailOOBE())
{
var L_AddAssistantanceCommand1_Text = "Who can I call &for more assistance?";
g_AgentCharacter.Commands.Add("Agent_OnCommand_AboutAssistance", L_AddAssistantanceCommand1_Text);
}
}
function Agent_OnCommand_AboutAssistance()
{
Agent_StopAll();
var L_AboutAssistance1_Text = "Contact your computer manufacturer at %s.";
var re = /%s/i;
var L_AboutAssistance2_Text = "Contact your computer manufacturer.";
var strPhoneNumber = window.external.GetSupportPhoneNum();
if (strPhoneNumber == "")
Agent_Speak(L_AboutAssistance2_Text);
else
Agent_Speak(L_AboutAssistance1_Text.replace(re, strPhoneNumber));
Agent_Play("ReadReturn");
}
function Agent_AddWhatToDoNextCommand()
{
var L_AddWhatToDoNextCommand1_Text = "&What should I do next?";
g_AgentCharacter.Commands.Add("Agent_OnCommand_WhatToDoNext", L_AddWhatToDoNextCommand1_Text);
}
function Agent_OnCommand_WhatToDoNext()
{
Agent_StopAll();
if (g.btnNext.style.visibility == 'visible')
{
if (window.parent.document.dir == "rtl")
{
Agent_MoveToElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_MoveToElement(g.btnNext, "TopLeft");
}
Agent_Play("PointDown");
var L_WhatToDoNext1_Text = "To continue, click the Next button.";
Agent_Speak(L_WhatToDoNext1_Text);
Agent_Play("RestPose");
}
if (g.btnBack.style.visibility == 'visible')
{
if (window.parent.document.dir == "rtl")
{
Agent_MoveToElement(g.btnBack, "TopLeft");
}
else
{
Agent_MoveToElement(g.btnBack, "TopCenterWidth");
}
Agent_Play("PointDown");
var L_WhatToDoNext2_Text = "To return to the previous step, click the Back button.";
Agent_Speak(L_WhatToDoNext2_Text);
Agent_Play("RestPose");
}
if (g.btnSkip.style.visibility == 'visible')
{
if (window.parent.document.dir == "rtl")
{
Agent_MoveToElement(g.btnSkip, "TopCenterWidth");
}
else
{
Agent_MoveToElement(g.btnSkip, "TopLeft");
}
Agent_Play("PointDown");
var L_WhatToDoNext3_Text = "You can also skip this entire step by clicking the Skip button.";
Agent_Speak(L_WhatToDoNext3_Text);
Agent_Play("RestPose");
}
}
function Agent_DoSpecialISPCommand1()
{
Agent_MoveToElement(document.all("AssistImg"),"BottomCenterWidthExactBottom");
var L_ISPSpecialTellMeAboutInternetSignup1_Text = "You are currently working through the process of signing up for Internet access.";
Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup1_Text);
var L_ISPSpecialTellMeAboutInternetSignup2_Text = "If you have any trouble continuing, click me or press F1,";
Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup2_Text);
var L_ISPSpecialTellMeAboutInternetSignup3_Text = "And I'll display commands on my menu you can choose to start again or skip to the next section.";
Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup3_Text);
}
function Agent_DoSpecialISPCommand2()
{
window.parent.GoBack();
}
function Agent_DoSpecialISPCommand3()
{
window.parent.GoCancel();
}
function Agent_EncourageNextButton()
{
if (window.parent.document.dir == "rtl")
{
Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_GestureAtElement(g.btnNext, "TopLeft");
}
var L_EncourageNextButton1_Text = "Click the Next button. | Just click the Next button! | Please click the Next button. | Click the Next button to move on to the next step.";
Agent_Speak(L_EncourageNextButton1_Text);
Agent_Play("RestPose");
}
function Agent_OnF1()
{
var L_OnF1_Text = "How can I help you? | How can I assist you?";
Agent_Speak(L_OnF1_Text);
Agent_Play("RestPose");
}
function Agent_PreWelcome()
{
g_bAgentPreWelcome = true;
Agent_PreWelcomeScript();
}
function Agent_PreWelcomeScript()
{
Agent_Play("Shimmer");
var L_PreWelcomeScript1_Text = "Welcome to Windows XP!";
Agent_Speak(L_PreWelcomeScript1_Text);
var L_PreWelcomeScript2_Text = "I'm here to help you set up your computer.";
Agent_Speak(L_PreWelcomeScript2_Text);
var L_PreWelcomeScript3_Text = "I can explain things as you move along.";
Agent_Speak(L_PreWelcomeScript3_Text);
Agent_MoveToElement(document.all("AssistImg"), "LeftCenter");
var L_PreWelcomeScript4_Text = "Any time you need help, just click me with the mouse or press the F1 key.";
Agent_Speak(L_PreWelcomeScript4_Text);
Agent_Play("PointLeft");
var L_PreWelcomeScript5_Text = "I'll be right here if you need me.";
Agent_Speak(L_PreWelcomeScript5_Text);
Agent_Play("RestPose");
g_AgentRequestHideImage = g_AgentCharacter.Hide();
}
function Agent_WelcomeAddCommands()
{
var L_WelcomeAddCommands1_Text = "&Tell me about this process";
var L_WelcomeAddCommands2_Text = "&What should I do next?";
g_AgentCharacter.Commands.Add("Agent_OnWelcomeCommand_AboutProcess", L_WelcomeAddCommands1_Text);
g_AgentCharacter.Commands.Add("Agent_OnWelcomeCommand_WhatToDoNext", L_WelcomeAddCommands2_Text);
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_WelcomeIntro()
{
if (!g_bAgentPreWelcome)
Agent_PreWelcome();
else
return;
}
function Agent_OnWelcomeCommand_WhatToDoNext()
{
if (window.parent.document.dir == "rtl")
{
Agent_MoveToElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_MoveToElement(g.btnNext, "TopLeft");
}
Agent_Play("PointDown");
var L_WelcomeWhatToDoNext1_Text = "If you are ready to begin, click the Next button.";
Agent_Speak(L_WelcomeWhatToDoNext1_Text);
Agent_Play("RestPose");
}
function Agent_OnWelcomeCommand_AboutProcess()
{
Agent_StopAll();
var L_AboutProcess1_Text = "What you see behind me is the first in a series of screens designed to help you make sure that your computer is set up the way you want.";
Agent_Speak(L_AboutProcess1_Text);
var L_AboutProcess2_Text = "Each screen will ask you to make a choice or type some information, or it will advise you about what to do next.";
Agent_Speak(L_AboutProcess2_Text);
var L_AboutProcess3_Text = "Here's a quick preview of the steps we'll take in the next few minutes:";
Agent_Speak(L_AboutProcess3_Text);
var L_AboutProcess4_Text = "First, we'll make sure your computer hardware, like your speakers, keyboard, and clock, are working properly.";
Agent_Speak(L_AboutProcess4_Text);
var L_AboutProcess5_Text = "We'll also make sure your computer is correctly joined to a network if you want it to be.";
Agent_Speak(L_AboutProcess5_Text);
var L_AboutProcess6_Text = "Second, we'll review the licensing agreement that outlines the terms of use of %1.";
Agent_Speak(ApiObj.FormatMessage(L_AboutProcess6_Text, g_ProductName));
if (!window.external.get_RetailOOBE())
{
var L_AboutProcess7_Text = "If your computer has a working modem or network connection, you'll have the option to register with Microsoft and %1 so we can send you information on product updates and offers you might be interested in.";
Agent_Speak(ApiObj.FormatMessage(L_AboutProcess7_Text, g_OEMNameStr));
}
else
{
var L_AboutProcess7_Text = "If your computer has a working modem or network connection, you'll have the option to register with Microsoft so we can send you information on product updates and offers you might be interested in.";
Agent_Speak(L_AboutProcess7_Text);
}
var L_AboutProcess8_Text = "And you'll also have the option to verify the authenticity of %1 to make sure you're using a legal copy.";
Agent_Speak(ApiObj.FormatMessage(L_AboutProcess8_Text, g_ProductName));
var L_AboutProcess9_Text = "Third, I'll help you connect to the Internet if you like.";
Agent_Speak(L_AboutProcess9_Text);
var L_AboutProcess10_Text = "If you decide to skip this step, you can always connect on your own later.";
Agent_Speak(L_AboutProcess10_Text);
var L_AboutProcess11_Text = "And fourth, I'll help you make this computer customizable for each person who will use it. ";
Agent_Speak(L_AboutProcess11_Text);
var L_AboutProcess12_Text = "That's about it. We don't have far to go, so let's get started!";
Agent_Speak(L_AboutProcess12_Text);
if (window.parent.document.dir == "rtl")
{
Agent_MoveToElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_MoveToElement(g.btnNext, "TopLeft");
}
Agent_Play("PointDown");
var L_AboutProcess13_Text = "To begin, click the Next button.";
Agent_Speak(L_AboutProcess13_Text);
Agent_Play("RestPose");
}
function Agent_TimeZoneAddCommands()
{
var L_TimeZoneCommand1_Text = "&Tell me about this step";
var L_TimeZoneCommand2_Text = "H&ow do I select my time zone?";
g_AgentCharacter.Commands.Add("Agent_OnTimeZoneCommand_AboutStep", L_TimeZoneCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnTimeZoneCommand_SelectZone", L_TimeZoneCommand2_Text);
Agent_AddWhatToDoNextCommand();
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnTimeZonePreDisplayMenu()
{
if (g.document.all("daylight").disabled)
{
try
{
g_AgentCharacter.Commands.Remove("Agent_OnTimeZoneCommand_DaylightSavings");
}
catch (e)
{
}
}
else
{
var L_TimeZoneMenuCommand3_Text = "Wh&at is daylight savings time?";
try
{
g_AgentCharacter.Commands.Insert("Agent_OnTimeZoneCommand_DaylightSavings","Agent_OnCommand_WhatToDoNext",true,L_TimeZoneMenuCommand3_Text);
}
catch (e)
{
}
}
}
function Agent_OnTimeZoneCommand_AboutStep()
{
var L_ExplainTimeZoneStep1_Text = "Tell us the time zone in which you'll use your computer, and Windows will set your computer's clock accordingly.";
Agent_Speak(L_ExplainTimeZoneStep1_Text);
var L_ExplainTimeZoneStep2_Text = "And, if you like, you can have Windows automatically update the clock for daylight savings time.";
Agent_Speak(L_ExplainTimeZoneStep2_Text);
var L_ExplainTimeZoneStep3_Text = "This is the last step that involves your hardware.";
Agent_Speak(L_ExplainTimeZoneStep3_Text);
var L_ExplainTimeZoneStep4_Text = "Next, we'll move on to the license agreement.";
Agent_Speak(L_ExplainTimeZoneStep4_Text);
}
function Agent_OnTimeZoneCommand_SelectZone()
{
Agent_GestureAtElement(g.document.all("selTimeZone"),"Left");
var L_TellUserHowToSelectTimeZone1_Text = "The time zones in this list appear as Greenwich Mean Time, or GMT, plus or minus a number of hours.";
Agent_Speak(L_TellUserHowToSelectTimeZone1_Text);
Agent_Play("RestPose");
Agent_GestureAtElement(g.document.all("selTimeZone"),"Left");
var L_TellUserHowToSelectTimeZone2_Text = "Click here or press the Tab key on your keyboard until you reach it. ";
Agent_Speak(L_TellUserHowToSelectTimeZone2_Text);
Agent_Play("RestPose");
Agent_GestureAtElement(g.document.all("selTimeZone"),"Right");
var L_TellUserHowToSelectTimeZone3_Text = "Then click these small arrow buttons, or use the up and down arrow keys on your keyboard, to scroll through the time zones. ";
Agent_Speak(L_TellUserHowToSelectTimeZone3_Text);
Agent_Play("RestPose");
var L_TellUserHowToSelectTimeZone4_Text = "When you see the time zone you want, click it or press Enter on your keyboard.";
Agent_Speak(L_TellUserHowToSelectTimeZone4_Text);
var L_TellUserHowToSelectTimeZone5_Text = "The time zone you just selected will appear highlighted.";
Agent_Speak(L_TellUserHowToSelectTimeZone5_Text);
Agent_GestureAtElement(g.document.all("daylight"),"Left");
var L_TellUserHowToSelectTimeZone6_Text = "If you live in an area that uses daylight savings time, position your pointer here, and click once to 'check' this option.";
Agent_Speak(L_TellUserHowToSelectTimeZone6_Text);
Agent_Play("RestPose");
var L_TellUserHowToSelectTimeZone7_Text = "Windows will automatically adjust your computer's clock twice a year.";
Agent_Speak(L_TellUserHowToSelectTimeZone7_Text);
}
function Agent_OnTimeZoneCommand_DaylightSavings()
{
Agent_GestureAtElement(g.document.all("daylight"),"Left");
var L_TellUserAboutDaylightOption1_Text = "In some time zones, clocks are set ahead and back during certain times of the year to adjust for the differences in the amount of daylight.";
Agent_Speak(L_TellUserAboutDaylightOption1_Text);
Agent_Play("RestPose");
var L_TellUserAboutDaylightOption2_Text = "If you want Windows to automatically adjust your computer's clock when this occurs, check this option by positioning the pointer here and then clicking once.";
Agent_Speak(L_TellUserAboutDaylightOption2_Text);
}
function Agent_OEMHWAddCommands()
{
var L_OEMHWMenuCommand1_Text = "&Tell me about this step";
var L_OEMHWMenuCommand2_Text = "H&ow do I know if my sound system is working?";
var L_OEMHWMenuCommand3_Text = "Wh&at if I my sound isn't working?";
var L_OEMHWMenuCommand4_Text = "How &do I indicate my answer?";
g_AgentCharacter.Commands.Add("Agent_OnOEMHWAboutThisScreen", L_OEMHWMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnOEMHWHowDoIKnow", L_OEMHWMenuCommand2_Text);
g_AgentCharacter.Commands.Add("Agent_OnOEMHWIsNotWorking", L_OEMHWMenuCommand3_Text);
g_AgentCharacter.Commands.Add("Agent_OnOEMHWIndicateAnswer", L_OEMHWMenuCommand4_Text);
Agent_AddWhatToDoNextCommand();
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnOEMHWAboutThisScreen()
{
var L_OEMHWAboutThisScreen1_Text = "This is the screen where you make sure your computer's sound system is working.";
Agent_Speak(L_OEMHWAboutThisScreen1_Text);
var L_OEMHWAboutThisScreen2_Text = "The sound system is made up of your speakers, a sound card inside your computer, and the %1 software that lets you play sound.";
Agent_Speak(ApiObj.formatMessage(L_OEMHWAboutThisScreen2_Text, g_ProductName));
}
function Agent_OnOEMHWHowDoIKnow()
{
var L_OEMHWHowDoIKnow1_Text = "If you're hearing a sound right now, then it's working.";
Agent_Speak(L_OEMHWHowDoIKnow1_Text);
var L_OEMHWHowDoIKnow2_Text = "If you don't hear a sound, first check the speaker volume to make sure it is not set too low.";
Agent_Speak(L_OEMHWHowDoIKnow2_Text);
var L_OEMHWHowDoIKnow3_Text = "If that doesn't fix things, we'll look at other possibilities.";
Agent_Speak(L_OEMHWHowDoIKnow3_Text);
}
function Agent_OnOEMHWIsNotWorking()
{
var L_OEMHWIsNotWorking1_Text = "First, make sure that your speakers are switched on.";
Agent_Speak(L_OEMHWIsNotWorking1_Text);
var L_OEMHWIsNotWorking2_Text = "Some speakers have a light to indicate that they're on.";
Agent_Speak(L_OEMHWIsNotWorking2_Text);
var L_OEMHWIsNotWorking3_Text = "Second, make sure they're set to a volume that you can hear.";
Agent_Speak(L_OEMHWIsNotWorking3_Text);
var L_OEMHWIsNotWorking4_Text = "If you're still not hearing sound coming from them...";
Agent_Speak(L_OEMHWIsNotWorking4_Text);
var L_OEMHWIsNotWorking5_Text = "Third, make sure that your speakers are plugged into an electrical outlet, and that they're also properly plugged into your computer.";
Agent_Speak(L_OEMHWIsNotWorking5_Text);
var L_OEMHWIsNotWorking6_Text = "It's easy to mistake your computer's microphone plug for its speaker plug.";
Agent_Speak(L_OEMHWIsNotWorking6_Text);
var L_OEMHWIsNotWorking7_Text = "Fourth, if you have a set of stereo speakers, make sure they're connected to each other.";
Agent_Speak(L_OEMHWIsNotWorking7_Text);
var L_OEMHWIsNotWorking8_Text = "Finally, if you're still not hearing sound, try borrowing a set of speakers from another computer.";
Agent_Speak(L_OEMHWIsNotWorking8_Text);
var L_OEMHWIsNotWorking9_Text = "If the borrowed speakers work but your own speakers don't, then you need to replace or repair your speakers.";
Agent_Speak(L_OEMHWIsNotWorking9_Text);
}
function Agent_OnOEMHWIndicateAnswer()
{
Agent_GestureAtElement(g.document.all("Sound_Yes"), "Left");
var L_OEMHWIndicateAnswer1_Text = "Simply position the mouse pointer in the white circle to the left of your answer,";
Agent_Speak(L_OEMHWIndicateAnswer1_Text);
Agent_Play("RestPose");
Agent_GestureAtElement(g.document.all("radioNoSound"), "Left");
var L_OEMHWIndicateAnswer2_Text = "and click once.";
Agent_Speak(L_OEMHWIndicateAnswer2_Text);
Agent_Play("RestPose");
var L_OEMHWIndicateAnswer3_Text = "If you want to use your keyboard to indicate your answer, press the Tab key until you see a faint rectangle around the white circle you want to fill in, and press the Spacebar.";
Agent_Speak(L_OEMHWIndicateAnswer3_Text);
}
function Agent_CompNameAddCommands()
{
var L_CompNameMenuCommand1_Text = "&Tell me about this step";
var L_CompNameMenuCommand2_Text = "H&ow do I rename the computer later?";
g_AgentCharacter.Commands.Add("Agent_OnCompNameAboutThisScreen", L_CompNameMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnCompNameHowToRename", L_CompNameMenuCommand2_Text);
Agent_AddWhatToDoNextCommand();
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnCompNameAboutThisScreen()
{
var L_CompNameAboutThisScreen1_Text = "This is the screen where you give your computer a name.";
Agent_Speak(L_CompNameAboutThisScreen1_Text);
var L_CompNameAboutThisScreen2_Text = "This name identifies your computer to other users if this computer is connected to other computers on a network.";
Agent_Speak(L_CompNameAboutThisScreen2_Text);
}
function Agent_OnCompNameHowToRename()
{
var L_CompNameHowToRename1_Text = "After you finish setting up Windows, click Control Panel on the Start menu.";
Agent_Speak(L_CompNameHowToRename1_Text);
var L_CompNameHowToRename2_Text = "Click the System icon under Performance and Maintenance and then follow the instructions on the Computer Name tab.";
Agent_Speak(L_CompNameHowToRename2_Text);
var L_CompNameHowToRename3_Text = "If you forget these steps, click Help and Support on the Start menu to find the answer to your questions, and other valuable information.";
Agent_Speak(L_CompNameHowToRename3_Text);
}
function Agent_SECURITYPASSAddCommands()
{
var L_SECURITYPASSMenuCommand1_Text = "&Tell me about this step";
var L_SECURITYPASSMenuCommand2_Text = "Wh&at's the best way to create a password?";
g_AgentCharacter.Commands.Add("Agent_OnSECURITYPASSAboutThisScreen", L_SECURITYPASSMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnSECURITYPASSBestWay", L_SECURITYPASSMenuCommand2_Text);
Agent_AddWhatToDoNextCommand();
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnSECURITYPASSAboutThisScreen()
{
var L_SECURITYPASSAboutThisScreen1_Text = "This is the screen where you create a password if you want to protect this computer from unauthorized access.";
Agent_Speak(L_SECURITYPASSAboutThisScreen1_Text);
var L_SECURITYPASSAboutThisScreen2_Text = "One thing to note: if this computer is connected to other computers on a network, the individual who logs on with the \"Administrator\" user name and the valid password can access the entire network.";
Agent_Speak(L_SECURITYPASSAboutThisScreen2_Text);
var L_SECURITYPASSAboutThisScreen3_Text = "So, it's strongly recommended that you require an Administrator password to protect your computer-- and your network, if you have one.";
Agent_Speak(L_SECURITYPASSAboutThisScreen3_Text);
}
function Agent_OnSECURITYPASSBestWay()
{
var L_SECURITYPASSBestWay1_Text = "To improve the security of a password, it should contain at least two of these elements: uppercase letters, lowercase letters, and numbers.";
Agent_Speak(L_SECURITYPASSBestWay1_Text);
var L_SECURITYPASSBestWay2_Text = "Also, the more random the sequence of characters, the more secure the password.";
Agent_Speak(L_SECURITYPASSBestWay2_Text);
var L_SECURITYPASSBestWay3_Text = "Passwords can be up to 127 characters long.";
Agent_Speak(L_SECURITYPASSBestWay3_Text);
var L_SECURITYPASSBestWay4_Text = "But, if you're using Windows on a network that also has computers using Windows 95 or Windows 98,and you want to be able to log on to your network from those computers, consider using passwords not longer than 14 characters.";
Agent_Speak(L_SECURITYPASSBestWay4_Text);
}
function Agent_JOINDOMAINAddCommands()
{
var L_JOINDOMAINMenuCommand1_Text = "&Tell me about this step";
var L_JOINDOMAINMenuCommand2_Text = "Wh&at's a domain?";
var L_JOINDOMAINMenuCommand3_Text = "H&ow do I join a domain?";
var L_JOINDOMAINMenuCommand4_Text = "&What should I do next?";
g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINAboutThisScreen", L_JOINDOMAINMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINDifference", L_JOINDOMAINMenuCommand2_Text);
g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINHowToName", L_JOINDOMAINMenuCommand3_Text);
g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINWhatToDoNext", L_JOINDOMAINMenuCommand4_Text);
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnJOINDOMAINAboutThisScreen()
{
var L_JOINDOMAINAboutThisScreen1_Text = "This is the screen where you decide whether you want to make this computer a member of a domain or not.";
Agent_Speak(L_JOINDOMAINAboutThisScreen1_Text);
var L_JOINDOMAINAboutThisScreen2_Text = "If you choose to join a domain, you must type the name of the domain that this computer is joining.";
Agent_Speak(L_JOINDOMAINAboutThisScreen2_Text);
}
function Agent_OnJOINDOMAINDifference()
{
var L_JOINDOMAINDifference1_Text = "A domain is a group of computers that are administered as a unit.";
Agent_Speak(L_JOINDOMAINDifference1_Text);
var L_JOINDOMAINDifference2_Text = "For example, a business might add all the computers in its Seattle office to a domain so that they share the same access privileges and connect to the same printers.";
Agent_Speak(L_JOINDOMAINDifference2_Text);
var L_JOINDOMAINDifference3_Text = "If you're not sure which option you want, select No and click the Next button.";
Agent_Speak(L_JOINDOMAINDifference3_Text);
}
function Agent_OnJOINDOMAINHowToName()
{
Agent_GestureAtElement(g.document.all("radioYesDomain"), "Left");
var L_JOINDOMAINHowToName1_Text = "If you check the option to join a domain,";
Agent_Speak(L_JOINDOMAINHowToName1_Text);
Agent_Play("RestPose");
Agent_GestureAtElement(g.document.all("textboxDomain"), "Left");
var L_JOINDOMAINHowToName2_Text = "you can type a name in the box below that option.";
Agent_Speak(L_JOINDOMAINHowToName2_Text);
Agent_Play("RestPose");
var L_JOINDOMAINHowToName3_Text = "You can't type a name if you didn't choose the join domain option.";
Agent_Speak(L_JOINDOMAINHowToName3_Text);
var L_JOINDOMAINHowToName4_Text = "So, the box remains gray to indicate that you can't type in it until you choose the join domain option.";
Agent_Speak(L_JOINDOMAINHowToName4_Text);
var L_JOINDOMAINHowToName5_Text = "If you're joining this computer to a domain, ask your network administrator for a valid domain name.";
Agent_Speak(L_JOINDOMAINHowToName5_Text);
var L_JOINDOMAINHowToName6_Text = "If you're not joining a domain, you won't have to specify a name.";
Agent_Speak(L_JOINDOMAINHowToName6_Text);
}
function Agent_OnJOINDOMAINWhatToDoNext()
{
if (window.parent.document.dir == "rtl")
{
Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_GestureAtElement(g.btnNext, "TopLeft");
}
var L_JOINDOMAINWhatToDoNext1_Text = "After you make a selection, click the Next button.";
Agent_Speak(L_JOINDOMAINWhatToDoNext1_Text);
Agent_Play("RestPose");
if (window.parent.document.dir == "rtl")
{
Agent_GestureAtElement(g.btnBack, "TopLeft");
}
else
{
Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
}
var L_JOINDOMAINWhatToDoNext2_Text = "You can also choose to go back to the previous screen by clicking the Back button.";
Agent_Speak(L_JOINDOMAINWhatToDoNext2_Text);
Agent_Play("RestPose");
}
function Agent_JNDOM_AAddCommands()
{
var L_JNDOMAMenuCommand1_Text = "&Tell me about this step";
var L_JNDOMAMenuCommand2_Text = "How do I enter the user name and &password?";
var L_JNDOMAMenuCommand3_Text = "Wh&at's a domain?";
var L_JNDOMAMenuCommand4_Text = "&What should I do next?";
g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AAboutThisStep", L_JNDOMAMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AHowToEnter", L_JNDOMAMenuCommand2_Text);
g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AWhatIsDomain", L_JNDOMAMenuCommand3_Text);
g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AWhatToDoNext", L_JNDOMAMenuCommand4_Text);
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnJNDOM_AAboutThisStep()
{
var L_JNDOM_A_AboutThisStep1_Text = "This is the screen where you identify the person who is authorized to join this computer to a domain.";
Agent_Speak(L_JNDOM_A_AboutThisStep1_Text);
}
function Agent_OnJNDOM_AHowToEnter()
{
Agent_GestureAtElement(g.textboxDomUser, "Right");
var L_JNDOM_A_HowToEnter1_Text = "The name you type here must be unique among the other user names within the domain.";
Agent_Speak(L_JNDOM_A_HowToEnter1_Text);
Agent_Play("RestPose");
Agent_GestureAtElement(g.textboxDomPass, "Right");
var L_JNDOM_A_HowToEnter2_Text = "The password you type here must match the password in that user's account.";
Agent_Speak(L_JNDOM_A_HowToEnter2_Text);
Agent_Play("RestPose");
var L_JNDOM_A_HowToEnter3_Text = "If you don't know which user name and password to use, contact your network administrator.";
Agent_Speak(L_JNDOM_A_HowToEnter3_Text);
}
function Agent_OnJNDOM_AWhatIsDomain()
{
var L_JNDOM_A_WhatIsDomain1_Text = "A domain is a group of computers that are administered as a unit.";
Agent_Speak(L_JNDOM_A_WhatIsDomain1_Text);
var L_JNDOM_A_WhatIsDomain2_Text = "For example, a business might add all the computers in its Seattle office to a domain so that they share the same access privileges and connect to the same printers.";
Agent_Speak(L_JNDOM_A_WhatIsDomain2_Text);
Agent_Play("RestPose");
}
function Agent_OnJNDOM_AWhatToDoNext()
{
Agent_GestureAtElement(g.textboxDomUser, "Right");
var L_JNDOM_A_WhatToDoNext1_Text = "After you type the user name here";
Agent_Speak(L_JNDOM_A_WhatToDoNext1_Text);
Agent_Play("RestPose");
Agent_GestureAtElement(g.textboxDomPass, "Right");
var L_JNDOM_A_WhatToDoNext2_Text = "and that user's password here,";
Agent_Speak(L_JNDOM_A_WhatToDoNext2_Text);
Agent_Play("RestPose");
if (window.parent.document.dir == "rtl")
{
Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_GestureAtElement(g.btnNext, "TopLeft");
}
var L_JNDOM_A_WhatToDoNext3_Text = "click the Next button.";
Agent_Speak(L_JNDOM_A_WhatToDoNext3_Text);
Agent_Play("RestPose");
}
function Agent_ActivationAddCommands()
{
var L_ActivationMenuCommand1_Text = "&Tell me about this step";
var L_ActivationMenuCommand2_Text = "Tell &me about activation";
var L_ActivationMenuCommand3_Text = "H&ow do I activate later?";
var L_ActivationMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?";
var L_ActivationMenuCommand5_Text = "Wh&at happens if I don't activate?";
var L_ActivationMenuCommand6_Text = "&What should I do next?";
g_AgentCharacter.Commands.Add("Agent_OnActivationAboutThisScreen", L_ActivationMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationAboutActivation", L_ActivationMenuCommand2_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationHowToActivateLater", L_ActivationMenuCommand3_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationHowToActivateUnconnected", L_ActivationMenuCommand4_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationWhatHappensNoActivate", L_ActivationMenuCommand5_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationWhatToDoNext", L_ActivationMenuCommand6_Text);
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnActivationAboutThisScreen()
{
Agent_MoveToElement(g.rb_act_2, "Left");
var L_ActivationAboutThisScreen1_Text = "This is the screen where you decide whether to activate %1 now or later.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationAboutThisScreen1_Text, g_ProductName));
var L_ActivationAboutThisScreen2_Text = "If you wait until later, you can run the Product Activation Wizard from the Start menu.";
Agent_Speak(L_ActivationAboutThisScreen2_Text);
var L_ActivationAboutThisScreen3_Text = "And we'll remind you every few days to activate Windows so that you can continue to use it.";
Agent_Speak(L_ActivationAboutThisScreen3_Text);
}
function Agent_OnActivationAboutActivation()
{
var L_ActivationAboutActivation1_Text = "When you get a new debit card or credit card from your bank, your bank typically asks you to 'activate' the card before you can begin using it.";
Agent_Speak(L_ActivationAboutActivation1_Text);
var L_ActivationAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card.";
Agent_Speak(L_ActivationAboutActivation2_Text);
var L_ActivationAboutActivation3_Text = "%1 activation works the same way, except that you can use %2 for the specified activation period before you're required to activate it.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationAboutActivation3_Text, g_ProductName, g_ProductName));
}
function Agent_OnActivationHowToActivateLater()
{
var L_ActivationHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationHowToActivateLater1_Text, g_ProductName));
var L_ActivationHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows.";
Agent_Speak(L_ActivationHowToActivateLater2_Text);
var L_ActivationHowToActivateLater3_Text = "If you forget these steps, go to the Start menu and click Help and Support to find the answer to your questions and other valuable information.";
Agent_Speak(L_ActivationHowToActivateLater3_Text);
}
function Agent_OnActivationHowToActivateUnconnected()
{
Agent_GestureAtElement(g.rb_act_2, "Left");
var L_ActivationHowToActivateUnconnected1_Text = "Simply choose \"No\" here.";
Agent_Speak(L_ActivationHowToActivateUnconnected1_Text);
Agent_Play("RestPose");
var L_ActivationHowToActivateUnconnected2_Text = "Once you finish setting up Windows, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu.";
Agent_Speak(L_ActivationHowToActivateUnconnected2_Text);
var L_ActivationHowToActivateUnconnected3_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone.";
Agent_Speak(L_ActivationHowToActivateUnconnected3_Text);
}
function Agent_OnActivationWhatHappensNoActivate()
{
var L_ActivationWhatHappensNoActivate1_Text = "You can continue using %1 until the activation period expires.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate1_Text, g_ProductName));
var L_ActivationWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate2_Text, g_ProductName));
var L_ActivationWhatHappensNoActivate3_Text = "If you let the activation period expire, you will no longer be able to use %1.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate3_Text, g_ProductName));
}
function Agent_OnActivationWhatToDoNext()
{
Agent_GestureAtElement(g.act_spn1, "Left");
var L_ActivationWhatToDoNext1_Text = "After you select the answer to this question,";
Agent_Speak(L_ActivationWhatToDoNext1_Text);
Agent_Play("RestPose");
if (window.parent.document.dir == "rtl")
{
Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
}
else
{
Agent_GestureAtElement(g.btnNext, "TopLeft");
}
var L_ActivationWhatToDoNext2_Text = "click the Next button.";
Agent_Speak(L_ActivationWhatToDoNext2_Text);
Agent_Play("RestPose");
}
function Agent_ActivationErrorAddCommands()
{
var L_ActivationErrorMenuCommand1_Text = "&Tell me about this step";
var L_ActivationErrorMenuCommand2_Text = "Tell &me about activation";
var L_ActivationErrorMenuCommand3_Text = "H&ow do I activate later?";
var L_ActivationErrorMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?";
var L_ActivationErrorMenuCommand5_Text = "Wh&at happens if I don't activate?";
g_AgentCharacter.Commands.Add("Agent_OnActivationErrorAboutThisScreen", L_ActivationErrorMenuCommand1_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationErrorAboutActivation", L_ActivationErrorMenuCommand2_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationErrorHowToActivateLater", L_ActivationErrorMenuCommand3_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationErrorHowToActivateUnconnected", L_ActivationErrorMenuCommand4_Text);
g_AgentCharacter.Commands.Add("Agent_OnActivationErrorWhatHappensNoActivate", L_ActivationErrorMenuCommand5_Text);
Agent_AddWhatToDoNextCommand();
if (!window.external.get_RetailOOBE())
{
Agent_AddAssistantanceCommand();
}
}
function Agent_OnActivationErrorAboutThisScreen()
{
var L_ActivationErrorAboutThisScreen1_Text = "This screen appears because you were unable to reach our activation center.";
Agent_Speak(L_ActivationErrorAboutThisScreen1_Text);
var L_ActivationErrorAboutThisScreen2_Text = "Once you finish setting up %1, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorAboutThisScreen2_Text, g_ProductName));
}
function Agent_OnActivationErrorAboutActivation()
{
var L_ActivationErrorAboutActivation1_Text = "When you get a new debit card or credit card from your bank, your bank typically asks you to 'activate' the card before you can begin using it.";
Agent_Speak(L_ActivationErrorAboutActivation1_Text);
var L_ActivationErrorAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card.";
Agent_Speak(L_ActivationErrorAboutActivation2_Text);
var L_ActivationErrorAboutActivation3_Text = "%1 activation works the same way, except that you can use %2 for a specified number of days before you're required to activate it.";
Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorAboutActivation3_Text, g_ProductName, g_ProductName));
}
function Agent_OnActivationErrorHowToActivateLater()