Jahar Posted November 28, 2018 Share Posted November 28, 2018 After my OS update, there is a change in class name of snipper tool. Earlier the code has "[CLASS:Microsoft-Windows-Tablet-SnipperEditor]" . Please help me, how to get new class name of snipping tool. I am new to autoit. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 28, 2018 Moderators Share Posted November 28, 2018 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 28, 2018 Moderators Share Posted November 28, 2018 @Jahar try using the AutoIt Window Info Tool (in the same directory where you installed AutoIt). Use the Finder Tool and hover over the Snipping Tool window. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Jahar Posted November 28, 2018 Author Share Posted November 28, 2018 15 minutes ago, JLogan3o13 said: @Jahar try using the AutoIt Window Info Tool (in the same directory where you installed AutoIt). Use the Finder Tool and hover over the Snipping Tool window. Thanks, I got it. i have multiple systems of windows 10. those systems in which there was some update,class of snipper tool got changed. How to code this accordingly. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 28, 2018 Moderators Share Posted November 28, 2018 Your code would be helpful, rather than guessing at exactly what you are doing. There are a couple of ways you could go about it; you can loop through the builds you have in place with @OSBuild, and use that to select the correct classname, or you could loop through the possible classnames and check for the existence of a window that matches. Abo-Mota 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Jahar Posted November 28, 2018 Author Share Posted November 28, 2018 @JLogan3o13 i have code like: If WinActive("[CLASS:Microsoft-Windows-Tablet-SnipperEditor]") now i have to consider [CLASS:Microsoft-Windows-SnipperEditor] too. How i will put "or" condition Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 28, 2018 Moderators Share Posted November 28, 2018 @Jahar the help file is your friend. You already have in mind what you need to do, put in an or condition. So look up Language Reference - Operators >> Or in the help file. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Jahar Posted November 28, 2018 Author Share Posted November 28, 2018 thanks a lot Link to comment Share on other sites More sharing options...
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