Jump to content

Recommended Posts

Something simple enough, and I am sure it's an oversight, but I have not been able to track this down. The entire script is attached, but here is the point of failure.

Note: I am getting the "Error: subscript used on non-accessible variable" but I thought the initial line of:

AutoItSetOption('MouseCoordMode', 0)

Should address that issue? 


; Install updates (minimized and updating for many minutes)
; Updates Not Installed Screen
   ; Wait for updates to complete
WinWait("ProSeries Update")

   ; Wait just over 9 minutes to ensure popup is ready (test alternative to WinWait)

   ; Set focus on Product Licenses window
WinActivate("ProSeries Update")

   ; Send Mouse Click to Install Now button

MouseClick ( "left" [, 581, 362 [, clicks = 1 [, speed = 10]]] )

; end Installing Updates screen



Thanks for any insights!



Link to post
Share on other sites

Udpate, tried with simpler:


MouseClick("left", 580, 360, 50)


Now, not getting an error, but the installer is not advancing.


1. Verified the Window Information tool was set to "Window" and verified coordinates few times as I moved the window around the screen.

2. Verified I am looking at the mouse tab as well as the position information there.

Link to post
Share on other sites

Why 50 clicks?


Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples


Link to post
Share on other sites
3 hours ago, Earthshine said:

use silent install of installer instead of automation of installer

I wish, we typically do that, we have around 500 applications packaged for SCCM, but this is pretty much the only one that has to be done manually, partially because of the updater. 

Link to post
Share on other sites
1 hour ago, Earthshine said:

you could use the Information Tool to capture the buttons and controls you want to control, and then talk direct to them maybe?

Typically I use:


or a tab space or tab enter:


But, this installer is a real nightmare. There is no "button" just a giant panel when attempting to get button info with the tool.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By ahha
      Is there a way to programmatically determine the state of MouseCoordMode in AutoIt?
      I've got a function that is called that must have Opt("MouseCoordMode", 1) 1=absolute, however when I'm done I'd like to return the MouseCoordMode to what the calling program was using so I don't mess it up.  Yes, I know I've written the program, however different functions within the program use different values for MouseCoordMode and rather than using some Global to keep track I'm wondering if I can determine the state of MouseCoordMode programmatically.  Thanks for any hints.
    • By TheAutomator
      I'm writing a script that uses a lot of specific mouse clicks to automate tasks on my browser, server system, and email software for work.
      Sometimes the system gets updated or someone drags a handle to the left or right and I have to put in new mouse click coordinates.

      It would be a lot more easy to label them and put them in some sort of ini file, but then i have to load every X and Y (and sometimes mouse speed) into a variable
      when loading the script.

      How would you guys go about such a script, any ideas on how to store and load lot's of click coordinates from a file?
      There are some pixel color checks, sleeps and other code between the mouse clicks too..

      Ideas i had so far:
      - string replace new coordinates in the main script with another autoit script that uses a crosshair to show every mouse position.
      - manually write an ini file and load every X, Y, Speed into a huge number of variables: $Searchinput_X = iniread...., $Searchinput_Yiniread...., $Searchinput_Speed = iniread....
      - split a textfile line by line into an array and ignore labels that begin with ";" for example (a bit like a custom ini file)

      These all seem somewhat tedious i guess..
    • By dejhost
      I am trying to automate a software called "LabelImg" (https://pypi.org/project/labelImg/).
      My autoit-script is started once I selected a folder with images within LabelImg. Pressing the button "Next Image" or pressing the shortcut "d" (https://github.com/tzutalin/labelImg#Hotkeys) jumps to the next image in the selected folder. This shall happen once per second.
      #include <Misc.au3> #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> Opt("WinTitleMatchMode", 1) Local $hDLL = DllOpen("user32.dll") While 1 If _IsPressed("1B", $hDLL) Then ExitLoop Else Local $temp = WinActivate("labelImg") ConsoleWrite($temp & @CRLF) If WinActivate("labelImg") Then ConsoleWrite("All Set!" & @CRLF) EndIf ;Send("d") Local $temp = MouseClick($MOUSE_CLICK_RIGHT, 50, 200) If $temp <> 1 Then MsgBox(1, "$temp", $temp) ExitLoop EndIf Sleep(1000) EndIf WEnd DllClose($hDLL) So the Send ("d")-command and the MouseClick are alternative methods to jump to the next image. Both fail.
      Both ConsoleWrite's deliver proper feedback (I continiously get the handle and "All set" ).

      Could you tell me what I'm doing wrong? 
      Thank you.
    • By Rskm
      Hi, recently i created a GUI for some calculations in AutoIT.  The GUI has 2 tabs and on the first tab, it has few inputboxes where i use to click with mouse and start entering the inputs. i recently made some changes in the position of these textboxes. I made this by changing the autoit code file instead of making changes in KODA. Now i cannot click inside these textboxes with mouse. However, i can use TAB key to cycle through/enter input in these input boxes. what could have made the inputboxes not responding to mouseclicks. thanks
    • By lunarlattice
      Hi All,
      I am trying to login into our application using AutoIT. When I launch the application a splash screen appears and the login screen goes behind it. At this point the script pauses and I loose control of everything. I have literally tried everything for the past two days but nothing has worked yet. Any suggestions would be appreciated.
      RunWait("\\mchsv411.siplaceworld.net\splmshare\int00\conf\start_apps\windows\start_nx110.bat en portal_client int00 tc112", "", @SW_MAXIMIZE)
      AutoItSetOption("SendKeyDelay", 200)
      Local $hWnd = WinWaitActive("Teamcenter Login")
      MouseClick("left", @DesktopWidth / 2, @DesktopHeight / 2)
      The splash screen has title "Teamcenter" and is static.
      I tried to click on the center to get control of login window.
      I have tried WinActivate, WinSetState, ControlCommand and a lot of other things.
  • Create New...