Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
Action.WriteINI yourinifile.yourextention,index,parameter,value
If Score=0 Then
MsgBox "You can't save your score If it's 0"
Else
Name=InputBox("Your Name or Nickname","Score")+cstr(": ")
INIKey=INIKey+1
Action.WriteINI "ScoreBoard.ini",2,1,INIKey
Action.WriteINI "ScoreBoard.ini",1,INIKey,Name + " " + cstr(Score)
Action.GoToFrame "Scoreboard"
End If
entries=INIKey
Text(1).Caption=Scoreboard
Do
Text(1).Caption=Text(1).Caption+Action.ReadINI("ScoreBoard.ini",1,entries)+vblf
entries=entries-1
Loop While entries>0
If INIKey>0 Then
Answer=MsgBox("Are you sure?",vbyesno)
If Answer=vbyes Then
Do
Action.WriteINI "ScoreBoard.ini",2,1,""
Action.WriteINI "ScoreBoard.ini",1,INIKey,""
INIKey=INIKey-1
Loop While INIKey>0
Action.GoToFrame "Scoreboard"
End If
Else
MsgBox "The Scoreboard is already empty"
End If
INIKey=ConvertToNumber(Action.ReadINI("ScoreBoard.ini",2,1))
.WARNING! The VBScript code makes calls to the "CreateObject" function, which for security reasons is not allowed.
Please remove the calls to that function and try again
Action.LoadAPicture Hotspot(HOTSPOT_NUMBER), "FILENAME"
Hotspot(5).MouseIcon = LoadGraphicFile("FILENAME")
Hotspot(5).MousePointer = 99
SaveAPicture Saves a graphic from the "Picture" or "Image" property of an object or control (such as a PictureBox) into a BMP file. The syntax is:
Action.SaveAPicture CONTROLNAME,"FILENAME"
where CONTROLNAME is the name of the object or control that contains the picture to save and FILENAME is the name of the output BMP file.
SaveParameter Saves the value of a parameter to the Windows registry (use this command in conjunction with the Action.LoadParameter command). The syntax is:
Action.SaveParameter "PARAMETER_NAME", VALUE
where PARAMETER_NAME is the name of the parameter (for example, "NumberOfTrialDaysLeft"), and VALUE is the value of the parameter (for example 30 to indicate that there are 30 trial days left)
loadcontrol TextBoxObject(index)
i=Action.GetMergedTextIndex
Text(i).Caption=Name
Return to Post Your Own Tutorials
Users browsing this forum: No registered users and 0 guests