So, I'm browsing through the MS Scripting Help file and stumble upon a statement I forgot about completely... from back in my Access days. I opened up Builder and found the With Statement works really well in DesktopX. I'm not using the vbscript tags because the seemed be striping the formatting.
With object
statements
End With
Using it from within an object:
Sub MySub
'--Changes object size
With Object
.Height = 128
.Width = 128
.ToolTipText = "This is My Object"
End With
End Sub
Referencing another object:
Sub MySub
'--Changes object size
With DesktopX.Object("AnotherObject")
.Height = 128
.Width = 128
.ToolTipText = "This is My Object"
End With
End Sub
Within the timer function I found this to work also:
Sub Object_OnTimer100
'--Grows the object until timer is killed
With Object
.Height = .Height + 20
.Width = .Width + 20
End With
End Sub