Jump to content
Sign in to follow this  
zxc3

Check the text changes in the Сhrome window.

Recommended Posts

zxc3

Are there any examples of a script for Сhrome that allows you to check whether the information in the browser window has changed with a certain periodicity and signal this for 32-bit Windows.

Share this post


Link to post
Share on other sites
jdelaney

Do a 'Chrome' search on this site...specifically in the example scripts forum...plenty of UDFs devoted to just that.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
zxc3
6 hours ago, jdelaney said:

Do a 'Chrome' search on this site...specifically in the example scripts forum...plenty of UDFs devoted to just that.

Thanks for your reply. But I do not want to install an extension for Chrome. Are there any other options?

Share this post


Link to post
Share on other sites
jdelaney

Use Internet Explorer.  Or, copy the whole page, and do a regexp to find your text change. 

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
Earthshine
5 hours ago, zxc3 said:

Thanks for your reply. But I do not want to install an extension for Chrome. Are there any other options?

See FAQ 31, particularly IUIAutomation here

 

That is your recourse, or what @jdelaney said

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
zxc3
1 hour ago, jdelaney said:

Use Internet Explorer.  Or, copy the whole page, and do a regexp to find your text change. 

Thank you, it's interesting. And in more detail, how to do it. Only for Сhrome.

Share this post


Link to post
Share on other sites
Earthshine

so you are telling me you have not even google searched it before asking? 

google this "copy source of webpage in autoit"

i just tested a solution and it read my source from chrome. check it, from an old post, this will retrieve just the text, not the source, which is what I THINK you want, I am probably wrong

ConsoleWrite(_INetGetText('https://www.autoitscript.com/forum/') & @LF)

Func _INetGetText($sURL)
    Local $bStr = InetRead($sURL, 19)
    If @error Then
        Return SetError(1, 0, 0)
    EndIf

    Local $oHTML = ObjCreate("HTMLFILE")
    If @error Then Return SetError(2, 0, 0)

    $oHTML.Open()
    $oHTML.Write(BinaryToString($bStr))

    ; $oHTML....

    Return SetError(0, 0, $oHTML.Body.InnerText)
EndFunc ;==>_INetGetText

running that on the forum page I get this output

--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
Jump to content 



 
Existing user? Sign In   
  
Sign In



 
 
  
Remember me Not recommended on shared computers 
  
Sign in anonymously 

Sign In 

Forgot your password? 
Or sign in with one of these services


Sign in with Facebook 
Sign in with Microsoft 
Sign Up 
All Content  
All Content 




Advanced Search 
 
Browse 
Forums 
Downloads 
Guides 
Calendar 
Forum Rules 
More 
Wiki 
AutoIt Resources 
Release 
Installer 
Help file 
Editor 
Beta 
Installer 
Help file 
Editor 
Git 
More 
More 
All Activity 
Home 

Forums
General 
Announcements and Site News 
AutoIt releases and site announcements.
310 
posts 
 
AutoIt v3.3.14.3 Released 
By Jon 
6 hours ago 
Chat 
General chat for Active Members. Not accessible to guests or search engines.
172,478 
posts 
 
By AZJIO 
1 hour ago 
Administration 
User Moderation 
364 
posts 
 
Nikolas92 
By Melba23 
November 26, 2017 
AutoIt v3 
AutoIt Help and Support 
AutoIt General Help and Support 
AutoIt GUI Help and Support 
AutoItX Help and Support 
Old AutoIt v2 Help and Support 
Help and support for AutoIt. 
881,739 
posts 
 
Check the text changes in … 
By Earthshine 
10 minutes ago 
AutoIt Technical Discussion 
AutoIt Projects and Collaboration 
Technical discussions, betas, editors, help file, add-on tools, etc.
34,436 
posts 
 
is the new version of auto… 
By Melba23 
5 hours ago 
AutoIt Example Scripts 
Share your cool AutoIt scripts, UDFs and applications with others. 
158,076 
posts 
 
LCD Countdown Timer 
By Gattaca 
1 hour ago 
Scripting and Development 
Developer General Discussion 
General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. 
3,066 
posts 
 
what is a GUI you think of… 
By rcmaehl 
18 hours ago 
Language Specific Discussion 
PowerShell 
C# / .NET 
C++ / C / Win32 
VBScript 
JavaScript 
SQL 
Misc 
Common IT Admin-related languages have their own forums. Feel free to post about any other language in the Misc forum.
2,538 
posts 
 
Coded UI projects rule 
By Earthshine 
Tuesday at 04:23 PM 
IT Administration 
Operating System Deployment 
Microsoft Deployment Toolkit 
System Center Configuration Manager 
OS deployment and related technologies.
93 
posts 
 
Windows Pocess Database 
By satanico64 
January 15 
Windows Client 
Windows client and related technologies (Windows 10, 8, 7, XP, VDI, App-V, etc).
548 
posts 
 
Is that a Browser or Serve… 
By JLogan3o13 
December 20, 2017 
Windows Server 
Windows Server and related technologies (AD, Group Policy, etc).
76 
posts 
 
connect to new wifi networ… 
By JLogan3o13 
January 18 
Office 
Microsoft Office and related technologies (Office ProPlus, 365, deployment, etc).
243 
posts 
 
How To Make More Money As … 
By JLogan3o13 
January 12 
Who's Online   56 Members, 4 Anonymous, 932 Guests (See full list) 
AdamUL 
BrewManNH 
water 
Earthshine 
zaraijamel 
Melba23 
argumentum 
abdulrahmanok 
KiloLima 
krista611 
c.haslam 
SchneiMi 
Jasp402 
monter 
jordanrenault 
Moonscarlet 
smartkey 
Zedna 
WB123 
maniootek 
KarlosTHG 
JuanFelipe 
ChrisL 
funkey 
jpm 
Jfish 
rcmaehl 
mohanad4egy 
Ganreizu 
Autom8 
Pretend2Script 
gonzo070777 
Gattaca 
kalucas 
Wolfteeth 
Danp2 
qwert 
xHappyEnding 
genius257 
Corleone221 
TheSlig 
000000000 
ViciousXUSMC 
BrunoJ 
youtuber 
zxc3 
cbs803 
milos83 
jchd 
Danyfirex 
Bert 
Juvigy 
NguyenLe 
weirddave 
MLPerez007 
ArC 
General Statistics
169,270
Total Topics 
1,287,880
Total Posts 
72,851
Total Members 
4,882
Most Online 
 
Newest Member
tonycnx
Joined 02/02/2018 12:33 PM 
 
Popular Now
 
7
Browse a Intenet Webpage in a hidden mode 
By jordanrenault
Started 7 hours ago 
Latest Topic Updates
 
6
Check the text changes in the Сhrome window. 
By zxc3
Started 23 hours ago 
 
14
_ArraySort lacks ability to compare case-sensitively 
By c.haslam
Started 20 hours ago 
 
7
Browse a Intenet Webpage in a hidden mode 
By jordanrenault
Started 7 hours ago 
 
4
GUICtrlCreateTabItem("") Not working? 
By rcmaehl
Started 19 hours ago 
 
5
LCD Countdown Timer 
By timmy2
Started October 29, 2013 
Latest Files Updates
 
AD - Active Directory UDF
By water






   6941   5 
 
cDebug.au3
By c.haslam






   52   0 
 
OutlookEX
By water






   3289   0 
 
Beats Player
By careca






   1588   0 
 
UninstallByShortcut
By careca






   22   0 
All Activity 
Home 
Theme 
AutoIt (Default) 
AutoIt (Round Avatars) 
AutoIt (Forced Desktop View) 
AutoIt (Dark) 
Privacy Policy 
Contact Us 
Community Software by Invision Power Services, Inc. 
× 
Existing user? Sign In 
Sign Up 
Browse
Back 
Browse 
Forums 
Downloads 
Guides 
Calendar 
Forum Rules 
Wiki 
AutoIt Resources
Back 
Release
Back 
Installer 
Help file 
Editor 
Beta
Back 
Installer 
Help file 
Editor 
Git 
+>10:52:05 AutoIt3.exe ended.rc:0
+>10:52:05 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.091

 

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
zxc3
On 02.02.2018 at 6:41 PM, Earthshine said:

so you are telling me you have not even google searched it before asking? 

google this "copy source of webpage in autoit"

i just tested a solution and it read my source from chrome. check it, from an old post, this will retrieve just the text, not the source, which is what I THINK you want, I am probably wrong

ConsoleWrite(_INetGetText('https://www.autoitscript.com/forum/') & @LF)

Func _INetGetText($sURL)
    Local $bStr = InetRead($sURL, 19)
    If @error Then
        Return SetError(1, 0, 0)
    EndIf

    Local $oHTML = ObjCreate("HTMLFILE")
    If @error Then Return SetError(2, 0, 0)

    $oHTML.Open()
    $oHTML.Write(BinaryToString($bStr))

    ; $oHTML....

    Return SetError(0, 0, $oHTML.Body.InnerText)
EndFunc ;==>_INetGetText

running that on the forum page I get this output

--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
Jump to content 



 
Existing user? Sign In   
  
Sign In



 
 
  
Remember me Not recommended on shared computers 
  
Sign in anonymously 

Sign In 

Forgot your password? 
Or sign in with one of these services


Sign in with Facebook 
Sign in with Microsoft 
Sign Up 
All Content  
All Content 




Advanced Search 
 
Browse 
Forums 
Downloads 
Guides 
Calendar 
Forum Rules 
More 
Wiki 
AutoIt Resources 
Release 
Installer 
Help file 
Editor 
Beta 
Installer 
Help file 
Editor 
Git 
More 
More 
All Activity 
Home 

Forums
General 
Announcements and Site News 
AutoIt releases and site announcements.
310 
posts 
 
AutoIt v3.3.14.3 Released 
By Jon 
6 hours ago 
Chat 
General chat for Active Members. Not accessible to guests or search engines.
172,478 
posts 
 
By AZJIO 
1 hour ago 
Administration 
User Moderation 
364 
posts 
 
Nikolas92 
By Melba23 
November 26, 2017 
AutoIt v3 
AutoIt Help and Support 
AutoIt General Help and Support 
AutoIt GUI Help and Support 
AutoItX Help and Support 
Old AutoIt v2 Help and Support 
Help and support for AutoIt. 
881,739 
posts 
 
Check the text changes in … 
By Earthshine 
10 minutes ago 
AutoIt Technical Discussion 
AutoIt Projects and Collaboration 
Technical discussions, betas, editors, help file, add-on tools, etc.
34,436 
posts 
 
is the new version of auto… 
By Melba23 
5 hours ago 
AutoIt Example Scripts 
Share your cool AutoIt scripts, UDFs and applications with others. 
158,076 
posts 
 
LCD Countdown Timer 
By Gattaca 
1 hour ago 
Scripting and Development 
Developer General Discussion 
General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. 
3,066 
posts 
 
what is a GUI you think of… 
By rcmaehl 
18 hours ago 
Language Specific Discussion 
PowerShell 
C# / .NET 
C++ / C / Win32 
VBScript 
JavaScript 
SQL 
Misc 
Common IT Admin-related languages have their own forums. Feel free to post about any other language in the Misc forum.
2,538 
posts 
 
Coded UI projects rule 
By Earthshine 
Tuesday at 04:23 PM 
IT Administration 
Operating System Deployment 
Microsoft Deployment Toolkit 
System Center Configuration Manager 
OS deployment and related technologies.
93 
posts 
 
Windows Pocess Database 
By satanico64 
January 15 
Windows Client 
Windows client and related technologies (Windows 10, 8, 7, XP, VDI, App-V, etc).
548 
posts 
 
Is that a Browser or Serve… 
By JLogan3o13 
December 20, 2017 
Windows Server 
Windows Server and related technologies (AD, Group Policy, etc).
76 
posts 
 
connect to new wifi networ… 
By JLogan3o13 
January 18 
Office 
Microsoft Office and related technologies (Office ProPlus, 365, deployment, etc).
243 
posts 
 
How To Make More Money As … 
By JLogan3o13 
January 12 
Who's Online   56 Members, 4 Anonymous, 932 Guests (See full list) 
AdamUL 
BrewManNH 
water 
Earthshine 
zaraijamel 
Melba23 
argumentum 
abdulrahmanok 
KiloLima 
krista611 
c.haslam 
SchneiMi 
Jasp402 
monter 
jordanrenault 
Moonscarlet 
smartkey 
Zedna 
WB123 
maniootek 
KarlosTHG 
JuanFelipe 
ChrisL 
funkey 
jpm 
Jfish 
rcmaehl 
mohanad4egy 
Ganreizu 
Autom8 
Pretend2Script 
gonzo070777 
Gattaca 
kalucas 
Wolfteeth 
Danp2 
qwert 
xHappyEnding 
genius257 
Corleone221 
TheSlig 
000000000 
ViciousXUSMC 
BrunoJ 
youtuber 
zxc3 
cbs803 
milos83 
jchd 
Danyfirex 
Bert 
Juvigy 
NguyenLe 
weirddave 
MLPerez007 
ArC 
General Statistics
169,270
Total Topics 
1,287,880
Total Posts 
72,851
Total Members 
4,882
Most Online 
 
Newest Member
tonycnx
Joined 02/02/2018 12:33 PM 
 
Popular Now
 
7
Browse a Intenet Webpage in a hidden mode 
By jordanrenault
Started 7 hours ago 
Latest Topic Updates
 
6
Check the text changes in the Сhrome window. 
By zxc3
Started 23 hours ago 
 
14
_ArraySort lacks ability to compare case-sensitively 
By c.haslam
Started 20 hours ago 
 
7
Browse a Intenet Webpage in a hidden mode 
By jordanrenault
Started 7 hours ago 
 
4
GUICtrlCreateTabItem("") Not working? 
By rcmaehl
Started 19 hours ago 
 
5
LCD Countdown Timer 
By timmy2
Started October 29, 2013 
Latest Files Updates
 
AD - Active Directory UDF
By water






   6941   5 
 
cDebug.au3
By c.haslam






   52   0 
 
OutlookEX
By water






   3289   0 
 
Beats Player
By careca






   1588   0 
 
UninstallByShortcut
By careca






   22   0 
All Activity 
Home 
Theme 
AutoIt (Default) 
AutoIt (Round Avatars) 
AutoIt (Forced Desktop View) 
AutoIt (Dark) 
Privacy Policy 
Contact Us 
Community Software by Invision Power Services, Inc. 
× 
Existing user? Sign In 
Sign Up 
Browse
Back 
Browse 
Forums 
Downloads 
Guides 
Calendar 
Forum Rules 
Wiki 
AutoIt Resources
Back 
Release
Back 
Installer 
Help file 
Editor 
Beta
Back 
Installer 
Help file 
Editor 
Git 
+>10:52:05 AutoIt3.exe ended.rc:0
+>10:52:05 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.091

 

Thanks, but it does not work for me. What does it take to make it work?

Share this post


Link to post
Share on other sites
Earthshine
Posted (edited)

have you tried running as administrator? What operating system are you using? What version of AutoIt? etc. need more input.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
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
Sign in to follow this  

  • Similar Content

    • stafe
      By stafe
      Hello
      I am trying to get chrome to save it's current webpage to a pdf using autoit.  I wold like to save the file into a folder on the desktop called "ChromeFiles" .  However when I use the send command chrome only occasionally responds.
      Thank you
      Simon
       
    • nooneclose
      By nooneclose
      I want to check some Excel data against data on a website in Chrome. I use Chrome because the site I use does not function properly in Internet Explorer or Firefox. I know how to do the Excel stuff I just can not figure out how to send to Chrome, let alone check to see if the data matches or not. I am also having trouble finding any help online while searching for Chrome functions for Autoit. I have a Chrome UDF installed but I still can not figure out how to get my code to properly function. (I am not posting code because I am  sure my code isn't right, to begin with)
      As usual, any and all help would be greatly appreciated. 
    • rudi
      By rudi
      Hello,
      usually I do Win automations, so I have no skills at all to handle HTML forms :-/
      The script to catch and syntax check  the required information from Excel is done.
      Now I'd like to automate the upload using this form, too:
       
      http://flashcardsdeluxe.com/flashcards/Upload.aspx
      What browser is easiest to do so? (IE, Chrome, FF) The Values $DeckCode, $DeckName, $DeckDefinition shall go to their HTML form fields finally "click" the button "upload flashcards" <table width="70%" class="cssCenter" border="0"> <tr> <td style="width: 1%">Deck&nbsp;Code</td> <td style="width: 100%"><input name="ctlDeckCode" type="text" id="ctlDeckCode" style="width:50%;" /> (no spaces allowed)</td> <td></td> </tr> <tr> <td style="width: 1%">Deck&nbsp;Name</td> <td style="width: 100%"><input name="ctlDeckName" type="text" id="ctlDeckName" style="width:50%;" /> (optional)</td> <td style="width: 1%" align="right"><input type="submit" name="ctlUpload" value="Upload Flashcards" id="ctlUpload" /></td> </tr> <tr> <td valign="top" style="padding-top: 5px" >Flashcard&nbsp;Text</td> <td colspan="2"><textarea name="ctlFlashcardText" rows="2" cols="20" id="ctlFlashcardText" style="height:280px;width:100%;"></textarea></td> </tr> </table> If someone kindly could jump in showing how to address just one of the input fields and how to "click" the "upload flashcards" button, I should be able to do the rest myself.
      TIA, Rudi.

    • TheWizEd
      By TheWizEd
      It seems AutoIt for Chrome is no longer working.  It's not in Google Store so not able to enable.  I can download the crx and drag to chrome but I can't figure out any way to enable the extension.
    • fenhanxue
      By fenhanxue
      Q 1:
      How to judge whether the Chrome has been installed. How to get the complete route of chrome if it is installed?

      Q 2:
      How to judge whether the Adobe Flash Player has been installed.
×