autoit

Search tree and select items

社会主义新天地 提交于 2019-12-04 22:52:38
Do you know how to scan a tree and select an item. For example is the autoit help file. I expand all the tree and what it has to do next is scan the items with a "history" in its name. If true, it has to select it and sleep for 5 seconds and continue select the next item it finds until end loop. Global $hWnd = ControlGetHandle("[CLASS:HH Parent;TITLE:AutoIt Help]", "", "[CLASS:SysTreeView32; INSTANCE:1]") $hItemFound = _GUICtrlTreeView_FindItem($hWnd, "History",True) _GUICtrlTreeView_SelectItem($hWnd, $hItemFound) It's that easy: #include <GuiTreeView.au3> Global $hWnd = ControlGetHandle("

Curve mouse movement

五迷三道 提交于 2019-12-04 21:03:22
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][1][0]] $currcoord[2] = $coords[$j - 1][2][$coords[$j - 1][2][0]] EndIf Else $currcoord[1] =

User-defined sorting comparison using AutoIt

久未见 提交于 2019-12-04 19:40:59
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 you like with your comparisons. Is there anything in AutoIt that does this? The documentation is great,

AutoIt3相关内容整理

為{幸葍}努か 提交于 2019-12-04 08:23:31
零、AutoIT v3在线中文手册 https://www.jb51.net/shouce/autoit/ 一、AutoIT可以干啥 1.运行Windows 及 DOS 下的可执行文件 2.模拟键击动作(支持大多数的键盘布局) 3.模拟鼠标移动和点击动作 4.对窗口进行移动、调整大小和其它操作 5.直接与窗口的“控件”交互(设置/获取文字、移动、关闭等) 6.配合剪贴板进行剪切/粘贴文本操作 7.对注册表进行操作 二、如何使用AutoIT 1.安装: 百度下载安装 2.运行: a.桌面双击运行 b.dos命令调用执行 3.基本语法: 注:autoIT不区分大小写;autoIT以缩进来表示代码块;$CmdLine[0] 保存着命令行中参数的个数,$CmdLine[1] 是第 1 个参数, $CmdLine[2] 则是第 2 个参数……; a.注释:autoIT中以分号为单行注释,注释掉的内容不会被执行 b.信息弹窗——MsgBox: ; 这是我写的第二个脚本(带自定义函数) MsgBox(0, "我是弹窗标题", "我是弹窗内容") ; 函数名调用 TestFunc() Func TestFunc() MsgBox(0, "我是函数调用弹窗标题", "我是函数调用弹窗内容") EndFunc    持续更新中。。。。。。 来源: https://www.cnblogs.com

Keeping remote desktop session “alive” [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-04 07:56:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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,

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

戏子无情 提交于 2019-12-04 05:38:34
问题 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. 回答1: There are no core Java

Run AutoIt on remote machine using psexec

自闭症网瘾萝莉.ら 提交于 2019-12-04 05:12:17
问题 I am trying to run an AutoIt script on a remote machine. psexec.exe -accepteula \\remotemachine -u admin -p password "C:\Program Files\AutoIt3\AutoIt3.exe" "C:\Users\admin\runNotepad.au3" I am trying to open a Notepad from the script and write something in it. I am also writing some logs from the script. Although I can see the logs, but I am not able to see anything happening on the screen. I tried with argument -i 0 which opens an interactive screen which is not same as running the script on

Send an email with AutoIt

半世苍凉 提交于 2019-12-03 12:21:37
问题 How to send an email with AutoIt? Just need a clean example and explanation, containing: to from subject message 回答1: 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

AutoIt with Firefox

大憨熊 提交于 2019-12-03 10:05:36
问题 I have several tabs open in Firefox. I want AutoIt to activate a particular tab in Firefox. How can this be done? 回答1: 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). 回答2: 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.

Autoit Recorder not available

假如想象 提交于 2019-12-03 06:44:23
问题 From here I downloaded: SciTE4AutoIt3.exe SciTE.exe But AutoIt Recorder is not in the tools menu. Also tried downloading AutoIt Recorder, though I could not. How to get AutoIt Recorder? 回答1: As of AutoIt v3.3.14.1 AU3Recorder is not included anymore. The only way is: Download AutoIt v3.3.14.0. Copy autoit-v3.3.14.0.zip\install\Extras\Au3Record to {AutoIt-Install-Dir}\Extras\Au3Record . Start AU3Recorder: Run {AutoIt-Install-Dir}\Extras\Au3Record\Au3Record.exe . Or open SciTE and click Tools >