autoit

Send an email with AutoIt

元气小坏坏 提交于 2019-12-03 02:49:13
How to send an email with AutoIt? Just need a clean example and explanation, containing: to from subject message There are two main ways to go with built in code, _INetMail() or _INetSmtpMail() Below are the simple code examples from the help file. If you have any specific questions about how they work or how to implement them not covered by the help file please leave a comment. In my opinion the _INetSmtpMail() route is more reasonable. Below is some example code of it. #include <INet.au3> $s_SmtpServer = "mysmtpserver.com.au" $s_FromName = "My Name" $s_FromAddress = "From eMail Address" $s

Do AutoIt scripts work with Selenium and Chrome Headless

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So, all my current scripts run with Selenium in Chrome Headless mode. Now, we have a small component which basically makes it mandatory for a user to upload a file before the flow gets completed. The upload is a normal window file select box. I had two solutions in mind to automate this - Sikuli or AutoIT. I'm very sure that Sikuli does not work in headless. What about AutoIT? Does it support headless mode?` I am desperate to keep the scripts working headlessly since they are also linked to a Linux Jenkins machine and there is no way I can

AutoIt with Firefox

寵の児 提交于 2019-12-03 00:40:38
I have several tabs open in Firefox. I want AutoIt to activate a particular tab in Firefox. How can this be done? Give the whole browser window focus, then use the send command to repeatedly send it cntl-tab until the window's title is the name of the tab you want (with - Mozilla Firefox at the end). Copas There's a UDF (User Defined Functions -include file) called FF.au3 . Looks like the function you want is _FFTabSetSelected() , good luck! Below is an example of Jeanne Pindar's method. This is the way I would do it. #include <array.au3> Opt("WinTitleMatchMode", 2) activateTab("Gmail") Func

Keeping remote desktop session “alive” [closed]

半腔热情 提交于 2019-12-02 18:34:36
I'm using AutoIt to automate GUI operations (connecting to the machine that's running the to-be-automated app, using RDP). Whenever I minimize the RDP window (using mRemote) no further AutoIt commands are performed. Maybe the RDP session is marked "inactive" when I minimize the window (I don't know if that's true, nor how to configure this behavior, if so). I'm thinking about 2 options to overcome this: Running my process as some elevated user (or a service). Finding this configuration which controls whether session is marked inactive and override it. How to keep remote desktop session "alive"

Scripting GAE launcher with AutoIT?

蓝咒 提交于 2019-12-02 16:57:09
问题 Can AutoIT script GAE launcher so that I don't have to type my password each time I deploy? 回答1: AutoIt can automate the GUI no problem. There are 2 edit boxes ( Edit1 and Edit2 ) so you can practically take the notepad examples and change them a little bit. If you want something running in the background then do something like this as a wrapper around the launcher. Local $sLauncherPath = "C:\Program Files\Google\google_appengine\launcher\GoogleAppEngineLauncher.exe" Local $iPid = Run(

How to schedule an AutoIt script to run daily?

冷暖自知 提交于 2019-12-02 15:56:20
问题 I have a script that captures the screen to an image. I'd like it to run everyday at 4PM. How can I do this? 回答1: Add to Task Scheduler. Alternatively a timer in AutoIt script itself is possible, but in turn requires the script's scheduled (or manual) startup on system start. 来源: https://stackoverflow.com/questions/29475068/how-to-schedule-an-autoit-script-to-run-daily

Parse all the rows of a CSV file in a loop using AutoIt

戏子无情 提交于 2019-12-02 13:06:15
I have the following code to read a .csv file that contains two rows of data. I do not know what is wrong with it. How can I improve it to read a .csv file with two rows of data? #include <GUIConstants.au3> #include <string.au3> $file = FileOpen("test.csv", 0) If $file = -1 Then MsgBox(0, "error", "File doesn't exist or can't be read") Exit EndIf $string = (FileReadLine($file, 1)) $input = StringSplit($string, ",", 1) $input = StringSplit($string, ",", 1) Local $value1 = $input[1] ConsoleWrite("var=" & $value1) return value of _ParseCSV() is 2D array like $array[1][1] first line first data

How to use Send() to pass a string like “password#99@TT”?

三世轮回 提交于 2019-12-02 10:08:40
问题 I am using AutoIt to handle a browser authentication window which Selenium can't access. Below is my AutoIt code. Send("demo") Send("{TAB}") Send("password#99@TT") It only sends password# ; remaining characters 99@TT are skipped. Please let me know how to pass such a string via Send() command. 回答1: In the documentation of AutoIt about the Send() function you have an option to send RAW. See more documentation here In your case, I would try Send("password#99@TT", 1) Hope this helps! Edit You

Setting a hotkey in a Java program that exits, without a GUI

不问归期 提交于 2019-12-02 09:15:48
I'm writing a program that will run continuously and I was wondering if there was a Java equivalent to the Autoit SetHotKey(Key, Action()). I saw an answer on here that related to a GUI interface, but my program does not have a GUI. I just want the program to exit whenever I press a certain key, preferably ESC. I'd have the program running in an infinite loop using the awt.Robot's keyevents, I'd like to be able to quit the program by pressing a certain key. There are no core Java solutions since Java was built to be as operating system agnostic as possible, and to achieve your goal, you need a

How to schedule an AutoIt script to run daily?

ぐ巨炮叔叔 提交于 2019-12-02 08:35:46
I have a script that captures the screen to an image. I'd like it to run everyday at 4PM. How can I do this? Add to Task Scheduler . Alternatively a timer in AutoIt script itself is possible, but in turn requires the script's scheduled (or manual) startup on system start. 来源: https://stackoverflow.com/questions/29475068/how-to-schedule-an-autoit-script-to-run-daily