< Anterior
|
Avançar >
Lesson 9 Summary
In this lesson, you learned how to:
You place a value into a variable by assigning the value to it with an equals sign. For example, the following script assigns the value 10 to a variable called "amount."
Let's modify the script on our button object's On Click event to only display the message if it is "Hello world!".
The script should look like this when it's done:
In the if statement's condition, we use a String.Upper action to convert the contents of strMsg to all uppercase characters, and then compare that to "HELLO WORLD!".
The rest of the script is just an if statement that tests whether the value of nClicks is greater than 4, and displays a message when that's true. (A couple more concatenation operators are used in the Dialog.Message action, to create the string for its second parameter. Note that you can easily include the contents of a variable in the "middle" of a string as well.)
end
Exit after action
Run Mode
Exit after action
Exit after action
Exit after action
Command line arguments:
Working folder:
Run Mode
Exit after action
Exit after action
Previous
Next
Last
Back (History)
Forward (History)
Specific Page
Page name:
Exit after action
S c r i p t E d i t o r
Event variables:
Code Window
Quick help:
Action Help
Add Action
Add Code
Edit
Bookmarks
Macros
Advanced
Syntax Checker
Double-click Edit
Show Whitespace
Import Registry Values...
Import .REG Files...
Import...
Export...
Print...
Global Functions...
Editor Settings...
Autocomplete Dropdown
Right-Click Insert
Object Reference
Page/Dialog Reference
File Reference
Menu Handler...
Right-Click Property Tables
Search and Replace
Find
Replace
Action Properties
On Audio
e_Channel
e_State
On Cell Changed
e_Row
e_Column
e_OldText
e_NewText
On Check
e_NodeIndex
e_Checked
On Click
On Close
On Double-Click
On EditLabel
e_NodeIndex
e_NewText
e_OldText
On Enter
On Error
e_ErrorCode
e_ErrorOrigin
On Expanded
e_NodeIndex
e_Expanded
On Finish
On Finished
On FlashCall
e_FlashCall
On Focus
On FSCommand
e_FSCommand
e_FSArgs
On Hyperlink
e_Hyperlink
On Key
e_Key
e_Modifiers
On Leave
On Link
e_Min
e_Max
e_Link
On Loaded
e_URL
On Menu
e_ID
e_ItemInfo
On Mouse Button
e_Type
e_X
e_Y
On Mouse Button Down
e_Button
e_Modifiers
e_XObject
e_YObject
e_X
e_Y
On Mouse Button Up
e_Button
e_Modifiers
e_XObject
e_YObject
e_X
e_Y
On Mouse Move
e_X
e_Y
e_Button
e_Modifiers
e_XObject
e_YObject
On Movie End
On Navigate
e_URL
On Pause
On Play
On Preload
On Rate Change
e_Rate
On Right-Click
On Select
e_Selection:
On Selection Changed
e_Min
e_Max
e_Row
e_Column
On Show
On Shutdown
On Slide Changed
e_Index
e_FilePath
On Size
e_WindowWidth
e_WindowHeight
e_PageWidth
e_PageHeight
e_DialogWidth
e_DialogHeight
e_Type
On Startup
On Stop
On Timer
e_ID
ResultVariable
ResultVariable
ResultVariable
ResultVariable
EventName
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
EventName
ResultVariable
ResultVariable
Key
ResultVariable
ResultVariable
Key
Value
AllowPartialMatch
CaseSensitive
ResultVariable
Properties
EventName
Script
Properties
EventName
Script
IconIndex
ResultVariable
Y
Menu
HAlign
VAlign
WaitForReturn
ClientCoordinates
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Filename
PlayAutomatic
Loop
SeekType
SeekTime
Looping
Volume
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Enabled
X
Y
Properties
Width
Height
State
Text
Visible
Text
Data
ResultVariable
Item
StartAfter
SearchType
SearchText
ResultVariable
ResultVariable
Index
ResultVariable
Index
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Index
Text
Data
ResultVariable
ResultVariable
ResultVariable
Enabled
Index
Data
Index
Text
X
Y
Properties
Index
Width
Text
Enabled
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Checked
Enabled
X
Y
Properties
Width
Height
Text
Visible
Destination
Filename
Destination
LineLen
LineLen
ResultVariable
Destination
Key
Key
ResultVariable
Destination
Key
Key
LineLen
ResultVariable
ResultVariable
ResultVariable
ResultVariable
D e b u g
ResultVariable
ResultVariable
Overwrite
ResultVariable
Prompt
Items
DefaultItem
SortItems
Editable
Icon
Title
DefaultFolder
FileFilters
Filename
FileExtension
MultipleSelect
FileMustExist
ResultVariable
DefaultFolder
ResultVariable
Prompt
DefaultText
Icon
ResultVariable
Prompt
Mask
DefaultText
Icon
PlaceHolder
ResultVariable
Text
Type
Icon
DefaultButton
ResultVariable
Prompt
Icon
Time
AllowClickToSkip
Time
AllowClickToSkip
Time
AllowClickToSkip
Text
Time
Icon
ResultVariable
ObjectName
Properties
ResultVariable
ResultVariable
EventName
ResultVariable
ResultVariable
Type
ResultVariable
ResultVariable
ResultVariable
ScaleToFit
EventName
Script
Position
ReferenceObject
GroupID
Type
ParentCoordinates
X
Y
ResultVariable
ID
FunctionName
Parameters
ReturnType
CallConvention
ResultVariable
D r i ve
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
F il e
Destination
Recurse
Overwrite
AbortOnFail
IncludeHiddenFiles
CallbackFunction
Source
Destination
Copied
Total
FileCopied
FileTotal
Recurse
AbortOnFail
IncludeHiddenFiles
CallbackFunction
Source
Deleted
Total
ResultVariable
WindowMode
Filename
Recurse
IncludeFolders
CallbackFunction
CurrentPath
FileFoundCallbackFunction
FoundPath
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Destination
Overwrite
CreateBackup
SharedSystem
ProgressCallbackFunction
Source
Destination
Copied
Total
OverwriteCallbackFunction
Source
Destination
ResultVariable
Destination
Recurse
Overwrite
AbortOnFail
IncludeHiddenFiles
CallbackFunction
Source
Destination
Copied
Total
FileCopied
FileTotal
Destination
WorkingFolder
WindowMode
WindowMode
WindowMode
NewName
Args
WorkingFolder
WindowMode
WaitForReturn
Args
WorkingFolder
WindowMode
WaitForReturn
UserName
Password
Domain
LogonFlag
CreationOptions
ExtendedErrorInfo
Args
Attributes
XMLRequest
ResultVariable
ResultVariable
FlashVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Filename
PlayAutomatic
Loop
SeekType
SeekFrame
Enabled
FlashVariable
Value
X
Y
Properties
XMLReturnValue
Width
Height
Visible
CallbackFunction
Source
Deleted
Total
ResultVariable
Folder
Recurse
CallbackFunction
CurrentPath
ResultVariable
ResultVariable
NewName
Filename
Username
Password
Mode
Timeout
Port
PassiveMode
CallbackFunction
BytesRead
FileSize
TransferRate
SecondsLeft
SecondsLeftFormat
Message
ResultVariable
Username
Password
Mode
Timeout
Port
PassiveMode
CallbackFunction
Message
ResizeMode
Redraw
Column
ResizeMode
ResetScroll
Redraw
ResizeMode
Redraw
Row
ResetScroll
Redraw
Redraw
Column
Redraw
Redraw
Row
Redraw
Row
Column
ExpandFixed
Redraw
Redraw
ExpandFixed
Redraw
ExpandFixed
Redraw
Row
Column
ResultVariable
Row
Column
ResultVariable
Row
Column
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Column
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Row
Column
ResultVariable
Row
Column
SearchType
SearchDirection
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Row
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
InsertPosition
Redraw
ResultVariable
InsertPosition
Redraw
ResultVariable
Row
Column
ResultVariable
Row
Column
ResultVariable
Row
Column
ResultVariable
Row
Column
ResultVariable
Row
Column
ResultVariable
ResultVariable
ResultVariable
FullPath
SeparatorCharacter
AutoSize
ResultVariable
Green
Blue
ResultVariable
WYSIWYG
ShadedPrintOut
MarginInfo
Row
Column
Column
Row
FullPath
SeparatorCharacter
ResultVariable
Row
Column
Colors
Redraw
Row
Column
FontData
Redraw
Row
Column
Text
Redraw
ColumnCount
AllowHiding
Resizable
Column
Width
Redraw
Enable
Editable
Enabled
ColumnCount
Enable
RowCount
Enable
Row
Column
Enable
Redraw
Colors
GridLines
SortOnClick
ListMode
Modified
Row
Column
X
Y
Properties
Redraw
RedrawScrollbars
RowCount
Row
Height
Redraw
AllowHiding
Resizable
Selectable
MinRow
MinColumn
MaxRow
MaxColumn
SelectCells
Redraw
SingleColumnSelection
SingleRowSelection
Width
Height
Ascending
UseTabKey
Tooltips
TrackFocus
Redraw
AllowUnhide
AllowUnhide
Visible
Column
Ascending
Redraw
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Enabled
X
Y
Properties
Width
Height
Filename
Mode
Timeout
Port
AuthData
ProxyData
CallbackFunction
BytesRead
FileSize
TransferRate
SecondsLeft
SecondsLeftFormat
Message
Filename
Mode
Timeout
Port
AuthData
ProxyData
CallbackFunction
BytesRead
FileSize
TransferRate
SecondsLeft
SecondsLeftFormat
Message
ResultVariable
Mode
Timeout
Port
AuthData
ProxyData
CallbackFunction
Message
Mode
Timeout
Port
AuthData
ProxyData
CallbackFunction
Message
ResultVariable
Values
Method
Timeout
Port
AuthData
ProxyData
Values
Method
Timeout
Port
AuthData
ProxyData
Timeout
Port
AuthData
ProxyData
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Filename
Enabled
Opacity
X
Y
Properties
Width
Height
Visible
Section
Section
Value
ResultVariable
Section
Value
ResultVariable
Section
ResultVariable
Section
Value
Data
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Lines
Line
Enabled
X
Y
Properties
Start
End
Width
Height
Text
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Enabled
X
Y
Properties
Width
Height
Text
Visible
Text
Data
Index
Index
StartAfter
SearchType
SearchText
ResultVariable
CheckState
ResultVariable
CheckState
ResultVariable
ResultVariable
Index
ResultVariable
Index
ResultVariable
Index
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Index
Text
Data
ResultVariable
Index
ResultVariable
ResultVariable
Index
Enabled
Index
CheckboxState
Index
Data
Index
Text
X
Y
Properties
Width
Height
Type
Enabled
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Num2
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Exponent
ResultVariable
ResultVariable
ResultVariable
Num2
ResultVariable
Num2
ResultVariable
Num2
ResultVariable
Exponent
ResultVariable
ResultVariable
Rand1
Rand2
ResultVariable
Green
Blue
ResultVariable
DecimalPlaces
ResultVariable
ResultVariable
ResultVariable
ResultVariable
MS I
InstallPackage
InstallType
CommandLine
ResultVariable
ResultVariable
FeatureID
InstallState
ResultVariable
InstallLevel
InstallState
ResultVariable
InstallLevel
InstallState
CommandLine
ResultVariable
LogFile
Append
FlushEachLine
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ComponentGUID
InstallState
ComponentPath
ResultVariable
FeatureID
Attributes
ResultVariable
FeatureID
ResultVariable
ResultVariable
ResultVariable
Attribute
ResultVariable
ResultVariable
Property
ResultVariable
Property
ResultVariable
ResultVariable
UserInfoState
UserName
CompanyName
SerialNumber
ResultVariable
ComponentGUID
InstallState
ResultVariable
File
ResultVariable
CommandLine
ResultVariable
InstallState
ComponentPath
ResultVariable
ResultVariable
ResultVariable
Feature
ResultVariable
ResultVariable
FeatureID
ReinstallMode
ResultVariable
ReinstallMode
ResultVariable
WaitForReturn
ResultVariable
WindowHandle
ResultVariable
ResultVariable
P a g e
ObjectName
Properties
ResultVariable
ResultVariable
EventName
ResultVariable
ResultVariable
Type
ResultVariable
ResultVariable
ScaleToFit
EventName
Script
Position
ReferenceObject
GroupID
Type
ID
ResultVariable
ResultVariable
Vertical
ResultVariable
Vertical
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Enabled
X
Y
Properties
ScrollPos
Vertical
Width
Height
Text
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Page
ResultVariable
ResultVariable
File
NavigateType
FromPage
ToPage
ShrinkToFit
Enabled
NamedDest
X
Y
Properties
Width
Height
Visible
Percent
Left
Top
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Enabled
X
Y
Width
Height
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Pos
Enabled
X
Y
Properties
Begin
End
Width
Height
Step
Text
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Filename
PlayAutomatic
Loop
ResultVariable
Rate
ResultVariable
SeekType
SeekTime
ResultVariable
Enabled
FullScreen
HideCursor
Sizing
Monitor
ResultVariable
Mute
X
Y
Properties
Width
Height
Visible
Volume
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Checked
Enabled
X
Y
Properties
Width
Height
Text
Visible
SubKey
SubKey
SubKey
Value
SubKey
ResultVariable
SubKey
Rights
ResultVariable
SubKey
ResultVariable
SubKey
Value
AutoExpand
ResultVariable
SubKey
ResultVariable
SubKey
Value
ResultVariable
SubKey
Value
Data
Type
ResultVariable
ResultVariable
SearchFor
Start
End
CaseSensitive
WholeWord
ResultVariable
Line
ResultVariable
OnlyConsistentAttributes
ResultVariable
ResultVariable
ResultVariable
ResultVariable
OnlyConsistentAttributes
ResultVariable
ResultVariable
RawRTF
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Filename
Filename
Lines
Line
Enabled
ParagraphFormat
X
Y
Properties
Start
End
CharacterFormat
ApplyToWord
Width
Height
Text
RawRTF
Visible
KeyName
DisplayName
KeyName
ServiceType
AllowDesktopInteraction
StartType
ErrorControl
LoadOrderGroup
GroupTag
Dependencies
ServiceStartName
Password
KeyName
KeyName
KeyName
ResultVariable
KeyName
Arguments
KeyName
WaitTime
Description
Target
CmdLine
WorkingFolder
IconPath
IconIndex
WindowMode
HotKey
Description
Verb
Arguments
WorkingFolder
WindowMode
WaitForReturn
FilePath
Position
ResultVariable
Position
FolderPath
EmptyFirst
Recurse
ResultVariable
Position
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Position
ResultVariable
ResultVariable
Position
Enabled
X
Y
Properties
Width
Height
Visible
ResultVariable
ResultVariable
ResultVariable
End
Cancelled
ButtonText
Characters
ResultVariable
ResultVariable
ResultVariable
CompareTo
ResultVariable
CompareTo
ResultVariable
CompareTo
ResultVariable
EndString
ResultVariable
Pattern
StartAt
CaseSensitive
ResultVariable
Format
ShowCommas
ResultVariable
NumChar
ResultVariable
ResultVariable
ResultVariable
ResultVariable
CharStart
NumChar
ResultVariable
NumRepeat
ResultVariable
Pattern
ReplaceString
CaseSensitive
ResultVariable
Pattern
CaseSensitive
ResultVariable
NumChar
ResultVariable
ResultVariable
ResultVariable
CharactersToTrim
ResultVariable
CharactersToTrim
ResultVariable
ResultVariable
S ys t e m
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
WndHandle
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Fontname
Permanent
RestorePointType
SequenceNum
Description
ResultVariable
ResultVariable
Fontname
Permanent
Separator
Start
End
ResultVariable
ResultVariable
Position
Value
Position
ResultVariable
Compare
ResultVariable
ResultVariable
Text
Append
Table
Append
NodeIndex
NodeIndex
NodeIndex
StartNodeIndex
Data
ResultVariable
StartNodeIndex
Text
ResultVariable
ParentNodeIndex
ResultVariable
ParentNodeIndex
ResultVariable
NodeIndex
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
NodeIndex
NodeData
ResultVariable
ResultVariable
ResultVariable
NodeIndex
Enabled
NodeIndex
Data
X
Y
Properties
NodeIndex
Width
Height
Visible
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Filename
PlayAutomatic
Loop
SeekType
SeekTime
Enabled
Fullscreen
X
Y
Properties
Width
Height
Visible
Volume
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
URL
DefaultPrinter
Enabled
X
Y
Properties
Width
Height
Visible
Method
ResultVariable
ResultVariable
ResultVariable
ResultVariable
MaskFile
FitToWindow
TransparentColor
InsertAfter
X
Y
Width
Height
Text
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ResultVariable
ButtonImage
Enabled
X
Y
Properties
Width
Height
State
Text
Visible
ElementName
ResultVariable
AttributeName
ResultVariable
ResultVariable
FullPaths
IncludeIndices
ResultVariable
ResultVariable
ResultVariable
ResultVariable
Text
InsertionMode
AttributeName
AttributeName
AttributeValue
Value
WriteCDATA
Files
IncludeFolderNames
Password
CompFactor
CallbackFunction
String
Percent
Status
Recurse
Files
Destination
Recurse
UseInternalFolders
Password
Overwrite
CallbackFunction
String
Percent
Status
IncludeFolderNames
ResultVariable
Ac t i o n s
D a t a b ase Ac t i o n s
< Anterior
|
Avançar >