Jump to content

how to get class name of snipper tool? - (Moved)


Jahar
 Share

Recommended Posts

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

  • Moderators

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

  • Moderators

@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

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

  • Moderators

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.

"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

  • Moderators

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...