Jump to content
Sign in to follow this  

can autoit script be placed in a XML configuration file?

Recommended Posts

Im trying to select the ok button for a warning message that comes up during a test via mousemove/mouseclick feature in autoit.
So the autoit code does something like this:
If GUICtrlRead($GSM850)=1 Then
If $EMP = False Then
RUNWAIT($QDir&"NoiseProfilingTool.exe HP_GSM_850.xml run")
so it runs this .exe program called noiseprofilingtool and then looks for a xml file on my C drive that has all the configuration info needed to run the test in the GUI.
The issue is that the warning window that I wish to press the ok button on occurs when the script initiates noiseprofilingtool.exe. So my point is that I cant place mousemove/mouseclick feature before or after the autoscript code line because the autoscript code initiated the .exe program so until the .exe program is completed the next line of autoit code will not be executed!
So i was thinking that I could add the autoit code movemouse/click that I need to press the ok button in the warning window within the .exe program in the XML file but im not sure where to put it. THE XML FILE is below. CAn someone tell me where to place the autoit code for mousemove/mouse click in the XML file? not sure if this is possible.....


<!-- TargetType; 0=MSM/MDM, 1=APQ -->
<!-- valid values for CalRoutine are OFF = 0, CONDUCTED = 1, RADIATED = 2 -->
<!-- valid values for RoomTempIndex are 0 to 7 -->
<!-- valid values for BurstVsContinuous are BURST_MODE = 0, CONTINUOUS_MODE = 1 -->
<!-- TSC is Training Sequence Code for test set synchronization, valid values for TSCindex are 0 to 255 -->
<!-- iModScheme = Modulation Code Scheme; 0=MCS1, 1=MCS2, to 8=MCS9 -->
<!-- TX can be enabled/disabled for each of the 8 time slots below; 0 = OFF, 1 = ON -->
<!-- RxAPI; 0=LegacyGetRSSI, 1=NewGetRxLevelDBM -->
<!-- NumAvgByDUT; # of averages internal to the Device Under Test for each NPT sample when RxAPI=NewGetRxLevelDBM -->
<!-- AutoDetermineAgcScale; if TRUE, then NPT will automatically determine AGC scaling; if FALSE then one can specify the AGC scaling with the subsequent items -->
<!-- TxPowerMethod; 0=SetPdm, 1=SetTxAGC, 2=SetTxDBM -->
<!-- RxAPI; 0=LegacyGetRxAGC, 1=NewGetRxLevelDBM -->
<!-- TxPowerMethod; 0=SetPdm, 2=SetTxDBM -->
<!-- RxAPI; 0=LegacyGetRxAGC, 1=NewGetRxLevelDBM -->
<!-- DiversityConfigLTE; 0=Get both RX0 AND RX1 data when Diversity is selected, 1=Get ONLY RX1 data when Diversity is selected -->
<!-- TxBandwidth; 0=1.4MHz, 1=3MHz, 2=5MHz, 3=10MHz, 4=15MHz, 5=20MHz, 255=Match RX BW  -->
<!-- TxWaveform; 0=CW, 1=PUSCH, 2=PUCCH, 3=PRACH, 4=SRS, 5=UpPTS  -->
<!-- numRBsPUSCH  = Number of UL resource blocks to transmit on the PUSCH  -->
<!-- numRBsPUCCH  = Number of UL resource blocks to transmit on the PUCCH  -->
<!-- PUSCHStartRBIndex  = Starting resource block index on the PUSCH  -->
<!-- TxPowerMethod; 0=SetPdm, 2=SetTxDBM -->
<!-- ForceExtLnaState determines whether we leave the EXTERNAL LNA state as is, or force it ON|OFF  -->
<!-- when ForceExtLnaState=TRUE, then ExtLnaState determines the EXTERNAL LNA ON|OFF state  -->
<!-- set the timeout (in seconds) for the collection of GPS IQ data -->
<!-- valid values for LimitTestingMethod are OFF = 0, LIMIT_LINE = 1, PARENT_CHILD_DELTA = 2 -->
<ParentFile>Paste filename of Parent data here</ParentFile>
<!-- StartDelay; units are seconds. delay before test begins  -->
<!-- SetupDelay; units are ms. must be integer. delay between setup and first rssi sample  -->

Edited by Melba23
Added spoiler to reduce post size

Share this post

Link to post
Share on other sites


Welcome to the AutoIt forums.  I have moved this question to the "General Help" section where it is more suited. :)

As a quick answer, I do not believe that you will be able to able to put the AutoIt code in the XML file.  But what you could do is use Run to start your app and then wait for the popup and deal with it.  You should be able to identify the subsequent closure of the app using ProcessExists or WinExists in a loop and then continue with the script. ;)


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...