zxc3 Posted June 2, 2021 Share Posted June 2, 2021 I need a script that beeps when a particular word disappears from the chrome page. For example, the words - "ohhhh". And refreshing the chrome page every 10 seconds. Link to comment Share on other sites More sharing options...
Nine Posted June 2, 2021 Share Posted June 2, 2021 Depends how you want to skin this cat. Depends on the Web Page. Depends if it is an object or an image. Depends.... What have you tried so far ? Make a screen capture of the whole page, and post it here. Have you look at WebDriver or UIAutomation UDFs ? “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...
zxc3 Posted June 2, 2021 Author Share Posted June 2, 2021 (edited) This word can be found by pressing the search on F3, when the word disappears, I need to react. 7 minutes ago, Nine said: Depends how you want to skin this cat. Depends on the Web Page. Depends if it is an object or an image. Depends.... What have you tried so far ? Make a screen capture of the whole page, and post it here. Have you look at WebDriver or UIAutomation UDFs ? Edited June 2, 2021 by zxc3 Link to comment Share on other sites More sharing options...
Nine Posted June 2, 2021 Share Posted June 2, 2021 Use InetRead to get the page, then search the word you want with StringInStr or StringRegExp “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...
zxc3 Posted June 2, 2021 Author Share Posted June 2, 2021 21 minutes ago, Nine said: Используйте InetRead, чтобы получить страницу, затем найдите нужное слово с помощью StringInStr или StringRegExp I need for chrome. I can't work in the explorer. Link to comment Share on other sites More sharing options...
Nine Posted June 2, 2021 Share Posted June 2, 2021 InetRead is http based ! See WebDriver for chrome automation. And please do not quote what I just said, especially if it is in an other language than english. Just use reply box at the end of the thread. JockoDundee 1 “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...
Moderators JLogan3o13 Posted June 2, 2021 Moderators Share Posted June 2, 2021 @zxc3 You keep explaining what you need, but have yet to show what you've tried on your own. This is not a fast food restaurant where you order and someone writes your script for you. You have already received several good suggestions; for your next post please show what effort you have put in, what you have tried, and where you're having problems. Then we can assist you in moving forward. "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...
JockoDundee Posted June 2, 2021 Share Posted June 2, 2021 3 hours ago, Nine said: And please do not quote what I just said, especially if it is in an other language than english... Sacré bleu! Le français n'est pas autorisé ? pseakins 1 Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
zxc3 Posted June 3, 2021 Author Share Posted June 3, 2021 19 hours ago, Nine said: InetRead is http based ! See WebDriver for chrome automation. And please do not quote what I just said, especially if it is in an other language than english. Just use reply box at the end of the thread. #include <MsgBoxConstants.au3> Example() Func Example() ; Read the file without downloading to a folder. The option of 'get the file from the local cache' has been selected. Local $dData = InetRead("https://gmail.com") ; The number of bytes read is returned using the @extended macro. Local $iBytesRead = @extended ; Convert the ANSI compatible binary string back into a string. Local $sData = BinaryToString($dData) ; Display the results. MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & $iBytesRead) ; Retrieve the character position of where the string 'white' first occurs in the sentence. Local $iPosition = StringInStr($dData, "available") MsgBox($MB_SYSTEMMODAL, "", "The search string 'available' first appears at position: " & $iPosition) EndFunc ;==>Example My $iPosition is always 0, although this word is on the page. I don't need an interface to this site, etc. I need to make it work, but I can't find the word. Link to comment Share on other sites More sharing options...
Nine Posted June 3, 2021 Share Posted June 3, 2021 You are using $dData for the search string which is wrong. You need to use $sData instead and it will work. Like I already told you, DO NOT quote everything I said, I know what I have told you. It makes the thread cumbersome for nothing. Also please use this tool, when you post code. Thanks for your cooperation. “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...
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