I have a section of code that I need an automated way to 'run' the selection and processing buttons. ClearWin provides both record and playback functionality. I'm having some trouble getting it to work properly.
To get the file required, I start the record function immediately prior to the window being created, then close the recording when the window closes. The listing below is what is in the recording file.
<AWAIT,MAIN/5>
<LEFT_MOUSE_DOWN,LS001/5,6,42,1>
<LEFT_MOUSE_UP,LS001/5,6,42,0>
<LEFT_MOUSE_DOWN,LS002/5,30,72,1>
<LEFT_MOUSE_UP,LS002/5,31,71,0>
<LEFT_MOUSE_DOWN,LS003/5,27,24,1>
<LEFT_MOUSE_UP,LS003/5,27,24,0>
<LEFT_MOUSE_DOWN,BT001/5,59,13,1>
<LEFT_MOUSE_UP,BT001/5,59,13,0>
<MENUSELECT,MAIN/5,300>
To then use this data, the code runs up to the point at which the window will be created, opens this file for playback, and proceeds to build the window.
Three list selections are certainly made from the playback file, then the final button to process the selected data is 'pressed'. But the final button 'press' doesn't occur, although the button is selected. Looking at this window, I can see all the selections are properly made. But I have to click this button to get the window to close.
Is the ordering of the opening of the window and/or the creation of the window the playback file is targeting critical? I can find no examples on the Forum on how to use this/these features, and can really use your help.
Thanks, Bill