Search the Community

Showing results for tags 'Chrome'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements and Site News
    • Chat
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • Forum
  • AutoIt


  • Community Calendar

Found 31 results

  1. Chrome support for AutoIT is here! This UDF includes a Chrome Extension ( and Native Messaging Host ( that integrate with a new Chrome UDF (Chrome.au3) to provide automation support for the Chrome browser. Several steps are required to install the Chrome Extension and Native Messaging Host prior to using the UDF. Please read the INSTALLATION section below. REQUIREMENTS: Windows XP 32-bit, Windows 7 32-bit or Windows 7 64-bit AutoIt3 3.2 or higher Chrome v29 or later (earlier versions are untested) AutoIT for Google Chrome (Chrome extension - see below) AutoIT Chrome Native Messaging Host (see below) INSTALLATION: STEP 1: Install the AutoIT extension into Chrome. Open the following link and download the file named AutoIT for Google Chrome.crx: Note - you may be prompted to login with a Google account as this file is hosted on Google Drive. In your Chrome browser click on the Chrome menu, then select Tools -> Extensions. Drag the AutoIT for Google Chrome.crx file that you downloaded above, from Windows Explorer, into this page in Chrome. You should now see AutoIT for Google Chrome listed in the Extensions page in Chrome. Ensure that the Enabled checkbox next to AutoIT for Google Chrome is checked. Also make sure the Allow access to file URLs box is checked (very important to make EXAMPLE 2 work below)!! STEP 2: Install the AutoIT Chrome Native Messaging Host. Open the following link and download the file named autoit_chrome_native_messaging_host_install.exe: Note - you may be prompted to login with a Google account as this file is hosted on Google Drive. Run this file (autoit_chrome_native_messaging_host_install.exe). An installation window will display. Click the Install button. The window will display "Completed" and you can click the Close button. STEP 3: Install the Chrome UDF into AutoIT. Scroll to the DOWNLOAD section below, and save the Chrome.au3 file into your AutoIT Include folder (C:Program FilesAutoIt3Include). Please close your Chrome browser once you've completed these steps. LIST OF FUNCTIONS: EXAMPLE #1: This following example starts up Chrome and navigates to the URL It then automatically completes the HTML form in this page (a series of text, radio, and checkbox input elements and select elements) and clicks the Send this survey button. The script waits for the next page to load, and retrieves the various elements from the page to the AutoIT console. chrome_example.au3 EXAMPLE #2: The following is an example of the automation of an offline HTML page (file URL). First, download the file named chrome_udf_example_2.html to your C: folder: Then run the following AutoIT script: chrome_example_2.au3 Note that you must have checked the Allow access to file URLs box in the Chrome extension to make this work! DOWNLOAD: Latest Version - v0.5 (29/09/13) Chrome.au3
  2. 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.
  3. Hello, I'm trying to wright a automated process to show some URL's in chrome browsers on multiple screens. I've 4 screens and want to show on each screen another instance of chrome whit its own URL. In mine search on the site i din't find any topic for this specific problem. The way I was trying is something like : ShellExecute("chrome.exe", "http://URL1 --start-maximized") so I'll not see the addressbar but it was not opend full screen . I've some questions about this way: -Is there a way to maximize it on a dedicated screen ? (like URL1 on screen 1 , URL2 on screen 2 etc...) -Shellexecute will add a tab on a existing browser and will not open another instance, is there a way to work around this? Is there somebody who had the same problem whit chrome? thanks in advanced. edit: I've checked the chrome UDF but it din't same to get the job done....
  4. Hello all, I've been trying to figure out how to launch Google Chrome in the background (hidden) but it doesn't seem possible. I've tried the following methods: ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "", "", "", @SW_HIDE) Also I've tried: ShellExecute(@ComSpec, "/c start chrome.exe","","",@SW_HIDE) Lastly I tried: RunWait('"'&@ProgramFilesDir&'\Google\Chrome\Application\chrome.exe" --silent-launch',@ScriptDir) But all of them launch my chrome browser without hiding it. Does anyone know a workaround for this or if AutoIT just can't Chrome? Bonus points if you know how to make it launch chrome hidden and make it go to Thank you, Brian
  5. I'm trying to get the output data from but it uses a web app that generates that output on the fly and this doesn't show up in the page source. Only in web inspector of each browser does this data show up. How do I read this data in autoit (equivalent to the web inspector) thank you
  6. Hello everyone, I could use some help with the following: I'm a speech recognition user and recently I've started to use AutoIt for additional scripting because sometimes it works faster. I would like to create an AutoIt script that will open the Chrome link on my desktop which is a a symbolic link, so that the Chrome cache is on my Ram drive: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disk-cache-dir="A:\Browser Cache" Next I want to send the website address, in this case: (with SendKeys) to the address bar. Then another SendKeys to send Enter. I want to use this script when I'm working on my girlfriend's computer, where speech recognition isn't installed. I could use ShellExecute ("Chrome", "") but then it won't run via my ram drive. I am a Dragon NaturallySpeaking user. The program has a scripting language similar to VBA. In Dragon the command is as follows: HeardWord "open","chrome" ; HeardWord acts as if I literally said "open Chrome" this command opens any desktop shortcut no matter which window I'm working in. Wait 1500 SendKeys "" SendKeys "{Enter}"; these last three lines are similar to AutoIt language I think..... Any help would be appreciated. Rob
  7. Hi, Please help me I haven't a big experience with AutoIt and JS. I develop a macro in AutoIt which open a Chrome browser, navigate between websites clicking no some links, insert data to forms, etc... Now I can't click on an element: <a class="mr-link js-click-link" style="font-size:16px; line-height:21px;"><u>Click now</u></a> Please pointing me how it's possible. Thank you
  8. Hi, Please help me I haven't a big experience with AutoIt and JS. I develop a macro in AutoIt which open a Chrome browser, navigate between websites clicking no some links, insert data to forms, etc... Now I can't click on an element: <a class="mr-link js-captcha-link" style="font-size:16px; line-height:21px;"><u>Введите код с картинки</u></a> Please pointing me how it's possible. Thank you
  9. Is there any way to change chrome settings from Auto-it. I would like to change back and forth, between "Allow Site to show POP-ups" and "Do not Allow Site to show POP-up"?
  10. I got some code from internet and i wanted to open a incongito browser and search my website but i cant seem to open google chrome in the incongito mode. whenever i click to run my code it opens a tab in normal google chrome. heres my code now: ShellExecute("chrome.exe", "", "--incongito")
  11. Hi, I'm trying to upload a file with a web browser but I can't select the Open File window to select the file that I want to upload. TL;DR I can't handle the Open File window of Chrome and MS Edge. AutoIt just doesn't find it by its title (in Firefox yes, but not on Chrome and MS Edge). With another software (Selenium Webdriver in Python) I access to a web page with a common HTML5 file uploader and I click on it, but when the Open File window comes up, I want to select a file and press Enter (write the filepath that I give and press Enter key or Open button). I have the idea, and I have the script on AutoIt too... but it doesn't work on Windows Edge and Chrome, only works on Firefox and Pale Moon (who are basically the same). Here is my code: #include <MsgBoxConstants.au3> $title = "Abrir" ; My Windows is in spanish, but I guess it's "Open" in English and it's the same code WinActivate($title) If WinActive($title) Then send("C:\Users\myuser\images\my_image.jpg") Send("{ENTER}") Else MsgBox($MB_SYSTEMMODAL, "WinActive", "Window not found.") EndIf In Firefox (and Pale Moon) the Open File window comes up, the file path is written and the Enter key is pressed. It works perfect. In Chrome and Edge, I never see the Open File window on top... and I neither see "Window not found" message (seems like AutoIt finds it but doesn't send keys). Edit: before to send this post, I started thinking again and... after several tests, I discovered one thing: when you select the window, in Firefox (and Pale Moon) the cursor goes to the combobox (where I have to put the text) and it's possible to write just after clicking (or opening, what in AutoIt it is "Activate" I guess) the window but in Chrome and Edge it isn't like that, when you click the window, the cursor doesn't go to the combobox. With that "discovery", I tried to select the combobox but... I failed again. And now I have no idea how to go ahead. #include <MsgBoxConstants.au3> $title = "Abrir" WinActivate($title) If WinActive($title) Then ControlClick($title, "", 1148) ; Still it does not work send("C:\Users\myuser\images\my_image.jpg") Send("{ENTER}") Else MsgBox($MB_SYSTEMMODAL, "WinActive", "Window not found.") EndIf
  12. How to calculate the number of bytes read in the active window Chrome browser? This program counts the number of bytes on the Yahoo site after pressing the F8 key. But I need to be considered in the already open, the active window Chrome browser. #include <MsgBoxConstants.au3> HotKeySet("{F10}", "Terminate") HotKeySet("{F8}", "Example") ;;;; Body of program would go here ;;;; While 1 Sleep(10000000) WEnd ;;;;;;;; Func Terminate() Exit 0 EndFunc 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("") ; The number of bytes read is returned using the @extended macro. Local $iBytesRead = @extended ; Display the results. MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & $iBytesRead & @CRLF & @CRLF ) ; EndFunc ;==>Example
  13. Prompt program, which monitors 1 word in the window Chrome browser - "super", a window title - "test", it need refreshes the window every five minutes, and if the word disappeared, beeps. This should not affect the work of other windows browser.
  14. Greetings! Func caretPlay () activateWindow () WinActivate ($workSpace) Local $myCaret = WinGetCaretPos () _ArrayDisplay ($myCaret) EndFunc Func activateWindow () $workSpace = WinGetHandle ("Login - Google Chrome") WinActivate ($workSpace) $dimensions = WinGetClientSize ($workSpace) $midPoint = $dimensions[1]/2 EndFunc Those are two little functions in a larger app I am building. When I run the "caretPlay" function it returns the same values of 0,0 regardless of where I position the caret. I did read on the function reference page for WinGetCaretPos that applications with Multiple Document Interfaces (MDIs) may not return accurate values. I tried all three options for the CaretCoordMode option with no change in results. Either I am doing something wrong or Google Chrome isn't meant to work with this function. Any advice as to which it is? Thanks!
  15. I've written a bot that is loading down pictures from a website. Basically, it opens the website, saves the picture via context menu, and hits a button for loading the next pic. Unfortunately, the pics and my internet connection aren't always the same and it takes longer to load at times. Right now I've got a sleep(3000) in my code, but it isn't very efficient. I waste time if it loads faster than 3000ms, and the program fails if it takes more than 3000ms. So I wanted to make a function that waits until the picture has loaded, and then saves it. I don't know if that causes any problems with possible functions, but it isn't the tab that's loading. The loading circle doesn't appear. It's something on the website. I've adapted to program to chrome, so I'd have to rewrite it partially for the IE functions, so it'd be nice if there was a solution for chrome. --- Thanks!
  16. i'm trying to control send a javascript to chome developer console ControlSend("Developer Tools","","Chrome_RenderWidgetHostHWND1","hi") why it is not working ?
  17. Here's a hacky script I made to make the music key on my keyboard click the back button on my Chrome browser. You need to compile the script in to an exe, and associate "cda" file extension to the executable. Note- this also means you can reassign the music key on your keyboard to whatever executable you want using this method! AutoItSetOption("WinTitleMatchMode", 2) HotKeySet("{Escape}", "exitScript") $chromePos = WinGetPos("Chrome") If (@error <> 0) Then ConsoleWriteError("Can not find Chrome window - WinGetPos returned @error: " & @error & @CRLF) Exit EndIf $originalMousePos = MouseGetPos() MouseClick("primary", $chromePos[0] + 20, $chromePos[1] + 45, 1, 2) MouseMove($originalMousePos[0], $originalMousePos[1], 2) Func exitScript() ConsoleWrite("Exiting script..." & @CRLF) Exit EndFuncYay AutoIt3 community. Unfortunately, for the most part at work I've moved on to OSX machines (meh). Seems like that's what all the companies are developing on lately.
  18. hey guys i got the Chrome and MozillaFF UDFs and i was trying to find these two functions or alike with their functions at least... _IEFrameGetCollection _IETagNameGetCollection Does anyone familiar with these know what might help me..
  19. Hi! Im trying to use Java.au3 UDF into a develop but when i hit F5 i receive an error saying "$javaferret_obj_role: undeclared global Variable" This part of develop its not mine so i dont understund why the error. I have instaled Java as i saw in other topic and dosnt work. Any can help me? Im working with Chrome. Regards
  20. Hi all Can IUIAutomation automate existing instances of Chrome to find objects (by ID, for example) within iframes and set text of inputs within them ? I need to basically poll existing Chrome instances regularly to see if a login form is loaded (which will itself be loaded in an iframe potentially within any number of tabs/instances). Chrome will have accessibility 'on', but there are restrictions that won't permit the installation of any non-mainstream extensions etc (othewise would have looked at the _Chrome_UDF). I started dabbling with Selenium (via Selenium Wrapper ) and it worked well spawning an instance of Chrome browser etc - but I later realised that it can't attach to an existing instance of Chrome... I've looked at Junkew's IUIAutomation framework and could see might be feasible to manipulate controls by click etc - but not necessarily at a DOM / DOM tree level... Anyone got any experience / success with this specific issue ? TIA
  21. This is a really simple script to auto-start a URL in Chrome fullscreen when a Windows computer reboots. This allows me to have digital signage created with Google Slides auto-launch fullscreen in a Chrome browser window, but also allows me to schedule automatic Windows updates with auto-restart at 1 am. When Windows reloads, it automatically logs on and goes to the desktop, and then this script relaunches Chrome where we left off. The target URL is placed in a folder on the desktop called "AutoURL". To change to a new launch target simply replace the URL file in there, close Chrome, and relaunch this script. It only reads the first matching *.URL file and ignores everything else. ; Auto-launch any URL in Chrome fullscreen at Windows startup ; by Dale Mahalko - ; #AutoIt3Wrapper_Change2CUI=y $URLFile=FileFindFirstFile ( @DesktopDir & "\AutoURL\*.url" ) IF $URLFile <> -1 Then $TheFile = @DesktopDir & "\AutoURL\" & FileFindNextFile($URLFile) ConsoleWrite("Found first *.url file: " & $TheFile & @CRLF) $sURL=IniRead( $TheFile,"InternetShortcut","URL","") ConsoleWrite("URL: " & $sURL & @CRLF) $Params = " --start-fullscreen " & Chr(34) & $sURL & chr(34) ConsoleWrite("Params: " & $Params & @CRLF) ShellExecute(@ProgramFilesDir & "\Google\Chrome\Application\chrome.exe", $Params ) EndIf FileClose($URLFile)Setup: 0. Install Google Chrome. 1. Enable Windows Automatic Update, to run at some time when the sign doesn't need to be viewed. 2. Create either a local user account on the machine, or a network domain account. 3. Using the Registry editor, set up Windows AutoAdminLogon so this account automatically logs on and goes to the desktop at system startup. Be sure to specify the username as either LocalMachineName\Username or DomainName\Username ... the password is plaintext in the registry using AutoAdminLogin, so don't give this account administrative privileges. 4. Using the auto-login account, create a desktop folder called "AutoURL" 5. Compile this script, and put the program in the Startup folder of the auto-logon account. Also put a shortcut to this program on the desktop. Usage: 6. In Chrome highlight the text in the address bar of the page you want to auto-launch. Now point at the highlighted text and drag the it onto the Windows desktop, onto the "AutoURL" folder. This will create a *.URL file in the folder, pointing to that address. 7. If there is old/previous URL file present in the "AutoURL" folder, delete it or move it out. 8. If Chrome is open, close it, and run this script via the shortcut on the desktop to relaunch the URL fullscreen. Simple sample kitteh Google Slides slideshow I created for testing this:
  22. Hi guys, First and foremost I just want to thank you'll for all the help that you been given to me. Autoit forum is one of the best forums I been a part of, if not the best. Secondly, I have another question for your guys and hopefully one of you all can help me with it. All I want to do is to open chrome and interact with the page by clicking in one of the options of the webpage. My problem is that the option or button that I want to interact with doesn't have an "id" that I can use. So I decided to run a queryselector method and tried to add that to the script. According to what I understood from the UDF "Chrome.au3" the function name _ChromeEval() could perform that, below is my script: ; Closes Chrome if open _ChromeShutdown() ; Opens Chrome with that link, is that a way to use incognito with this function??? _ChromeStartup("") ; Wait for the page with the document title of "itTorrent Sync - Link received" _ChromeDocWaitForExistenceByTitle("itTorrent Sync - Link received", 10) ; I ran this query selector on chrome tools and it found the button I want to interact with ; I just need help running this in autoit _ChromeEval(document.querySelector(".btn-primary-stroke"), 5 ) Thank you again
  23. Hi there, I need to automate some tasks in Google Chrome. I need to send one e-mail/day to same address but different attachment and different subject. So i am seeking guidance from you. Thanks in advance. note: Extra informations 1. Attachments are pdf files. And they always reside in same folder. 2. Subject text's 95% will be always same. i.e. If today's subject is "Myworkname myfilename #250", then tomorrow's subject will be like this "Myworkname myfilename #251" 3. And name of the attachment is also in the same manner. i.e. If today's attachment's name is "Myfilename 250" then tomorrow's file will be "Myfilename 251" I only know to automate this task with MouseClick() function. But chances are there to zoom the gmail window. So mousclick will not work.
  24. I am using this code to reload Chrome. The problem is the sleep() after the WinKill(). On my desktop I had to set the sleep = 2000. On my laptop I had to set the sleep to 15000. It appears I need to wait until Chrome is all the way down before doing the RUN command. I tried to loop test if WinExists() = 0 then continue, but it continued immediately. Without the sleep() the run() never opens Chrome. The value of $LocalString is C:Program Files (x86)GoogleChromeApplicationchrome.exe --new-window "" Is there any way to do this without setting the sleep() up. I do not want to send F5 to reload, I need a fresh instance. Func LoadChrome($LocalPageAddress) PostLog("LoadChrome() ") If $LaunchWindow <> 0 Then PostLog("Killing Previous Browser ") WinKill($LaunchWindow) sleep(15000) EndIf PostLog("Loading Browser ") $LocalString = $RunBrowserPath & " " & $LocalPageAddress PostLog("Running=" & $LocalString) Run ($LocalString) $LaunchWindow = winwait("MyPage - Google Chrome","",60) IF $LaunchWindow = 0 Then PostLog("TimeOut on Load Browser") Return(0) EndIf WinMove($LaunchWindow, "", $RunBrowserOriginX, $RunBrowserOriginY, $RunBrowserWidth, $RunBrowserHeight) sleep(500) SetZoom() PostLog("Browser Loaded") Return(1) EndFunc
  25. I can open an Internet Explorer Window without a toolbar with this: #include <IE.au3> $ie = _IECreate('', 0, 0, 0) _IEPropertySet($ie, "toolbar", False) $IE.Visible = 1 I can open a Google Chrome Window with a toolbar with this: ShellExecute("chrome.exe", "","","") The question is, how can I create a Google Chrome Window without a toolbar?