Hello All-
I am having problems trying to write a simple script. I am using SciTe version 3.2.0 & the AU3 Recorder & AutoIt v3. Here’s what the script needs to do:
Since I am using the keystrokes to open this file (control + A, & then the up arrow to select that particular item from the drop down), shouldn’t it appear on my screen? All that apparently is happening is the program is opening. I also tried to write it using the WinMenuSelectItem function but didn’t get anywhere with that, either.
Below is my code (the ID #s came from the AutoIT Window Info tool):
Can anyone tell me what I could be doing wrong? I am running Windows 7, & I do have some issues with permissions over the network but it seems my code stops before I even have to jump that hurdle!
Thanks for helping a newbie out!
I am having problems trying to write a simple script. I am using SciTe version 3.2.0 & the AU3 Recorder & AutoIt v3. Here’s what the script needs to do:
- Open a program
- Go to a file item
- Select a file by browsing out to the network
- Then click Open-
- Then click the Run button - then allow the file to process (this takes about 25 minutes)
- Then click Done.
Since I am using the keystrokes to open this file (control + A, & then the up arrow to select that particular item from the drop down), shouldn’t it appear on my screen? All that apparently is happening is the program is opening. I also tried to write it using the WinMenuSelectItem function but didn’t get anywhere with that, either.
Below is my code (the ID #s came from the AutoIT Window Info tool):
[ autoit ]
Run("C:\Program Files (x86)\Pictometry\ChangeAnalysis2.7\ChangeAnalysis.exe") WinActivate("Pictometry EFS -") Send("!a") Send("{UP}") Send("{Enter}") WinWaitActive("Annotate/Shapefile/DBF Maintenance") ControlClick("Shapefile/DBF Maintenance", "Browse...", "[ID:2333]") WinActivate("Open", "2") Send("L:\Analyst\PdxBatch.pbt") WinActivate("Open", "10") Send("{Enter}") WinWaitActive("Shapefile/DBF Maintenance") ControlClick("Shapefile/DBF Maintenance", "Run", "[ID:2334]") WinWaitActive("Shapefile/DBF Maintenance", "List1", "30") ControlClick("Shapefile/DBF Maintenance", "Done", "[ID:1]") WinClose("ChangeAnalysis- ")
Thanks for helping a newbie out!