home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
SMARTCTR
/
004.LSS
< prev
next >
Wrap
Text File
|
1996-10-24
|
9KB
|
364 lines
'Copyright 1995-96, Lotus Development Corporation. All rights reserved.
%if GEMINI
Use "LTAPMN11"
%elseif IBM_OS2
Use "LTAPMO11"
%end if
%if GEMINI
Use "LTAPSN11"
%elseif IBM_OS2
Use "LTAPSO11"
%end if
Sub Initialize
ClientMainWinClass = SMARTCENTER_MAINWINCLASS
ClientID = AN_SMARTCEN
ClientModName = SMARTCENTER_PERSMODNAME
ClientLotusAppID = "SMARTCENTER"
ShowMeModName = "004"
AnimVersionNum = 2.32
NumFramesThisAnim = 45
AnimationType = "QuickDemo"
SampleFile = "sc6en.lwp"
AnimName = GetString( "0040000", IResult% )
End Sub
Public Sub ShowMe (theNextStep As Integer)
GetCursorPos TempPos
CursorPosForStep(theNextStep) = TempPos
Select Case theNextStep
Case 1
StepsText = GetString( "0041001", IResult% )
StartAppFromSC AN_AMIPRO, "sc6en.lwp"
Exit Sub
Case 2
StepsText = GetString( "0041002", IResult% )
SetBubblePosforMenus
ShowTextBubble StepsText, 1, 0, NorthEast
HideTextBubble
ChooseMenuItem Merge_Letter_m
Exit Sub
Case 3
StepsText = GetString( "0041003", IResult% )
X = DoWhereIs (DIALOG_CONTROL_M,"",25586,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 4
StepsText = GetString( "0041004", IResult% )
WaitForChildDialog 5000 'Wait for Browse dialog to appear...
X = DoWhereIs (DIALOG_CONTROL_M,"",1136,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
SendCtrlKeys "{HOME}{DOWN}{ENTER}", 100
Exit Sub
Case 5
StepsText = GetString( "0041005", IResult% )
Delay 500
WhereIsDlgControl &H480,"",0 'LWP WhereIs has bug...
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 6
Delay 500
theLocalFileName$ = "sc3??.dbf"
X = GetLocalSampleFileName (theLocalFileName$)
SendTextKeys ReadClientRegistry ( "Approach", "Path" ) + lcase(theLocalFileName$), 50
Exit Sub
Case 7
Delay 500
X = DoWhereIs (DIALOG_CONTROL_M,"",1,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 8
StepsText = GetString( "0041006", IResult% )
Delay 2000
WaitForChildDialog 20000 'Wait for Merge dialog to appear...
X = DoWhereIs (DIALOG_CONTROL_M,"",1,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 9
StepsText = GetString( "0041007", IResult% )
X = DoWhereIs (DIALOG_CONTROL_M,"",&H63EC,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 10
StepsText = GetString( "0041008", IResult% )
Delay 2000
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
Exit Sub
Case 11
X = RunScriptCommand (".GoToBookMark ""address""", ClientID, DeskwHdl.val )
Exit Sub
Case 12
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 13
Delay 2000
' ***** Insert FIRST NAME field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 14
StepsText = GetString( "0041009", IResult% )
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
Exit Sub
Case 15
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
SendTextKeys GetString( "0042015", IResult% ), 50
Exit Sub
Case 16
Delay 500
' ***** Insert LAST NAME field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObjRel 25 , 30
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 17
Delay 500
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 18
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
SendCtrlKeys "{ENTER}", 100
Exit Sub
Case 19
Delay 500
' ***** Select ADDRESS field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObjRel 25 , 65
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 20
Delay 500
' ***** Insert ADDRESS field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 21
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
SendCtrlKeys "{ENTER}", 100
Exit Sub
Case 22
Delay 500
' ***** Select CITY field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObjRel 25 , 90
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 23
Delay 500
' ***** Insert CITY field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 24
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
SendTextKeys GetString( "0042024", IResult% ), 50
Exit Sub
Case 25
Delay 500
' ***** Select STATE field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObjRel 25 , 90
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 26
Delay 500
SendCtrlKeys "{DOWN}", 100
Exit Sub
Case 27
Delay 500
' ***** Insert STATE field ******
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 28
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
SendTextKeys GetString( "0042028", IResult% ), 50
Exit Sub
Case 29
' ***** Select ZIP field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObjRel 25 , 90
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 30
Delay 500
SendCtrlKeys "{DOWN}", 100
Exit Sub
Case 31
' ***** Insert ZIP field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 32
X = RunScriptCommand (".GoToBookMark ""name""", ClientID, DeskwHdl.val )
Exit Sub
Case 33
X = DoWhereIs (INSERTION_POINT_M,"",0,0,0,0,ClientID)
Exit Sub
Case 34
Delay 500
' ***** Select NAME field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H6306,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 35
Delay 500
SendCtrlKeys "{HOME}", 100
Exit Sub
Case 36
' ***** Insert NAME field *****
X = DoWhereIs (BAR_CONTROL_M,"",&H63F1,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 37
' ***** Click DONE *****
X = DoWhereIs (BAR_CONTROL_M,"",&H63F2,0,BAR_MAILMERGE_M,0,ClientID)
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 38
StepsText = GetString( "0041010", IResult% )
Delay 2000
X = DoWhereIs (DIALOG_CONTROL_M,"",1,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 39
StepsText = GetString( "0041011", IResult% )
X = DoWhereIs (DIALOG_CONTROL_M,"",&H6465,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, SouthEast
HideTextBubble
Exit Sub
Case 40
StepsText = GetString( "0041012", IResult% )
Delay 1000
X = DoWhereIs (DIALOG_CONTROL_M,"",1,0,0,0,ClientID)
ShowTextBubble StepsText, .5, .5, NorthEast
HideTextBubble
MoveToObj Center
DoMouse WM_LBUTTONDOWN%, 0
DoMouse WM_LBUTTONUP%, 0
Exit Sub
Case 41
Delay 2000
SendCtrlKeys "{TAB}", 100
Exit Sub
Case 42
Delay 1000
SendCtrlKeys "{ENTER}", 100
Exit Sub
Case 43
Delay 1000
SendCtrlKeys "{ENTER}", 100
Exit Sub
Case 44
Delay 1000
SendCtrlKeys "{ENTER}", 100
Exit Sub
Case 45
Delay 2000
Exit Sub
End Select
End Sub