Forum Discussion
kalldrexx
15 years agoContributor
Thanks for the reply.
I have a hack workaround working so far, which involves using the real object's WaitVCLObject when I want to see if something exists or not, since WaitVCLObject and WaitWindow actually works correctly. Unfortunately, this means I am asking if a VCLObject exists and then instantiating an alias, which looks kind of confusing.
The proper workaround I have in mind, which I am going to try to code up this afternoon, is creating a c# method that will take in a VCLObject, call WaitVCLObject to determine if the object exists within the timeout. If it does then return the alias based off the object's MappedName. The only issue that I foresee is I'm not sure if it's possible to create an Alias object from the full mapped name with the TC API (e.g. translate the MappedName property of "Aliases.WinRDE.fmMain" into a C# Aliases["WinRDE"]["fmMain"] object).
I have a hack workaround working so far, which involves using the real object's WaitVCLObject when I want to see if something exists or not, since WaitVCLObject and WaitWindow actually works correctly. Unfortunately, this means I am asking if a VCLObject exists and then instantiating an alias, which looks kind of confusing.
The proper workaround I have in mind, which I am going to try to code up this afternoon, is creating a c# method that will take in a VCLObject, call WaitVCLObject to determine if the object exists within the timeout. If it does then return the alias based off the object's MappedName. The only issue that I foresee is I'm not sure if it's possible to create an Alias object from the full mapped name with the TC API (e.g. translate the MappedName property of "Aliases.WinRDE.fmMain" into a C# Aliases["WinRDE"]["fmMain"] object).
Related Content
- 8 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 7 days ago