Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perform a different task on Error Message
#1
I would like to create a macro that copies data from a document into a program.

In some instances, the program may display an error message advising the data already exists and if it should be overwritten. How can I get the macro to select 'no' when it sees this message, then do something different such as place an asterix beside the line in the document that already existed in the program and then loop back to the beginning of the macro (to move on to copying the next line in the document to the program).
#2
Macro Macro592
Code:
Copy      Help
;beginning
;...

int errorMessage=wait(2 WA win("Error Message" "#32770"))
err errorMessage=0

if errorMessage
,out 1
,key An ;;press Alt+N to close
,key "*"
,goto beginning
else
,out 0


Forum Jump:


Users browsing this thread: 1 Guest(s)