autoit

Login to Chrome Authentication window using AutoIT

前提是你 提交于 2019-12-09 01:50:31
问题 I tried login to firefox authentication window by following code : WinWaitActive("Authentication Required","","120") If WinExists("Authentication Required") Then Send("username{TAB}") Send("password{Enter}") EndIf But the same dint worked for chrome even though it has the same title as firefox. Any idea? 回答1: @Milos @Samoth thanks for spending to solve my query. Using Autoit windows info tool, i could not identify the windows tile in chrome thats not a case in FF or IE. Instead of that

Database, relational query

五迷三道 提交于 2019-12-08 22:36:28
问题 Chemicals have a trade name (which is what it is commonly referred to as) and an actual chemical name. I need to look up a trade name, find its proper chemical name, then get properties of that chemical. For example: $tradeName = "Voranol" if $tradeName == "Voranol" then $productName = "Polyether Polyol" $flare = "List I" $bay = "1" $listPos = 3 EndIf I have an .au3 file that contains a ton of products. It works fine but it's kind of tedious to do if $tradeName == "Name1" or $tradeName ==

Robot Framework AutoitLibrary run command does not fail but does not open the application

邮差的信 提交于 2019-12-08 15:02:54
问题 I am having an issue that notepad.exe is not getting opened. The run command itself is successful according to the log. But Nothing is opening. I have just installed AutoItLibrary with pip and downloaded and installed Autoit on my machine. My path is only to Python and Python Scripts directory. I have no other components running. Do I have to have any other thing done? have the code Library|AutoitLibrary |Run|notepad.exe |Send|'abc' Send fails saying no such keyword found. I do not see the

Autoit - Get the file size of all files in path

為{幸葍}努か 提交于 2019-12-08 13:52:53
问题 Im using a script to get all files and dirs in a specific and generates a .txt file of the result but i need to add the size of each file using the FileGetSize + ByteSuffix functions #include <File.au3> #include <WinAPIFiles.au3> Global Enum Step *2 $GETFILES_NOT_DIRECTORY, $GETFILES_NOT_EXISTS ; GetFiles @error Func G3tAllF1lesAndDirs($cpath, $txtname) Local $sFileList = '' GetFiles($sFileList, $cpath) ; This uses no global variable $sFileList = StringReplace($sFileList, '|', @CRLF) ;

Take screenshot every 60 seconds

余生颓废 提交于 2019-12-08 11:08:38
问题 This script should create an automated screen capture from a specific window even in background. The function to take a screenshot works but I have problems to put it together so I can compile and run it. #include <GDIPlus.au3> #include <WindowsConstants.au3> #include <ScreenCapture.au3> #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> ; Press ESC to exit script HotKeySet("{ESC}", "On_Exit") Global $Paused, $Runner Global $fNot_1_Vis = True, $iBegin = 0 Global $sAutoIt_Path =

Load Excel add-in

丶灬走出姿态 提交于 2019-12-08 09:29:06
问题 I tried: $sAddIn = "H:\prog\essxleqd.xla" $oExcel = ObjCreate("Excel.Application") $oExcel.Visible = 1 $oExcel.WorkBooks.Add $oAddIn = $oExcel.AddIns.Add($sAddIn) $oAddIn.Installed = True $oExcel.WorkBooks.Open("H:\Balance_Inquiry.xls") When I do: Run('"c:\pathtoexcel\excel.exe" "c:\pathtoaddin\addin.xla"') It will work. But I prefer the former solution because I need two different add-ins. $sAddIn = "H:\prog\essxleqd.xla" $oExcel = ObjCreate("Excel.Application") $oExcel.Visible = 1 $oExcel

Use AutoIt with java applications

心已入冬 提交于 2019-12-08 05:23:26
问题 AutoIt seems to stop working when focus is given to a java application. For this code: MouseMove(61, 121, 10); WinActivate("Main @ paperMoney [build 1800.20]"); MsgBox(0, "got it", "got it"); Results are --> Mouse moves, java application gets focus and message appears For this code: WinActivate("Main @ paperMoney [build 1800.20]"); MouseMove(61, 121, 10); MsgBox(0, "got it", "got it"); Results are --> java application gets focus, mouse DOES NOT move and message appears. Is there anything I

Calculate estimated time remaining

心已入冬 提交于 2019-12-08 03:33:24
问题 I made a script which installs several applications (Adobe Reader, Spotify, Microsoft Office, etc.). It's used after Windows installation. I would like to display estimated remaining time of current installation. The problem is it differs per computer. How to calculate remaining time using time taken to install previous applications, amount of applications in total and the count of already installed applications. Average wouldn't help since some applications install 10 seconds and other 5

Click on Save button on File Download popup in IE11 in robot framework

僤鯓⒐⒋嵵緔 提交于 2019-12-08 02:27:03
问题 Is there a way to click on the Save or Open button in the pop up that appears while downloading a file in IE 11? I am using Robot Framework AutoIt Library. I can handle the windows that comes subsequent after clicking the Save or Save As option. 回答1: What kind of file are you downloading? Depending on the file type you should be able to set a default behaviour in IE11. Personally I think AutoIT solutions with this are overkill, I'd recommend looking at the following blog post for alternative

Using Selenium Webdriver with Windows Authentication (in Chrome) C#/ASP.Net

ⅰ亾dé卋堺 提交于 2019-12-08 01:59:46
问题 Google dropped support for passing windows credentials via URL and it broke a lot of automation for me. (username:password@www.url.com) https://www.chromestatus.com/feature/5669008342777856 I found there is a solution using AutoItX dll which I added and it works fine when running locally, but when deployed to web server it does not send key strokes. This is what I have. AutoItX.WinWaitActive(authenticateurl + " - Google Chrome", "", 10); AutoItX.WinActivate(authenticateurl + " - Google Chrome