I have a script tool that I'm executing inside of an add-in, but if I click on another map while the tool is running it will output to that map which is causing problems in my add-in because it is expecting the other map to be populated. Currently I am just using the progress dialog to prevent the user from clicking on anything, but I wanted to know if there was a way to prevent them from clicking on other maps using conditions. I tried using:
FrameworkApplication<SPAN class="punctuation token">.</SPAN>State<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Deactivate</SPAN><SPAN class="punctuation token">(</SPAN>esri_mapping_mapPane<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
but it didn't seem to do anything.