9 posts in this topic
I've run into something peculiar, which I haven't been able to find more info on with the search.
The issue is a dropdownbox-control which I want to click, in a .NET program. The Class changes for everytime it is run.
When I do a normal ControlClick, nothing happens and it exits with 0.
I tried ControlClick referencing the control with [NAME:] and/or with [TEXT:] but that does not work.
However, if right before the ControlClick, I do a ControlGetHandle statement, then the ControlClick will suddenly work after all...
The window title stays the same, and there is only 1 control with that text.
ControlClick("Navigator","","[TEXT:Raster]") does not work. Returns with 0.
ControlGetHandle("Navigator","","[TEXT:Raster]") Returns with 1.
ControlClick("Navigator","","[TEXT:Raster]") works and returns with 1.
Why is this happening?
I'm glad it works, but I get the feeling I'm doing something in a wrong way.