Questions tagged [autoit]

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
33 views

AUTOT - Stop loop

i have code one mini app. I want ask to exit or not from a while. But all after while not working. I share all code : Global $test $choice = GUICreate("Custom MsgBox", 225, 80) ...
Cress's user avatar
  • 9
0 votes
1 answer
60 views

Check size and position in background

I want to detect if a window is resized or moved using this code: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda ...
Cress's user avatar
  • 9
0 votes
1 answer
38 views

Outputting programs in the Windows system tray with AutoIT

is there a way to use AutoIT to display which programs are currently running or displayed in the Windows system tray? I have already consulted some AI tools and looked in the AutoIt documentation but ...
Luca23401's user avatar
0 votes
1 answer
34 views

Autoit click on button which is on Frame

can someone please help me with my code , im trying to click on "Setup" text but this is on Frame , so i dont know how to do that , thank you my not working code : #include <Array.au3> ...
DIMM_V2's user avatar
  • 115
0 votes
0 answers
27 views

ControlClick chooses the wrong context menu item

Using AutoIt I need to right-click which opens a context menu and then select the 6th item. Send("{}") chooses randomly. AutoIt Window Information Tool shows only [CLASS:#32768] about the ...
NodePy's user avatar
  • 1
1 vote
0 answers
46 views

Object error during installation of Windows updates

My code used to work but now I get: "The requested action with this object has failed" The script crashes when I try to install drivers on a new operating system: Func download_and_install(...
Ice's user avatar
  • 11
0 votes
0 answers
43 views

Send("{DOWN}") on a context menu doesn't work everytime

I am automating Eclipse IDE on a Windows 10 system. I need to search for "QueueManagers" in a SysTreeView32, select it, right-click it to open the context menu and move to "Open in new ...
NodePy's user avatar
  • 1
0 votes
0 answers
34 views

_GUICtrlTreeView_FindItem and _GUICtrlTreeView_ClickItem not working as expected

I am automating Eclipse IDE in a remote Windows 10 system. I used Windows Remote Desktop in Mac to connect to the Windows system. In this automation I need to search for "QueueManagers" in a ...
NodePy's user avatar
  • 1
0 votes
0 answers
62 views

Full iMDB page download

I'm trying to download webpages like: https://www.imdb.com/title/tt6238614/episodes/?year=2017. Using InetRead(): $sim01 = BinaryToString(InetRead('https://www.imdb.com/title/tt6238614/episodes/?year=...
Paul Queen Soft's user avatar
0 votes
0 answers
44 views

How to use ControlClick without controlid?

I want to use AutoIt for automation tests of my project developed in Qt Creator, but the finder tool in AutoIt Window Information Tool cannot access the GUI. So I used UIAspy. According to the ...
B.ars's user avatar
  • 1
0 votes
1 answer
162 views

How to rename a file when it arrives in a specific folder?

I'm using Playwright to record test videos and save them to a specific folder. You aren't able to rename these video files when they're made in Playwright, but I need file names to be date and time of ...
Tyler Williams's user avatar
0 votes
0 answers
60 views

Automate local application (similar to a browser) using Selenium

I have a (complete IE) browser-based application, let's call it "app". I want to open this "app" and operate it with the Selenium Robot Framework to make it acting as a real ...
Long Guan's user avatar
0 votes
0 answers
128 views

Fastest way to match data between 2 arrays

I have 2 arrays: $r01 has 8,000 rows (single column list of iMDB ID's). $info01 has 44,000 rows (complete movie details including iMDB ID's). I need to find all records from first array that are in ...
Paul Queen Soft's user avatar
0 votes
1 answer
70 views

Move Desktop Icon Positions

I have code that in theory should allow to movement of desktop icons based on their names. The code is not functional. I've tried using different shortcut names to no avail. Here is the code. #...
Stammenator's user avatar
0 votes
0 answers
43 views

Splash screen with alpha channel

I am trying to create a splash screen window with alpha transparency in Python. It just has to display an image. I was successful with AutoIt but don't have experience with ctypes or win32 API and it ...
Stellar Mouse's user avatar
0 votes
1 answer
47 views

AutoIT failing to run a Dll function which is successful from compiled C++

I'm trying to call WTSVirtualChannelOpenEx from a dll using AutoIT, but I keep running into errors. I've verified the call does not fail if done in the following C++ code: LPSTR fname = (char*)"...
viraptor's user avatar
  • 33.5k
0 votes
1 answer
108 views

AutoIt _IEAttach - No match in IE mode

To begin, i open a webpage that then reloads in IE mode through Edge. Once loaded i want to click on the Login button with the innertext "Login". But autoit says that it can't pick up the ...
Anthony Cox's user avatar
1 vote
1 answer
139 views

How to avoid concurrent callbacks to user defined routine?

I am attempting to modify some Boost code so that it is compatible with Autoit. The original project can be found here. My version can be found here. I could use some help in determining how to ...
Dan Pollak's user avatar
0 votes
1 answer
118 views

Autoit: How to return just the cell/row of _Excel_RangeFind

I am trying to select a range, the range always starts at row 4 and then select a range until a value shows. The value im looking for is '**Total' I used _Excel_RangeFind to find the value in the ...
D1scher44's user avatar
0 votes
0 answers
76 views

How to check this checkbox?

I want AutoIt to check a checkbox automatically: #RequireAdmin Run (@ScriptDir & '\UrlDisabler_x64.exe') AutoItSetOption( 'MouseCoordMode', 0) WinWait('Select URL Disabler v1.2') WinActivate('...
AllenHu's user avatar
  • 13
-1 votes
1 answer
66 views

Automate GUI usage on windows for an ERP program

I'm trying to automate a task: I want to regularly open our ERP system and export some data. (The ERP system does not have an API) I'm quite alright with coding (R, python, scripting) and I think I ...
ulima2_'s user avatar
  • 1,296
1 vote
0 answers
106 views

Python Selenium Upload a file via AutoIT

I am trying AutoIT first time to upload .xlsx file in python. It's not text box so I can not use sendkey method. This is AutoIT script: import autoit WinWaitActive("File Upload") Send("...
Ash's user avatar
  • 11
0 votes
0 answers
51 views

How to show tooltip? I have tried everything but I have no solution yet

class Programmer { private const string StrTip = "Hello world"; public static void Main(string[] args) { AutoItX3 Auto = new(); while (true) { ...
NameBlue's user avatar
-1 votes
1 answer
69 views

Timer loop throws exception

My script to automate the game Vikings is doing the first step in the loop (dragging) but throws the error above on click event (which stops the script): HotKeySet("{ESC}", "Terminate&...
Alexander Eismond's user avatar
0 votes
0 answers
80 views

VSCode marks functions as undefined, because the include structure of my Project is odd

I am having troubles with the Problems-Feature of VSCode. The language of my code is AutoIt, but i think the same problem might occur when using other languages. I have a structure in my Project, ...
Felix Glitsch's user avatar
-1 votes
1 answer
116 views

loop use in switch case autoit

I have a thousands mini tools, I am trying to create a menu by using Autuit. I have to define thousand functions and case and variable how i can make it easy. here is my code how can use loop for ...
Muhammad Adeeb Rana's user avatar
0 votes
1 answer
165 views

ChromeDriver - stale element reference

I'm using ChromeDriver on Windows with AutoIt. Work flow is like this: navigate to page, find element (input field), post text, submit is OK = so far, so good. I a few seconds (also tried 30-40 ...
Paul Queen Soft's user avatar
-1 votes
2 answers
41 views

Bind content with range to an key

I want to bind some variable textcontent to an specific key (example on key p) For example: First press on p: "hannes1" second press on p: "hannes2" third press on p: "hannes3&...
Natrium2's user avatar
2 votes
0 answers
255 views

Handling print as PDF in selenium webdriver

I am trying to print as pdf by selenium but without the header and footer information. I made this code using Java and AutoIT tool to deal with the print window. Here's my Java code: ChromeOptions ...
Filipe Vaz's user avatar
0 votes
1 answer
266 views

java.lang.NoSuchFieldError: com.jacob.activeX.ActiveXComponent.m_pDispatch J

File file = new File("lib", "jacob-1.20-x64.dll"); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); String ...
Shiva Kumar's user avatar
-1 votes
1 answer
187 views

How to get Firefox version number?

Trying to get Firefox version number, why is the line not copied from the dll file? #RequireAdmin $DLL = DllOpen("xul.dll") $st = FileReadLine('C:\Program Files\Mozilla Firefox\xul.dll', ...
Dmitry's user avatar
  • 1
-1 votes
1 answer
68 views

AutoIt: Why can't I insert an element into an array using a function?

When I call the Bar function, the element is not inserted into the array passed as an argument. Here is my code: Foo () Func Foo () Local $Baz[100] = [] Call ("Bar", $Baz) ...
AutoIt's user avatar
  • 1
-1 votes
1 answer
100 views

How to put filename with spaces as parameter?

When I run my AutoIt script for a filename without spaces ("filename.txt") it gets executed successfully. But when filename contains spaces ("File Name.txt") I get error "File ...
Sam's user avatar
  • 62
-1 votes
2 answers
120 views

Replace multiple If statements with For statement

My script to find where a value in Array $c[] is in Array $a[] works, but nested If statements are too long. Can this be shortened using a For statement using a variable for array $c[] with the ...
주현태's user avatar
0 votes
1 answer
112 views

How to set a hotkey to run a command line?

I want SHIFT + Numpad + to run command line: "C:\Program Files\foo\bar.exe" -path "F:\something\dir\blah\"
Doug Cassidy's user avatar
  • 1,818
-1 votes
1 answer
166 views

Passing Command Line Argument to SwitchCase in AutoIt

I have a script that has a GUI and I have been running with a start button using the below code: Case $StartButton I would also like to try scheduling this using Windows TaskScheduler to run ...
Nick's user avatar
  • 33
-1 votes
1 answer
104 views

AutoIT every 60 seconds execute function

I use AUTOIT and KODA to build a GUI, and I have a function to move a file. I want to execute CopyFile($sFilePath, $dFilePath, $FileFilter, $LastWriteSec) function automatically every 60 seconds, and ...
Arien's user avatar
  • 1
0 votes
1 answer
146 views

Windows 10 - How to check if a particular key exists on the keyboard (using Win32 API)

I want to check to see if the attached keyboard has a particular key. In this instance, I want to know if the Windows key is present, since many keyboards do not have it. I'm coding in AutoIt, but ...
Amby131's user avatar
  • 81
0 votes
0 answers
269 views

How to use the control_click function with pyautoit?

I am trying to simulate mouseclicks with python, without using my actual mouse. I have found the autoit library and the control_click function seems to do exactly what I want. However, I am not really ...
Jonathan's user avatar
0 votes
1 answer
60 views

Running RPT from Crystal Reports 2008 and exporting to PDF

I'm trying to run a report automatically and silently. I found this script: #include <GUIConstants.au3> AutoItSetOption("WinTitleMatchMode", 2) Dim $sReportName Dim $objCRApp Dim $...
alanbr00's user avatar
0 votes
1 answer
97 views

PixelGetColor (called with wrong number of args)

I'm trying to create a simple script for getting the hex color value of a position on the screen from a variable given by an input box. The script is not starting because of that error, I don't really ...
PeeItchPee's user avatar
0 votes
0 answers
160 views

Azure VM UI automation

I migrate a script from a PC to the Azure cloud. This AutoIt script simulates keyboard and mouse operations. If I create a VM I can run the script using RDP so long as I keep the RDP window active. ...
dersu's user avatar
  • 189
-1 votes
1 answer
522 views

AutoIT - winhttp.winhttprequest.5.1 MSXML2.XMLHTTP.6.0 large download fail

I have a problem with winhttp.winhttprequest.5.1 & MSXML2.XMLHTTP.6.0 for download large bin file. My code : ;Droit Admin #RequireAdmin ;Handler Error Global $__g_oHTTP_ErrorHandler = ObjEvent(&...
Jérémy Arruebo's user avatar
-1 votes
1 answer
608 views

Run powershell from autoit

I'm trying to run the following AutoIt program #include <Timers.au3> While 1 Sleep(10) $idleTimer = _Timer_GetIdleTime() If $idleTimer > 600 And Not ProcessExists("powershell....
sta0vr's user avatar
  • 7
-1 votes
1 answer
56 views

Autoclick script cannot run even though no errors be found

I have construct a script for autoclick when I press F7, but by somehow the script cannot start. Can someone point out for me what I have wrong? HotKeySet("{f7}","LoopFlagSwitch") $...
Rotomegax's user avatar
1 vote
0 answers
85 views

Import *.cer personal certificate file after renewing - AutoIt and Chilkat ActiveX library

Is there way how to import *.cer personal certificate file after renewing and pair it with private key stored in Certificate Enrollment Request ? I am using AutoIt and Chilkat ActiveX library. EDIT: I ...
Honza's user avatar
  • 11
0 votes
1 answer
146 views

Download a file reading first a file which contains the url

I have an mp3.txt file which contains URLs to download. How do I read the contents to then download the URLs? I tried this but it's not working: Func _downloader($link) Local $dwnarrayread[3] = [...
Jordan Black's user avatar
-1 votes
1 answer
187 views

Detect Single/Double/Long Key Press on keyboard (Autoit)

Please, help me, how write code on Autoit for detect Single Key Press - On the keyboard pressed the button once Double Key Press - On the keyboard quickly pressed the button twice Long Key Press - On ...
SharkyEXE's user avatar
0 votes
0 answers
79 views

Using os.sytem to call another python script and pass it arguments

I am using the solution in Python Selenium Webpage with Windows Security to try and deal with the Windows Security prompt when I try and load up a web page. Using the solution in that post as a ...
user2334659's user avatar
0 votes
1 answer
63 views

Adding checkboxes from an ini file

I have an ini file with something like the following: [tweaks] Tweak 1=tweak1.bat Tweak 2=tweak2.bat Tweak 3=tweak3.bat I can read it easily enough with: local $tweaks = IniReadSection(@ScriptDir &...
Manngo's user avatar
  • 14.6k

1
2 3 4 5
36