serkan Posted January 21, 2021 Share Posted January 21, 2021 Hello friends. What I want to do. I want it to detect numbers in the x y coordinate in a certain part of the screen. The numbers are constantly changing, and I want them to keep them in memory. How can I make it perceive these numbers? For example, where the autoit forum logo is, there are numbers and it is constantly changing.,, This number will appear constantly on the panel. Example https://www.autoitscript.com/forum/topic/112865-solved-create-panel-control/ such a panel. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 21, 2021 Moderators Share Posted January 21, 2021 serkan, Welcome to the AutoIt forums. From what kind of application are you trying to read these numbers? Does the AutoIt Window Info tool offer any indications of the type of control which holds them? Perhaps a screenshot of the app would help. Please help us to help you. M23 serkan 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
serkan Posted January 21, 2021 Author Share Posted January 21, 2021 It will detect the number from Google Chrome or Internet Explorer edge website. Link to comment Share on other sites More sharing options...
Danp2 Posted January 21, 2021 Share Posted January 21, 2021 Please be more specific. Why are these numbers constantly changing and what do they represent? Can you provide a URL so that we can take a look at the site? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
serkan Posted January 21, 2021 Author Share Posted January 21, 2021 6 minutes ago, Danp2 said: Please be more specific. Why are these numbers constantly changing and what do they represent? Can you provide a URL so that we can take a look at the site? https://covid19asi.saglik.gov.tr/ The number of vaccines changes very rapidly during daylight hours. Link to comment Share on other sites More sharing options...
Danp2 Posted January 21, 2021 Share Posted January 21, 2021 Here's one way to do it without using a browser -- #include <InetConstants.au3> #include <StringConstants.au3> #include <Array.au3> Local $sHTML = BinaryToString(InetRead("https://covid19asi.saglik.gov.tr/", $INET_FORCERELOAD)) Local $aMatch = StringRegExp($sHTML, "(?:var asiyapilankisisayisi = )(.*);", $STR_REGEXPARRAYMATCH) _ArrayDisplay($aMatch) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
serkan Posted January 21, 2021 Author Share Posted January 21, 2021 28 minutes ago, Danp2 said: Here's one way to do it without using a browser -- #include <InetConstants.au3> #include <StringConstants.au3> #include <Array.au3> Local $sHTML = BinaryToString(InetRead("https://covid19asi.saglik.gov.tr/", $INET_FORCERELOAD)) Local $aMatch = StringRegExp($sHTML, "(?:var asiyapilankisisayisi = )(.*);", $STR_REGEXPARRAYMATCH) _ArrayDisplay($aMatch) I'm asking to find out how did you get this value? Link to comment Share on other sites More sharing options...
Danp2 Posted January 21, 2021 Share Posted January 21, 2021 6 minutes ago, serkan said: I'm asking to find out how did you get this value? Right... did you try running the code I posted? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
serkan Posted January 21, 2021 Author Share Posted January 21, 2021 1 minute ago, Danp2 said: Right... did you try running the code I posted? Yes it works thanks. But my goal is to learn, not to be ready. mLipok 1 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 21, 2021 Moderators Share Posted January 21, 2021 (edited) serkan, Quote But my goal is to learn What a pleasure to hear you say that! M23 30k Edited January 21, 2021 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Danp2 Posted January 21, 2021 Share Posted January 21, 2021 2 minutes ago, serkan said: Yes it works thanks. But my goal is to learn, not to be ready. If you want to learn how to grab this data from the browser, then suggest that you check out the Webdriver UDF (see my signature) 1 minute ago, Melba23 said: 30k Congrats! 🚀🎉🥳🎆 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
serkan Posted January 21, 2021 Author Share Posted January 21, 2021 18 minutes ago, Danp2 said: If you want to learn how to grab this data from the browser, then suggest that you check out the Webdriver UDF (see my signature) Congrats! 🚀🎉🥳🎆 I'm sorry but I didn't understand much. 😮 Link to comment Share on other sites More sharing options...
Nine Posted January 21, 2021 Share Posted January 21, 2021 23 minutes ago, Melba23 said: 30k “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
serkan Posted January 21, 2021 Author Share Posted January 21, 2021 25 minutes ago, Melba23 said: 30k Melba23 your 30k got ahead of my issue. 😀 Link to comment Share on other sites More sharing options...
Davidowicza Posted January 21, 2021 Share Posted January 21, 2021 @serkan, Simple explaination of Danp2's script: #include <InetConstants.au3> #include <StringConstants.au3> #include <Array.au3> Local $sHTML = BinaryToString(InetRead("https://covid19asi.saglik.gov.tr/", $INET_FORCERELOAD)) ;Grab the websites HTML and put it all inside of a string variable Local $aMatch = StringRegExp($sHTML, "(?:var asiyapilankisisayisi = )(.*);", $STR_REGEXPARRAYMATCH) ;Using RegEx patterns, search through the string and grab the number you need _ArrayDisplay($aMatch) Now if you don't want to learn RegEx (I can't even comprehend how insane some of them are), Danp2 suggest you use his Webdriver UDF (User Defined Function) in his signature. It is a super useful and simple tool to navigate and/or grab information from Chrome or Edge browser. If you want to learn and not just get, click the links in @Danp2's signature and read up. 😃 👍 pixelsearch 1 Link to comment Share on other sites More sharing options...
caramen Posted January 22, 2021 Share Posted January 22, 2021 (edited) As one of the best beginner here 😛 I think I could provide some help here. to understand what does a function, or some lines. You could always try to figure out the result in most of the cases that is called the « return ». for exemple you could use here consolewrite to check. That will help you a lot to understand what you do. When. Where. All that are related to debuging. Try. Edited January 22, 2021 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki 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