Jump to content

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.....
 

 

<root>
<VersionConfig>
<ConfigFileVersion>3.6</ConfigFileVersion>
</VersionConfig>
 
<TargetConfig>
<!-- TargetType; 0=MSM/MDM, 1=APQ -->
<TargetType>0</TargetType>
</TargetConfig>
 
<ModeList>
 
<Mode>
<ModeName>GSM</ModeName>
<SampleNum>1</SampleNum>
<ChartMinPower>-120</ChartMinPower>
<ChartMaxPower>-60</ChartMaxPower>
<SigGenPowerLevel>-85</SigGenPowerLevel>
<SigGenFreqOffset>50</SigGenFreqOffset>
<Diversity>FALSE</Diversity>
<CheckSynthLock>TRUE</CheckSynthLock>
<LNARange0>TRUE</LNARange0>
<LNARange1>FALSE</LNARange1>
<LNARange2>FALSE</LNARange2>
<LNARange3>FALSE</LNARange3>
<LNARange4>FALSE</LNARange4>
<ChanStep>1</ChanStep>
<TxOn>FALSE</TxOn>
<TxPower>30</TxPower>
<WarnIfCalChannelsNotFoundInNV>TRUE</WarnIfCalChannelsNotFoundInNV>
<BCList>
<BCNode>
<BandClass>CELL-850</BandClass>
<ChannelList>128,251</ChannelList>
<DefaultRxCalChannels>128,145,163,180,198,215,233,251</DefaultRxCalChannels>
</BCNode>
<BCNode>
<BandClass>E-GSM-900</BandClass>
<ChannelList>975,1023;0,124</ChannelList>
<DefaultRxCalChannels>1,31,62,92,124,975,1000,1023</DefaultRxCalChannels>
</BCNode>
<BCNode>
<BandClass>DCS-1800</BandClass>
<ChannelList>512,885</ChannelList>
<DefaultRxCalChannels>512,537,562,587,612,637,662,687,712,737,762,787,812,837,862,885</DefaultRxCalChannels>
</BCNode>
<BCNode>
<BandClass>PCS-1900</BandClass>
<ChannelList>512,810</ChannelList>
<DefaultRxCalChannels>512,532,552,572,592,612,632,652,672,692,712,732,752,772,792,810</DefaultRxCalChannels>
</BCNode>
</BCList>
</Mode>
 
</ModeList>
 
<SigGenModelList>
<SigGenModel>
<Name>CTSTI_SG_HPE4438C</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_HPE4432B</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_HPE8247C</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_HP83712B</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_HP8664A</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_ESG3000</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_HP8960</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_MARC2024</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_MARC2026</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_MARC2031</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_RSSMU200</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_MG3700A</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_RSSFU</Name>
</SigGenModel>
<SigGenModel>
<Name>CTSTI_SG_RSSMIQ03B</Name>
</SigGenModel>
</SigGenModelList>
 
<TestInstConfig>
<GpibAddr>19</GpibAddr>
<!-- valid values for CalRoutine are OFF = 0, CONDUCTED = 1, RADIATED = 2 -->
<CalRoutine>0</CalRoutine>
<CalRoutineGPS_ToneSearchWindowSize_Hz>4000</CalRoutineGPS_ToneSearchWindowSize_Hz>
</TestInstConfig>
 
<TChartSeriesColorList>
        <GPS_GOBI>255,0,0</GPS_GOBI>
<LNA0_RX0>255,0,0</LNA0_RX0>
<LNA0_RX1>0,0,255</LNA0_RX1>
<LNA1_RX0>255,0,192</LNA1_RX0>
<LNA1_RX1>0,192,192</LNA1_RX1>
<LNA2_RX0>255,160,0</LNA2_RX0>
<LNA2_RX1>0,255,255</LNA2_RX1>
<LNA3_RX0>255,255,0</LNA3_RX0>
<LNA3_RX1>0,255,0</LNA3_RX1>
<LNA4_RX0>255,176,238</LNA4_RX0>
<LNA4_RX1>192,192,255</LNA4_RX1>
<Limit_RX0>255,160,0</Limit_RX0>
<Limit_RX1>0,255,0</Limit_RX1>
<Parent_RX0>255,160,0</Parent_RX0>
<Parent_RX1>0,255,0</Parent_RX1>
</TChartSeriesColorList>
 
<TemperatureIndex>
<!-- valid values for RoomTempIndex are 0 to 7 -->
<RoomTempIndex>3</RoomTempIndex>
</TemperatureIndex>
 
<AdcLogging>
<GetNVTHERM>FALSE</GetNVTHERM>
<AdcChannels></AdcChannels>
<AdcChanLabel></AdcChanLabel>
</AdcLogging>
 
<GsmTxConfig>
<!-- valid values for BurstVsContinuous are BURST_MODE = 0, CONTINUOUS_MODE = 1 -->
<BurstVsContinuous>1</BurstVsContinuous>
<!-- TSC is Training Sequence Code for test set synchronization, valid values for TSCindex are 0 to 255 -->
<TSCindex>4</TSCindex>
<!-- iModScheme = Modulation Code Scheme; 0=MCS1, 1=MCS2, to 8=MCS9 -->
<ModScheme>8</ModScheme>
<!-- TX can be enabled/disabled for each of the 8 time slots below; 0 = OFF, 1 = ON -->
<TxSlot0>1</TxSlot0>
<TxSlot1>0</TxSlot1>
<TxSlot2>1</TxSlot2>
<TxSlot3>0</TxSlot3>
<TxSlot4>1</TxSlot4>
<TxSlot5>0</TxSlot5>
<TxSlot6>1</TxSlot6>
<TxSlot7>0</TxSlot7>
</GsmTxConfig>
 
<GsmRxConfig>
<!-- RxAPI; 0=LegacyGetRSSI, 1=NewGetRxLevelDBM -->
<RxAPI>0</RxAPI>
<!-- NumAvgByDUT; # of averages internal to the Device Under Test for each NPT sample when RxAPI=NewGetRxLevelDBM -->
<NumAvgByDUT>1</NumAvgByDUT>
</GsmRxConfig>
 
<WcdmaConfig>
<!-- AutoDetermineAgcScale; if TRUE, then NPT will automatically determine AGC scaling; if FALSE then one can specify the AGC scaling with the subsequent items -->
<AutoDetermineAgcScale>TRUE</AutoDetermineAgcScale>
<RxAgcUnitsPerDB>10</RxAgcUnitsPerDB>
<MinRSSIofInterest>-106</MinRSSIofInterest>
<TxAgcUnitsPerDB>10</TxAgcUnitsPerDB>
<TxMinPower>-70.0</TxMinPower>
<!-- TxPowerMethod; 0=SetPdm, 1=SetTxAGC, 2=SetTxDBM -->
<TxPowerMethod>2</TxPowerMethod>
<!-- RxAPI; 0=LegacyGetRxAGC, 1=NewGetRxLevelDBM -->
<RxAPI>0</RxAPI>
</WcdmaConfig>
 
<CDMA2000Config>
<!-- TxPowerMethod; 0=SetPdm, 2=SetTxDBM -->
<TxPowerMethod>2</TxPowerMethod>
<!-- RxAPI; 0=LegacyGetRxAGC, 1=NewGetRxLevelDBM -->
<RxAPI>0</RxAPI>
</CDMA2000Config>
 
<LTEConfig>
<!-- DiversityConfigLTE; 0=Get both RX0 AND RX1 data when Diversity is selected, 1=Get ONLY RX1 data when Diversity is selected -->
<DiversityConfigLTE>1</DiversityConfigLTE>
<!-- TxBandwidth; 0=1.4MHz, 1=3MHz, 2=5MHz, 3=10MHz, 4=15MHz, 5=20MHz, 255=Match RX BW  -->
<TxBandwidth>255</TxBandwidth>
<!-- TxWaveform; 0=CW, 1=PUSCH, 2=PUCCH, 3=PRACH, 4=SRS, 5=UpPTS  -->
<TxWaveform>0</TxWaveform>
<!-- numRBsPUSCH  = Number of UL resource blocks to transmit on the PUSCH  -->
<numRBsPUSCH>0</numRBsPUSCH>
<!-- numRBsPUCCH  = Number of UL resource blocks to transmit on the PUCCH  -->
<numRBsPUCCH>0</numRBsPUCCH>
<!-- PUSCHStartRBIndex  = Starting resource block index on the PUSCH  -->
<PUSCHStartRBIndex>0</PUSCHStartRBIndex>
<!-- TxPowerMethod; 0=SetPdm, 2=SetTxDBM -->
<TxPowerMethod>2</TxPowerMethod>
</LTEConfig>
 
<GPSConfig>
<!-- FIELDS BELOW RELATED TO ExtLnaState APPLY ONLY TO GPS_GEN8 -->
<!-- ForceExtLnaState determines whether we leave the EXTERNAL LNA state as is, or force it ON|OFF  -->
<ForceExtLnaState>TRUE</ForceExtLnaState>
<!-- when ForceExtLnaState=TRUE, then ExtLnaState determines the EXTERNAL LNA ON|OFF state  -->
<ExtLnaState>ON</ExtLnaState>
<!-- set the timeout (in seconds) for the collection of GPS IQ data -->
<IQtimeout>90</IQtimeout>
</GPSConfig>
 
<LimitTestingConfig>
<!-- valid values for LimitTestingMethod are OFF = 0, LIMIT_LINE = 1, PARENT_CHILD_DELTA = 2 -->
<LimitTestingMethod>0</LimitTestingMethod>
<ParentFile>Paste filename of Parent data here</ParentFile>
<LimitLineRx0>-95.0</LimitLineRx0>
<LimitLineRx1>-95.0</LimitLineRx1>
<DeltaLimitRx0>5.0</DeltaLimitRx0>
<DeltaLimitRx1>5.0</DeltaLimitRx1>
</LimitTestingConfig>
 
<DataLogOptions>
<SampleNum>1</SampleNum>
<!-- StartDelay; units are seconds. delay before test begins  -->
<StartDelay>0</StartDelay>
<!-- SetupDelay; units are ms. must be integer. delay between setup and first rssi sample  -->
<SetupDelay>10</SetupDelay>
<ComPort>7</ComPort>
<UseQpstServer>FALSE</UseQpstServer>
<OnlineModeOnExit>FALSE</OnlineModeOnExit>
<FilenamePrefix></FilenamePrefix>
<FilenameSuffix></FilenameSuffix>
<FolderName>C:TempNPT</FolderName>
    <Silent>FALSE</Silent>
</DataLogOptions>
</root>

Edited by Melba23
Added spoiler to reduce post size
Link to comment
Share on other sites

  • Moderators

robismyname,

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. ;)

M23

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:

Spoiler

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...