Jump to content

Recommended Posts

Posted

I'm trying to use AutoIt to automate the process or recording data, saving the file, and starting a new recording on a loop. Everything goes smoothly until I try to export the file through the software's save dialog. My current script double clicks the file location, sends ctrl+A to highlight the current file location, and then sends the desired file location path. For some reason this only works 25% of the time. Other times, it will send an invalid file location, or select a different file location. I'm not sure how to fix this.

My current script for the export:

MouseClick("left", 1233,268) ;Clicking the Export button in the program
WinWaitActive("File save") ;Waiting for the save dialogue to open
Sleep(2000)
MouseClick("left", 486,218,2) ;Double clicking the file location text box
Sleep(1000)
Send("^a") ;Ctrl+A on the file location text box
Sleep(1000)
Send("C:\Baumuller_AZ") ;sending the intended file location
sleep(1000)
MouseClick("left", 610,624) ;clicking on the Filename text box
Sleep(1000)
Send(@YEAR&@MON&@MDAY&" "&@hour&@min&" "&"Test") ;Sending the file name in the form of YYYMMDD HHMM Test

Here is an example of the intended file location being sent incorrectly:

Screenshot2025-09-19122229.png.b162919a65ce43559cf512eb407d8545.png

And an example of the file name being sent incorrectly:

Screenshot2025-09-19122218.png.db75f788d4b6e0736173794d5220336b.png

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.
×
×
  • Create New...