Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to Get a File Menu Item Opened?

$
0
0
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:
  • 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.
My code will open the program but then it pauses – the file item never opens (it’s called “Shapefile/DBF Maintenance” in my script. If I click on the AutoIT icon in my tray, it says Script Paused. So I have to Exit out of it.


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- ")
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!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>