I am trying to write an Autohotkey 2.0 script that opens the "Find and Replace" window and marks two checkboxes as checked:
    WinActivate "Trados Studio - "
    WinWaitActive "Trados Studio - ", , 4
    Send("^f")
    WinWaitActive "Find and Replace", , 4
    ControlSetChecked 1, "&Match case", "Find and Replace"
    ControlSetChecked 1, "M&atch whole word", "Find and Replace"
    ControlSetChecked 1, "&Target", "Find and Replace"The first time when I run it, it works great. But second time the checkboxes get unchecked. Does anyone have an idea what could be the problem?

 
									 Translate
 Translate 
		
 
					 
				 
  
				 
  
  
				