autoit

How to click buttons in an application using AutoIt or Windows UI Automation

試著忘記壹切 提交于 2019-12-31 10:41:09
问题 Setup Environment: I'm using vb.net to develop a Windows Form Application with .NET Framework 4. My goal: Open calculator.exe using Process.Start Using all vb.net code, be able to click 5 + 5 = I do not want to use SendKeys as a method. After researching, this link provided a good start: This tutorial (written in C#) is very similar to what I'm trying to do by using vb.net: How to click a button in another application Could somebody provide a pointer on how to go about approaching this? I'd

Trigger every 15 minutes (relative to 00 minutes)

南楼画角 提交于 2019-12-31 05:15:43
问题 Using AutoIt, how to perform some action when time is at xx:00 , xx:15 , xx:30 and xx:45 (every 15min) by recognizing the actual time? 回答1: Sleep(1000 * 60 * 15) may be used. Example as per: " by recongnizing the actual time " -requirement (using Mod() and @MIN -macro) : Global Const $g_iInterval = 15 Global Const $g_iDelay = 10 Global Const $g_sMsg = 'Triggered at %s:%s\n' Global $g_sLast = '' While True If Not (@MIN = $g_sLast) And Mod(Int(@MIN), $g_iInterval) = 0 Then $g_sLast = @MIN

Trigger every 15 minutes (relative to 00 minutes)

人盡茶涼 提交于 2019-12-31 05:15:06
问题 Using AutoIt, how to perform some action when time is at xx:00 , xx:15 , xx:30 and xx:45 (every 15min) by recognizing the actual time? 回答1: Sleep(1000 * 60 * 15) may be used. Example as per: " by recongnizing the actual time " -requirement (using Mod() and @MIN -macro) : Global Const $g_iInterval = 15 Global Const $g_iDelay = 10 Global Const $g_sMsg = 'Triggered at %s:%s\n' Global $g_sLast = '' While True If Not (@MIN = $g_sLast) And Mod(Int(@MIN), $g_iInterval) = 0 Then $g_sLast = @MIN

Download a file in IE using Selenium

廉价感情. 提交于 2019-12-30 05:09:25
问题 OK, so I am trying to export a file using Selenium. My browser is IE. When I click on the export button a native windows dialogue box comes up. Image of the pop up I have to click on the Save button. For this I tried using AutoIT but its not working. exportbutton.click(); Thread.sleep(2000); driver.switchTo().activeElement(); AutoItX x = new AutoItX(); x.winActivate("window name"); x.winWaitActive("window name"); x.controlClick("window name", "", "[CLASS:Button; INSTANCE:2]"); This did not

Log-in to Windows

为君一笑 提交于 2019-12-25 18:33:15
问题 I have a script using WinActivate() . I want to make sure the "Windows locked" scenario is taken care of. I learned log-in/locked screen is just a dialog. Will it work if I send CTRL - ALT - DEL or does anyone have a working snippet for this scenario? 回答1: The login screen runs on a completely separate desktop - no program from your normal user session can interact with the secure login desktop in any way. It is not "just a dialog" - it is a completely separated secure desktop. What the

AutoIt exe of a third party application not running completely when run through a powershell script on windows server 2012 [duplicate]

我是研究僧i 提交于 2019-12-25 10:18:07
问题 This question already has an answer here : Script doesnt run from another script (1 answer) Closed last year . I am using autoit scripting language for automation. I have created an executable of autoit script so that I can run it anywhere. I have uploaded the executable to a different server. I then wrote a windows powershell script which downloads the autoit exe from that server and runs it on windows server 2012. When I run the powershell script manually on windows server 2012, it runs

how can I call AutoIT UDF within Java

风流意气都作罢 提交于 2019-12-25 07:48:38
问题 My query is how do I call the various UDF (user defined functions) of autoIT in Java using COM (component object model) just like the sample code mentioned below: somewhat like this: File file = new File("lib" , "jacob-1.18-x64.dll"); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); x.run("calc.exe"); x.winActivate("Calculator"); x.winWaitActive("Calculator"); //Enter 3 x.controlClick("Calculator", "", "133") ; Thread.sleep(1000); //Enter +

AutoIt GUICtrlRead Specials characters

时光总嘲笑我的痴心妄想 提交于 2019-12-25 07:34:45
问题 autoit GUICtrlCreateInput special char ignored ? $user = GUICtrlCreateInput("", 90, 65, 100, 20) $dom = GUICtrlCreateInput("", 90, 95, 100, 20) $pass = GUICtrlCreateInput("", 90, 125, 100, 20, 0x0020) Send(GUICtrlRead($user) & "{tab}" & GUICtrlRead($dom) & "{tab}" & GUICtrlRead($pass) & "{Enter}") Example with : "TOTO" as user, "home" as dom and, "azerty+" as password. Output will be : TOTO home azerty Why GUICtrlRead() ignore specials characters as my "+" char ? How to fix it ? 回答1: From the

AutoIt - Find duplicate images by content?

时光毁灭记忆、已成空白 提交于 2019-12-25 06:44:07
问题 I am looking for a way to find duplicate images using AutoIt. I've looked into PixelSearch and SearchImage but neither do exactly what I need them to do. I am trying to compare 2 images by filename and see if they are the same image (a duplicate). The best way I've thought to do it would be to: 1) Get both image sizes in pixels 2) Use a while loop to get the color of each pixel and store it in an array 3) Check to see if both arrays are equal to each other. Does anybody have any ideas on how

Autoit hotkeyset not working

≯℡__Kan透↙ 提交于 2019-12-25 05:09:56
问题 I'm trying to make some kind of simple clipboard controller , where the user could have several items copied to the clipboard when using a hotkey (Ctrl+Shift+Q) , instead of only one item when using Ctrl+C , and would be able to paste them all at once (Ctrl+Shift+W) , or paste any of the first 10 items directly (Ctrl+Shift+1...9), another option is to clear the clipboard (Ctrl+Shift+'-'). The problem is that it works fine just for several copy and pastes , but then trying to make a copy