Jump to content

Recommended Posts

Posted

ahhh finally ! Nice find.

I will test it in the coming days, I may make some functions to improve the automation of the browser.

Br, FireFox.

Posted

As you can see I am also interested.

I'll keep our fingers crossed.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Probably because the installer doesn't have permission to write to the system directory. Running as admin should fix it.

That said, the system directory is not the right place to be putting a dll dependency. That's just a little bit silly.

Posted (edited)

Never thought of that, Duh.

I installedpython275.

Anyway, example does not work for me.

Opens chrome navigates to test page but fills no fields and waits on line 106 of chrome.au3.

While TimerDiff($begin) < ($timeout * 1000)

     If FileExists($chrome_native_messaging_host_dir & "\output.txt") then ExitLoop
     sleep(100); here 
WEnd

And timeout does not appear to occur.

Win 7 32

Chrome version 29.0.1547.66

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Posted
  On 9/10/2013 at 11:16 AM, JohnOne said:

Is the .exe and .crx created by yourself seangriffin?

Hi JohnOne,

Yes I created both specifically for AutoIT.  I wrote them over the past couple of days.  It's been a rush, and it's still rough around the edges, but I'll do what I can to fix up any problems.

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted
  On 9/10/2013 at 12:33 PM, Mat said:

Probably because the installer doesn't have permission to write to the system directory. Running as admin should fix it.

That said, the system directory is not the right place to be putting a dll dependency. That's just a little bit silly.

 

It is silly, and it's the best I can do for the time being.  The "AutoIT Chrome Native Messaging Host" is a Python program compiled into a Windows 32-bit executable.  When I deployed it onto a fresh computer I noticed it still required "python27.dll".  The quick fix was to include "python27.dll" in the installer and write it to the WindowsSystem32 folder.  Works fine in Windows XP, but I see now that under Windows 7 it needs extra priviledges.  I need to find out how to resolve that "python27.dll" dependency.  I am new to Python (by the way).

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted
  On 9/10/2013 at 12:47 PM, JohnOne said:

Never thought of that, Duh.

I installedpython275.

Anyway, example does not work for me.

Opens chrome navigates to test page but fills no fields and waits on line 106 of chrome.au3.

While TimerDiff($begin) < ($timeout * 1000)

     If FileExists($chrome_native_messaging_host_dir & "\output.txt") then ExitLoop
     sleep(100); here 
WEnd

And timeout does not appear to occur.

Win 7 32

Chrome version 29.0.1547.66

 

Interesting that the timeout doesn't occur.  I wonder if this is another Windows 7 security issue.  I have a Windows 7 32-bit machine here but haven't tested on it.

Could you try running that block of code above in a separate AutoIT script?  It's a simple loop that checks for the existence of "C:Program FilesAutoIt3Chrome Native Messaging Hostoutput.txt", and if not found exits (ExitLoop).  If that is an endless loop under Windows 7 then something strange is going on.

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted (edited)

I have updated the UDF to v0.2 now, with a few more functions and a new example (EXAMPLE #2).

Please try EXAMPLE #2, which is far simpler than EXAMPLE #1 which has the complexities of page load completion under Chrome.  I've run EXAMPLE #2 over and over repeatedly on my Windows XP machine and it hasn't failed.

Edited by seangriffin

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted
  On 9/10/2013 at 1:29 PM, seangriffin said:

Interesting that the timeout doesn't occur.  I wonder if this is another Windows 7 security issue.  I have a Windows 7 32-bit machine here but haven't tested on it.

Could you try running that block of code above in a separate AutoIT script?  It's a simple loop that checks for the existence of "C:Program FilesAutoIt3Chrome Native Messaging Hostoutput.txt", and if not found exits (ExitLoop).  If that is an endless loop under Windows 7 then something strange is going on.

Loop does not exit

File does not exist

only

autoit-chrome-native-messaging-host.exe

manifest.json

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Posted
  On 9/10/2013 at 1:23 PM, seangriffin said:

It is silly, and it's the best I can do for the time being.  The "AutoIT Chrome Native Messaging Host" is a Python program compiled into a Windows 32-bit executable.  When I deployed it onto a fresh computer I noticed it still required "python27.dll".  The quick fix was to include "python27.dll" in the installer and write it to the WindowsSystem32 folder.  Works fine in Windows XP, but I see now that under Windows 7 it needs extra priviledges.  I need to find out how to resolve that "python27.dll" dependency.  I am new to Python (by the way).

Putting it in the same directory as the program is the way you would normally do it with required dlls. Not sure how you are doing the install as I haven't had a chance to test your UDF yet.

Posted (edited)

I really messed that up didn't I  :

Big apologies to anyone who already tried installing this.

I've made some major fixes now, and updated the top post with new links in the INSTALLATION section.

I've resolved many many issues including:

  • the python27.dll file (it's now completely embedded inside the AutoIT Chrome Native Messaging Host)
  • Windows 7 32-bit is now fixed (I now correctly use the roaming application data folder for the AutoIT Chrome Native Messaging Host)
  • freeing up the AutoIT Chrome Native Messaging Host when Chrome is closed (to free up CPU and memory)

Windows 7 64-bit is still not working, but will be fixed very soon.

JohnOne and Mat, could you please re-test?  Firstly, remove the existing Chrome extension by opening Chrome, right-click on the jigsaw icon in the top right corner named "AutoIT for Google Chrome" and select "Remove from Chrome".  Then perform the 3 steps in the INSTALLATION section again, as the links have changed.  Let me know how you go.

Cheers guys,

Sean.

Edited by seangriffin

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted (edited)

Windows 7 64-bit is now supported.

I've tested the UDF with Windows XP 32-bit, Windows 7 32-bit and Windows 7 64-bit.  They all work as expected.

Cheers,

Sean

Edited by seangriffin

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
  • 2 weeks later...
Posted

  On 9/21/2013 at 8:37 AM, JohnOne said:

Before I try this again, can you tell me what registry keys have been added or modified which causes the process to run at startup.

And any other keys please?

 

A total of one key is written to the registry.

It's location is HKLMSoftwareGoogleChromeNativeMessagingHostscom.sean.consoleread(Default).

It's value is %APPDATA%AutoIt3Chrome Native Messaging Hostmanifest.json.

This key is a prerequisite of Chrome for a Native Messaging Host.

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia

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
×
×
  • Create New...