autoit

AutoIt WinHttp.au3 dependencies can't be found

一个人想着一个人 提交于 2019-12-07 21:35:35
问题 I'm trying to use an AutoIt script I found. After installing AutoIt v3.3.14.2 when I try to run it can't find the module WinHttp.au3. So I looked for it and placed it in the same folder as the script. But now WinHttp.au3 has an include file which doesn't exist either, which is WinHttpConstants.au3 and so on. Which version or package of AutoIt do I have to install so the script that includes WinHttp.au3 has all the dependencies it needs to run? 回答1: AutoIt WinHTTP is a custom UDF (not included

Remap mouse-event to keyboard key

折月煮酒 提交于 2019-12-06 18:04:30
问题 I want to remap mouse-up and mouse-down to keyboard keys, but only while using a certain application. This is how far I got: _WinWaitActivate("League of Legends (TM) Client", "") HotKeySet("{K}", "WinTab") ProcessWait("") Func WinTab() Send("G") EndFunc #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title, $text, $timeout=0) WinWait($title, $text, $timeout) If Not WinActive($title, $text) Then WinActivate($title, $text) WinWaitActive($title, $text, $timeout)

Curve mouse movement

↘锁芯ラ 提交于 2019-12-06 15:59:49
问题 I'm trying to make the mouse cursor move from one point to another. Not in a straight line but in a curve. Here is an illustrative video. Here is code that moves mouse based on the locations: Func smoothmove($coords, $j, $firstms);make mouse move to the note Dim $currcoord[3] Dim $diff[3] Dim $pixelsptms[3] If $j > 1 Then If Mod($coords[$j - 1][7][1], 2) = 0 Then $currcoord[1] = $coords[$j - 1][1][1] $currcoord[2] = $coords[$j - 1][2][1] Else $currcoord[1] = $coords[$j - 1][1][$coords[$j - 1]

User-defined sorting comparison using AutoIt

南楼画角 提交于 2019-12-06 12:28:51
问题 PHP has usort and Java has the Comparator interface. These allow you to create a simple function that compare two Objects, Strings, etc. without getting involved in the details of the sort implementation. Generally, the comparison function looks something like this: // Return value: // Negative value: a before b // Positive value: b before a // Zero: strings are equal function compare(String a, String b) { return toLowerCase(a) - toLowerCase(b); } ... and you can be as simple or as fancy as

Detect a taskbar icon flashing

99封情书 提交于 2019-12-06 11:20:28
I want to make a script that detects when taskbar icon flashes, and activates a program. I would like to use AutoIt or the Windows API. How to detect when a program's taskbar icon starts flashing? Mike Kwan To answer your question directly, there is no easy (documented and reliable) way to detect the flashing of the window . It occurs as a result of FlashWindow / FlashWindowEx . A very intrusive and heavy-handed option is to perform global hooking of both APIs. You could do this by injecting a DLL to every usermode application and performing a local hook/detour which notifies some central

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

本秂侑毒 提交于 2019-12-06 09:54:24
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. 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 ideas if possible: https://blog.codecentric.de/en/2010/07/file-downloads-with-selenium-mission-impossible/

Automate through a remote desktop using Selenium and AutoIt

孤街浪徒 提交于 2019-12-06 08:22:30
问题 I want to automate certain tasks which needs it to go through Remote Desktop Connection. I will share the code which I wrote till now. public class MainClass { static WebDriverWait wait; static WebDriver driver; public static void main(String args[]) { driver = new HtmlUnitDriver(true); driver.get("https://mysite"); WebElement submit_element=driver.findElement(By.id("Log_On")); driver.findElement(By.id("Enter user name")).sendKeys("my_username"); driver.findElement(By.name("passwd")).sendKeys

AutoIt WinHttp.au3 dependencies can't be found

不羁岁月 提交于 2019-12-06 05:08:39
I'm trying to use an AutoIt script I found. After installing AutoIt v3.3.14.2 when I try to run it can't find the module WinHttp.au3. So I looked for it and placed it in the same folder as the script. But now WinHttp.au3 has an include file which doesn't exist either, which is WinHttpConstants.au3 and so on. Which version or package of AutoIt do I have to install so the script that includes WinHttp.au3 has all the dependencies it needs to run? AutoIt WinHTTP is a custom UDF (not included with AutoIt) consisting of WinHttp.au3 and WinHttpConstants.au3 (being its only dependency). AutoIt WinHTTP

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

无人久伴 提交于 2019-12-06 04:32:41
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"); AutoItX.Send(AdminUsername + "{TAB}"); AutoItX.Send(AdminUserpass + "{ENTER}"); Any idea why

AutoIT C# integration [closed]

馋奶兔 提交于 2019-12-06 03:33:15
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am trying to automate a software by using the autoit library integrating it with my C# application, If someone has a solution then please help. Thanks in advance!! 回答1: You just need to adding the autoit class library to your project. Go to Solution Explorer - right click