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

ControlFocus + SEND Command issues

$
0
0
All,

I need to change the behaviour of a couple of AutoIT script written by our previous System/Appliacation engineer. Thank god he did leave the Source code files behind on the shares and I'm trying to identify what the script is actually doing. There are a couple of references which I can't find back in the script. I'll list a couple below:
1. SEND("!ans{ENTER}")
2. CONTROLFOCUS("WINDOWNAMEREMOVED","","Button8")
CONTROLCLICK("WINDOWNAMEREMOVED","","Button8")
3. CONTROLFOCUS("WINDOWNAMEREMOVED","","Button7")
CONTROLCLICK("WINDOWNAMEREMOVED","","Button7")


When it does perform the code listed above under "1." It does perform 3 actions:
Within the application it goes to Transaction -> Inventory -> Series Post This is in the Menu bar of the application
Where does it get the !ans value?

Then the code listen under "2." and "3.", I know what CONTROLFOCUS and CONTROLCLICK does. What I don't understand is how it can find "Button8" and "Button7". "Button 7" is simply a CANCEL button from a screen but "Button 8" is a custom made button within the application so how does AutoIT know what "Button8" is? I don't see any references in the AutoIT Script which defines the location of these buttons. The only show up in the CONTROLFOCUS and CONTROLCLICK command.

Please help me out. Any help is appreciated.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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