Jump to content
seangriffin

Chrome UDF

Recommended Posts

joboy2k

You don't need to change the file extension to zip. Download WinRAR and open the crx straight with that. i did this today so it definitely works. Then once it has been extracted follow the previous post from number 4.

Share this post


Link to post
Share on other sites
Chamlien

It's nice, help me a lot! This chrome udf can be used to write HTML as well as you can.  I recommend the author to post the  Chrome.crx  to Google App Store, cause the Google Browser will disable the crx for non-official.

Share this post


Link to post
Share on other sites
Schlauewurst

So i just want to open "https://www.youtube.com/my_live_events" and create a new event.
my code so far..

It didnt click on the Button "new Lifestream".

Any Solutions?

Quote

#Include <Array.au3>
#Include <Chrome.au3>


_ChromeStartup("https://www.youtube.com/my_live_events")

_ChromeDocWaitForReadyStateCompleted(5)
_ChromeInputClickByName("new-events-btn")

 

Share this post


Link to post
Share on other sites
water

I haven't worked with the Chrome UDF myself but I see that your code doesn't have any error checking.
Make sure, that none of the _Chrome* functions returns an error before calling the next one.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
boy233

Is there no Chrome UDF in the same pattern as Internet Explore?
Could not use the existing, I managed to only function to open the Browser! :(

Share this post


Link to post
Share on other sites
water

Why do you think the Chrome UDF should work the same way as the IE UDF does?
This are two different programs coded by different companies.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
boy233

I'm trying to say that UDF Chrome does not work 100%!
Is there any similar I can use?

Share this post


Link to post
Share on other sites
Jos
4 minutes ago, boy233 said:

I'm trying to say that UDF Chrome does not work 100%!

That must be because your line 15 is the wrong syntax! ;)

Seriously: Not sure what kind of answer you did expect but what about explaining what you are trying to do, show your code and tell us what isn't working?

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
boy233
24 minutes ago, Jos said:

That must be because your line 15 is the wrong syntax! ;)

Seriously: Not sure what kind of answer you did expect but what about explaining what you are trying to do, show your code and tell us what isn't working?

Jos

That's not the problem!

_ChromeShutdown()
_ChromeStartup("http://www.google.com")
_ChromeDocWaitForExistenceByTitle("Google", 10)
_ChromeObjSetValueByName("f", "Auto IT")


Does not display error and does not work!

Share this post


Link to post
Share on other sites
Jos

So have you followed the whole process described in the initial post?
If so, post a simple test script that you test with and isn't working.

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
boy233
1 hour ago, Jos said:

So have you followed the whole process described in the initial post?
If so, post a simple test script that you test with and isn't working.

Jos

 Follow....

#include <Chrome.au3>

;~ _ChromeShutdown()
_ChromeStartup("http://www.google.com")
_ChromeDocWaitForExistenceByTitle("Google", 10)
_ChromeObjSetValueByName("f", "Auto IT")

Does not work! What am I doing wrong?

Share this post


Link to post
Share on other sites
n3wbie
On 7/4/2017 at 8:24 PM, boy233 said:

I'm trying to say that UDF Chrome does not work 100%!
Is there any similar I can use?

I Was working on chromedriver.exe made a new udf 

you can try and let me know errors will try to solve it

link to udf goes here

 

Share this post


Link to post
Share on other sites
DeltaRocked

Greetings Sean !!!

1: Great UDF :) ( Chrome Version 49.0.2623.112 m, OS: W2k3 ) Beyond this version Chrome wouldn't be updated due to W2k3.

Now for the Core Issue:
 

_ChromeEval("document.getElementsByClassName('input-search')")
Output : {"text":"object"}

It seems the extension will have to be modified. Any other ideas ?

Regards

DR

Share this post


Link to post
Share on other sites
Bhooshan

Hello there, 

I have installed everything correctly while installing I faced a problem that Chrome use to disable the plugin automatically because it was not downloaded from chrome store. I solved that issue. Now, whatever script I write or the above examples "Chrome_example.au3" are not working. It just opens the chrome window and reaches to the URL. No other actions are performed. Can anyone tell me why is this so...? 

Share this post


Link to post
Share on other sites
BigKev

How do I get the AutoIt Chrome Extension to enable itself?  By default, Chrome disables anything not downloaded from the Store.  As soon as I click on the "Allow access to file URL's" checkbox it disables itself and says it's not from the Chrome Web Store.

Edited by BigKev

Share this post


Link to post
Share on other sites
billyzhao

How can i get page source of a url ?

Share this post


Link to post
Share on other sites
dman1234
On 8/1/2017 at 2:01 AM, DeltaRocked said:

Greetings Sean !!!

1: Great UDF :) ( Chrome Version 49.0.2623.112 m, OS: W2k3 ) Beyond this version Chrome wouldn't be updated due to W2k3.

Now for the Core Issue:
 

_ChromeEval("document.getElementsByClassName('input-search')")
Output : {"text":"object"}

It seems the extension will have to be modified. Any other ideas ?

Regards

DR

Not sure what you are trying to actually do, but it is returning what I would expect as this is what javascript would give you in this instance.

Share this post


Link to post
Share on other sites
dman1234
On 12/8/2017 at 5:40 AM, billyzhao said:

How can i get page source of a url ?

You basically need to learn javascript, but something like this I think is what you need  

$returnval = _ChromeEval("document.documentElement.innerHTML", 5)

 

Share this post


Link to post
Share on other sites
dman1234

Hi all, I am not sure of something and I am a little new to AutoIT3 so I don't know if this is an AutoIT thing or something changed with Chrome.

All of the samples will run code similar to  
 

_ChromeDocWaitForExistenceByTitle("Google", 10)

When running and coding things I noticed the code was all taking 10 second every time, so after playing around I realized that I need to code it like this for it to work properly

_ChromeDocWaitForExistenceByTitle("{""text"":""Google""}", 10)

This is due to how the data is returned.  So is this a bug or a feature?

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

  • Similar Content

    • caramen
      By caramen
      I watched _OL_ItemSend&_OL_ItemFind&_OL_ItemCreate in OutlookEx UDF but hmmm
       
      Since it use the test environnement i cant get the orders of the mail creation
       
      Can someone make me win some time of reading all exemples script and lead me how to do one ?
      That whould be lovely.
      Gnight
    • 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
       
    • Tersion
      By Tersion
      Here the this wiki page with list of available UDFs for data compression. For my tasks I only need ZIP support, so I started looking at pure AutoIt UDFs without any 3rd party dlls. And found out that most of available realizations uses standard ("native method") Windows dll - "zipfldr.dll". So for now I chose ZIP UDF by wraithdu. I've tested it on Windows 7 (x64) and it seem works fine. But here the comment from another topic where user says that Windows 10 discontinued support of "zipfldr.dll". Now I confused. I don't have around any Windows 10 machine to tested it. So maybe someone could confirm or deny that? Or maybe would better to switch to UDF with 7zip dll?
      I need an advice...
    • TheSaint
      By TheSaint
      Here is the bare bones of a UDF I have started work on.
      Mostly just a proof of concept at this stage, and still need to add some functions and dress the UDF up a bit ... to look like a UDF ... though it has my own distinct styling, especially as I have never really developed a UDF before now .... used plenty and modified plenty though. I've even invented my own UDF variable naming convention, which I am sure some of you will be aghast at. I work with what feels best for me, but others are free to adapt if they wish.
      The idea is to emulate the simplicity of INI files, but gain the benefits of SQL.
      Two scripts are provided.
      (1) The UDF, a work in progress - SimpleSQL_UDF.au3
      (2) An example or testing script - UDF_Test.au3
      Another first for me, is creating a 2D array from scratch, never done that before, that I can recall ... never had a need, and even for 1 dimension arrays, for a long time now, I have just used _StringSplit to create them. So I needed a bit of a refresher course, which my good buddy @TheDcoder assisted me with ... not without some angst I might add. LOL
      SimpleSQL_UDF.zip  (12 downloads previously)
      (I have now completed all the functions I intended to. My next update will be a big improvement, bringing things more inline with my latest INItoSQL DB program changes.)
      Program requires the sqlite3.dll, not included, but easily enough obtained.
      Hopefully the usage is self-evident ... just change the Job number variable in the UDF_Test.au3 file to check the existing functions out.
      Enjoy!
      P.S. This is also related to a new program I have just finished and uploaded - INItoSQL DB
    • 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. 
×