EnvironmentWhisper Posted Friday at 07:26 PM Posted Friday at 07:26 PM 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: And an example of the file name being sent incorrectly:
argumentum Posted Friday at 11:56 PM Posted Friday at 11:56 PM 4 hours ago, EnvironmentWhisper said: Send(@YEAR&@MON&@MDAY&" "&@hour&@min&" "&"Test") ;Sending the file name in the form of YYYMMDD HHMM Test Try: ControlSetText() Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now