Jump to content

Check the text changes in the Сhrome window.


zxc3
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 1 month later...

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

×
×
  • Create New...