ContributionsMost RecentMost LikesSolutionsRe: "action on zero-sized window" error performing action on object for the second time. To add a bit more context, see the screenshot below. The Object Browser shows that the object is not showing the same way as before. Re: "action on zero-sized window" error performing action on object for the second time. Apologies, I am using incorrect terminology. I should avoid the word "mapping". What I am doing is clicking on a control, moving on to the next test without restarting the application being tested, and then attempting to click on the control again. I am not mapping this control, I am using FindChild to access it both times. The second time I attempt to click it I get the following: When I inspect the control in ObjectBrowser, it exists, but it has a ControlIndex andControlIndexInGroup of -1. It also has a Height and Width of zero, as well as ScreenLeft and ScreenWidth of zero. Re: Any good ways for comparing two floats? I found a solution. I rounded down both numbers to the acceptable decimal places before comparing. 🙂 "action on zero-sized window" error performing action on object for the second time. Hi, I have seen a lot of"action on zero-sized window" errors online, but non that fits my specific case. There are only a few controls in the WinForms app I am testing that cause this to happen. It seems to happen if I map a control once, and then map it again later on in the test. The mapping code is the same each time it happens. I am wondering is there any way of disposing of the object that I'm mapping the control to, so that next time it comes around to do the same thing, it is like the first time it's doing it? I have tried Refresh(), RefreshMappingInfo() does not apply to my test, and I've also added a big delay to ensure that it's not my script running faster than the controls are rendering. Any help would be greatly appreciated. NOTE: I don't have this problem if the app I'm testing is closed and then reopened before the second time it maps the control. Thanks! Sorry I can't give any more info. IT's a tough one to describe! 🙂 Any good ways for comparing two floats? HI, I am reading cells from two different excel files and comparing the values in them. For one cell, the values I am comparing are399.99999998 and399.99999999. I would like to compare both numbers, and if the difference is greater than 0.0000001, ignore the difference. The problem I am having is, when I get the ABS of num1 - num2, this gives me1.0000007933E-8. Is there any good way to compare floats without getting E numbers? I am using vbscript. Thanks in advance! 🙂 SolvedRe: How do I get "Tags" working for my scripts? EDIT: After perusing the release notes, I see the problem. Tags were only introduced in 14.20.https://support.smartbear.com/testcomplete/docs/general-info/version-history/features-added-to-ver-14-20.html#tags Thanks for pointing me in the right direction Alex! 🙂 ------------------------------------------------------------------------------------------------------------------------------- Hi Alex, Thanks for the response. I am using TC version 14.10.1042.7. I have saved the project with the tags included, but still they do not show like in your screenshot. 😞 I will upgrade to 14.50 and see if that makes a difference. Thanks! How do I get "Tags" working for my scripts? Hi all, I seem to be struggling to get tags to work for my scripts. I have added the tag before the sub: but it does not appear for me in any of the locations as seen in the documentation.https://support.smartbear.com/testcomplete/docs/scripting/tags.html?sbsearch=tags e.g. Does not appear when I right click on a project and hover over Run (the documentation has another context menu popping out from this with all the tags available). Also does not appear when selecting a test for a particular test item on a project page. If it's relevant...I do not have Keyword tests in any of my projects, but do have the plugins installed. Thanks in advance for any help 🙂 Solved