<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  
  <configSections>
    <section name="PopupBasherConfiguration"
     type="Microsoft.Hpc.Excel.PopupBasherSectionHandler,Microsoft.Hpc.Excel,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"
     allowDefinition="Everywhere"
     allowExeDefinition="MachineToApplication"
             />
  </configSections>

  <system.diagnostics>
    <switches>
      <add name="PopupBasherTracing" value="Verbose"/>
    </switches>
    <sources>
      <source name="Microsoft.Hpc.MonteCarlo" switchValue="All">
        <listeners>
          <add name="Console" />
          <add name="MonteCarloLoggingListener" />
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add type="System.Diagnostics.ConsoleTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        name="Console" traceOutputOptions="DateTime">
        <filter type="" />
      </add>
      <add initializeData="C:\logs\MonteCarlo.svclog"
          type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
          name="MonteCarloLoggingListener" traceOutputOptions="Timestamp">
          <filter type="" />
        </add>
    </sharedListeners>
    <trace autoflush="true" />
  </system.diagnostics>

  <system.serviceModel>
    <bindings>
      <netTcpBinding>
        <binding name="ServiceBinding"
                 portSharingEnabled="true">
          <security mode="Transport" />
        </binding>
      </netTcpBinding>
    </bindings>
    <diagnostics performanceCounters="ServiceOnly" />
  </system.serviceModel>

  <!--
		Period = "2000" value in milliseconds for watching period
	-->
  <PopupBasherConfiguration Period="3000">
    <!--
			List each windows and children that we want to drive
			
			<Window
				Title = "Title of the window caption"
				Class = "Class name" => #32770 for dialog boxes, use companion tool like spy++ or AccExplorer32 to find them
			>
				<Child
					Title="Title of the window caption"
					Class="Class name" 
					Role="See role below" 
					Action="Supported action see below"
					Search="Search mode, Exact or by using Regular Expression"
				/>
			</Window>

			Action:
				DoDefault	=> The default action associated with the control will be executed
				Exist		=> Check existence

			Search :
				Exact		=> Search the title name by using exact noncasesensitive string matching
				RegEx		=> Search the title name by using a regular expression
							
			Role:
				ROLE_SYSTEM_TITLEBAR
				ROLE_SYSTEM_MENUBAR
				ROLE_SYSTEM_SCROLLBAR
				ROLE_SYSTEM_GRIP
				ROLE_SYSTEM_SOUND
				ROLE_SYSTEM_CURSOR
				ROLE_SYSTEM_CARET
				ROLE_SYSTEM_ALERT
				ROLE_SYSTEM_WINDOW
				ROLE_SYSTEM_CLIENT
				ROLE_SYSTEM_MENUPOPUP
				ROLE_SYSTEM_MENUITEM
				ROLE_SYSTEM_TOOLTIP
				ROLE_SYSTEM_APPLICATION
				ROLE_SYSTEM_DOCUMENT
				ROLE_SYSTEM_PANE
				ROLE_SYSTEM_CHART
				ROLE_SYSTEM_DIALOG
				ROLE_SYSTEM_BORDER
				ROLE_SYSTEM_GROUPING
				ROLE_SYSTEM_SEPARATOR
				ROLE_SYSTEM_TOOLBAR
				ROLE_SYSTEM_STATUSBAR
				ROLE_SYSTEM_TABLE
				ROLE_SYSTEM_COLUMNHEADER
				ROLE_SYSTEM_ROWHEADER
				ROLE_SYSTEM_COLUMN
				ROLE_SYSTEM_ROW
				ROLE_SYSTEM_CELL
				ROLE_SYSTEM_LINK
				ROLE_SYSTEM_HELPBALLOON
				ROLE_SYSTEM_CHARACTER
				ROLE_SYSTEM_LIST
				ROLE_SYSTEM_LISTITEM
				ROLE_SYSTEM_OUTLINE
				ROLE_SYSTEM_OUTLINEITEM
				ROLE_SYSTEM_PAGETAB
				ROLE_SYSTEM_PROPERTYPAGE
				ROLE_SYSTEM_INDICATOR
				ROLE_SYSTEM_GRAPHIC
				ROLE_SYSTEM_STATICTEXT
				ROLE_SYSTEM_TEXT
				ROLE_SYSTEM_PUSHBUTTON
				ROLE_SYSTEM_CHECKBUTTON
				ROLE_SYSTEM_RADIOBUTTON
				ROLE_SYSTEM_COMBOBOX
				ROLE_SYSTEM_DROPLIST
				ROLE_SYSTEM_PROGRESSBAR
				ROLE_SYSTEM_DIAL
				ROLE_SYSTEM_HOTKEYFIELD
				ROLE_SYSTEM_SLIDER
				ROLE_SYSTEM_SPINBUTTON
				ROLE_SYSTEM_DIAGRAM
				ROLE_SYSTEM_ANIMATION
				ROLE_SYSTEM_EQUATION
				ROLE_SYSTEM_BUTTONDROPDOWN
				ROLE_SYSTEM_BUTTONMENU
				ROLE_SYSTEM_BUTTONDROPDOWNGRID
				ROLE_SYSTEM_WHITESPACE
				ROLE_SYSTEM_PAGETABLIST
				ROLE_SYSTEM_CLOCK
				ROLE_SYSTEM_SPLITBUTTON
				ROLE_SYSTEM_IPADDRESS
				ROLE_SYSTEM_OUTLINEBUTTON
		-->
    <Windows>
      
<!--
        This rule matches error popups you might get from an XLL written in VB
      <Window Title="Microsoft Visual Basic" Class="#32770">
        <Child	Title="*"
						Class="MSOUNISTAT" Role="ROLE_SYSTEM_WINDOW" Action="Exist" Search="RegEx" />
        <Child Title="Fin" Class="Button" Role="ROLE_SYSTEM_PUSHBUTTON" Action="DoDefault" Search="Exact"/>
      </Window>
-->

<!--     
        This rule matches the VBA MsgBox dialog. Every time this pops up, this rule
        pushes the Ok button.
-->      
      
      <Window Title="Microsoft Excel" Class="#32770">
        <Child Title="Ok" Role="ROLE_SYSTEM_PUSHBUTTON" Action="DoDefault" Search="Exact" />
      </Window>

<!--     
        This rule matches the Excel File Open dialog. Every time this pops up, this rule
        pushes the Cancel button.
        -->
      <Window Title="Open" Class="#32770">
        <Child Title="Cancel" Role="ROLE_SYSTEM_PUSHBUTTON" Action="DoDefault" Search="Exact"/>
      </Window>


<!--     
        This rule matches the Excel Insert Hyperlink dialog. Every time this pops up, this rule
        pushes the Cancel button.
      <Window Title="Insert Hyperlink">
        <Child Title="Cancel" Role="ROLE_SYSTEM_PUSHBUTTON" Action="DoDefault" Search="Exact"/>
      </Window>
      
-->

    </Windows>
  </PopupBasherConfiguration>

</configuration>