FAQ Database Discussion Community


Autoit: How do I store a changing webpage in a variable?

windows,macros,autoit
First of all I need to mention that I am pretty new to Autoit. I am creating this script that automates the room booking process at my school for group projects. I have created an automatic log-in script which works fine. Now I would like to access different elements from...

Not returning back to selenium after successful execution of autoit

java,selenium,autoit
I am trying to download and save a document to my local machine from the application on click of an export button. On click of export button continue to this website(not recommended) error will open in another window.On click of this window save pop up of IE11 comes up. Trying...

How to open Windows Explorer by pressing “WIN + E” key using AutoIt

autoit,windows-explorer
I am able to open Windows Explorer in AutoIt using the following command: Run("explorer.exe") I want to use Win+E key for opening Windows Explorer. What's the command for this?...

How to navigate a vertical tab control using AutoIt

tabcontrol,autoit
I have a tab control in an application that I am automating, but cannot move between the tabs as I would like. I have looked into the documentation for ControlCommand which has three commands for a systabcontrol32. "CurrentTab", "TabRight", and "TabLeft". I have a tab control that displays the tabs...

Can't use Class to automate Windows file upload using AutoIt

automation,autoit
I am trying to use autoit for Windows file upload. I am clicking a browse button which will open file upload popup. I want autoit to type the location of the file and click open. I need to use FF, Chrome, and IE for testing. I am able to get...

Pass arguments to AutoIt script (.au3 ) complied script (.exe)

autoit
I need to send dynamic value to the Edit control on a GUI using Autoit. How can I run AutoIt script from cmd or shellexecute with command line parameters or arguments? I am using the below syntax in AU3 script. Send("2{TAB}$CmdLine[1]") Below command to run the complied AU3 script. tstScript.exe...

2D grid image values to 2D array

arrays,image,image-processing,grid,autoit
I have an image containing a 2D grid like the image below and I want to put in an array in this format. ;x = wall(black cells and grey boxes), s= start (red circle), g = goal(blue circle), 0 = available path(everything else) $data[5][5] = [["x","x","x","x","x"], _ ["x","s","0","x","x"], _ ["x","x","0","x","x"],...

How to get text from Authentication window in Browsers

selenium,autoit
To fill Authentication Pop-up, I want get server name displayed in the Authentication Pop-up. So that I can determine which user name and password I have to use. Please guide how to get Highlighted text in the attached image. I tried with below statements but it did not work....

ObjCreate with Firefox in AutoIt

object,firefox,autoit
I have opened IE with the resolution 360x640 by creating IE Object. This is my code: $object = ObjCreate("InternetExplorer.Application.1") With $object .Visible = 1 .Height = 640 .Width = 360 .Navigate("https://www.google.com.bd/?gws_rd=cr,ssl&ei=jm11Vb7_Iofg8AX0_IGYBw#q=ripon+al+wasim") EndWith I want to create Firefox Object by same way in AutoIt. How can I do it?...

AutoIT Script to Handle Chrome Authentication Window

google-chrome,autoit
I have the following script based on the following link: Here If(Not IsArray($CmdLine) Or $CmdLine[0] < 2) Then $user = InputBox ("User", "Please enter your user", "") $pass = InputBox ("Password", "Please enter your password", "", "*M") Else $user = $CmdLine[1] $pass = $CmdLine[2] EndIf WinWaitActive("", "Authentication Required", "120") If...

Close windows in reverse order of creation

autoit
I have a program with a main window and multiple other windows and want to use autoit to close these windows. The main window however refuses to close if other windows of the program are open and creates a warning message. To avoid this, I want to close the other...

Using third-party library in py2exe single EXE file

python,dll,py2exe,autoit
I'm making some script files in Python 2.7.9 and additionally use a third-party library, pyautoit 0.4. I would like to make my scripts as a single EXE (want to run in single file so they don't need to setup files) and by using py2exe, tried this: # -*- coding: utf-8...

Selenium webdriver - unable to upload file with AutoIT

java,selenium,file-upload,selenium-webdriver,autoit
I'm unable to upload file with AutoIT v3 try with many ways, but no luck to get it work method one: (get Element is not currently visible) driver.findElement(By.xpath("//input[@type='file']")).click(); Runtime.getRuntime().exec("D:\\Documentation\\Script To Upload File.exe"); method two: (get Element is not currently visible) driver.findElement(By.name("fileName")).click(); Runtime.getRuntime().exec("D:\\Documentation\\Script To Upload File.exe"); method three: (PASSED: testCaseOne, but...

Having trouble splitting a string with _StringExplode

autoit
I have a string which looks like this string1 string2 - string3 string4 I need it split in two at the - (note the space either side of the "-") I have the following code but it isn't working as I expected #include <MsgBoxConstants.au3> #include <String.au3> Local $test = _StringExplode("string1...

Converting 8 digit hexadecimal number to decimal

numbers,hex,decimal,autoit,definition
I'm working on a AutoIt script and I have to convert some weird hexadecimal number to normal integer. But I don't know which procedure should I follow to convert my hex number. For example, in the AutoIt documentation below, some definitions and their hex values are given. But they didn't...

AutoIt to act as virtual server - is it possible?

networking,server,virtual,autoit
First of all, hello :) I seek an answer for question that bugs me for a while... i didn't actually start to write a code, just because i am uncertain if it's possible to make something like this with AutoIt. My goal is to (i will be most specific here):...

Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering

autohotkey,autoit
Objective I am building a generic solution for advanced controlling of an arbitrary programs UI using AutoIt3, invoked by pressing various keys, or issuing a command. Components TargetUI - Program to be controlled by sending clicks and keys MainAu3 - AutoIt program doing the sending MainIni - File containing control...

Remove the 11. value of string if exists

regex,string,autoit
I have the string of the following format: example 1: ABC,0,ABCD,ABC,ABC,ABC,ABC,ABC,11,ABC,ABC,toRemove,012,234 example 2: ABC,0,ABCD,ABC,ABC,ABC,ABC,ABC,11,ABC,ABC, toRemove,012,234 If the string contains 14 Values (instead of 13 values) separated by comma, then remove the 12. value The second line above contains a white space, that should also removed if exists....

how to read a Digit from bmp image in Autoit [duplicate]

java,autoit
This question already has an answer here: How to recognise image into text by Autoit? 1 answer I am new Dev in Autoit , i working on a bot the read numbers from IMAGE.BMP I have searched the net but i did nit get any thing useful . if...

Can I make _Assert write to console instead of a message box?

scripting,automated-tests,autoit
I am writing a script in AutoIt to test a windows application, and I am using the _Assert function to verify certain actions. In the documentation I found there is a parameter to say whether or not the script should end if an assertion fails, which is great because in...