Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
The problem is more likely that the object "Track" is not accessible to the scripts at that time. What you might want to do is check the mapping of the object, first, and make sure it is being accurately mapped to identify the Track object uniquely.
If that checks out, you might want to use a "WaitAliasChild" call to get your "Track" object before you call the click method. Something like
If that checks out, you might want to use a "WaitAliasChild" call to get your "Track" object before you call the click method. Something like
var TrackObj = Aliases.TMDS.frmMainMDI.MdiClient.frmDisplay2.WaitAliasChild("Track", 10000)
if (TrackObj.Exists) then
TrackObj,Click()
else Log.Warning("Track object does not exist")