espadax4 Posted April 28, 2024 Posted April 28, 2024 hi guys, i'm looking for some tips, guide, old code, that can help me to achieve my goal : - I want to retrieve the numbers under "Processeur" Zone (marked with yellow color) I thinked about PixelGetColor, PixelSearch .. but looking for something that extract the number directly from a zone in the screen. Thanks a lot
water Posted April 28, 2024 Posted April 28, 2024 Did you search the forum for "CPU usage"? You'll find a lot of examples. WMI allows to directly read the value(s) you are looking for. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
espadax4 Posted April 28, 2024 Author Posted April 28, 2024 Thanks water for the tip, i will look for that. For the retrieve data from screen directly, is there any function or api that retrieve text from screen directly (text recognition)?
water Posted April 28, 2024 Posted April 28, 2024 Never tried it myself. You could use the Window Info Tool that comes with AutoIt and see if MS uses a control accessible by AutoIt that holds the information. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
argumentum Posted April 28, 2024 Posted April 28, 2024 1 hour ago, espadax4 said: For the retrieve data from screen directly, is there.... Id: sidebar_cpu_util ( via UIA ). But you'd have to keep that window open. I have no experience with UIA so I can't code it. 1 hour ago, espadax4 said: Thanks water for the tip, i will look for that. Do look into that. Is the best ( or only really ) way to do it. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting
donnyh13 Posted April 29, 2024 Posted April 29, 2024 (edited) There is also this Not sure about anything to do with it. And specifically for what you are looking for, you can look here Edited April 29, 2024 by donnyh13 LibreOffice UDF Scite4AutoIt Spell-Checker Using LibreOffice WPS Office adapter — Use MS Word UDFs with WPS Office! LibreOffice API Inspector tools Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
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