It_is_me_Me Posted July 19, 2021 Posted July 19, 2021 I am writing codes where there are same windows showing up. That window can be accessed using two communications: TCP and Serial comm. Both communications have same window when I tried to access it but the class name is different for Serial and for TCP. I would like to make an IF statement using the CLASS name of Basic control info but unable to find one. Can we do that? Thanks.
Solution JockoDundee Posted July 19, 2021 Solution Posted July 19, 2021 Like this? If WinExists("[CLASS:Notepad]") Then Code hard, but don’t hard code...
It_is_me_Me Posted July 19, 2021 Author Posted July 19, 2021 @JockoDundee, Yes, that's what I'm looking. It works in my code. Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now