Here is the simplified code. The values of T2 and T6 change constantly during execution.
<TVAR2:02:01:c:\audio2><TVAR2:06:01:01><ADFBEG:F10:090:000001:000000:C:\Audio\Utils\xy_surcodecd.csv><TMVAR2:05:91:91:000:000:><TMVAR2:05:92:92:000:000:><MMW2:91N,92N><LCLK><TDELAY:0.50><IFVAR2:1:93:2:><TEXTTYPE:%T93%<ENTER>><TDELAY:0.50><WAITWLF2:000000:000000:Select a File><ENDIF><ADFEND>
To understand where I'm going with this, you need to see the comma-delimited data file that I'm reading from (first variable being T90):
surcodecd_first C_button,414,177,
surcodecd_second C_button,413,199,
surcodecd_third C_button,414,223,
surcodecd_fourth C_button,415,249,
surcodecd_fifth C_button,414,273,
surcodecd_sixth C_button,414,298,
surcodecd_Start R_button,247,347,
surcodecd_End R_button,247,373,
surcodecd_Destination..._button,107,122,%T2%\DTS\%T6%.wav
surcodecd_Left Front..._button,143,176,%T2%\%T6%0.wav
surcodecd_Right Front..._button,145,201,%T2%\%T6%1.wav
surcodecd_Center..._button,143,225,%T2%\%T6%2.wav
surcodecd_Left Surr..._button,144,273,%T2%\%T6%4.wav
surcodecd_Right Surr..._button,143,298,%T2%\%T6%5.wav
surcodecd_Encode_button,53,349,
Basically, what this macro does is pressing various buttons in a window. Some buttons open a text box in which the macro types data.
By the way, the reason I store mouse positions in a file is that this file is the result of a "calibration" that each user needs to go through before using the macro for the first time or whenever something happens (ex: change screen resolution) that affects where the mouse is moving inside a window. This guarantees that the macro will work for every user no matter what they do with their screen. Unfortunately, the controls in this window are useless and do not work with the Get Control technique.
Thanks.