Advertisement
easternnl

ctrx_sync_on_bitmap2

May 4th, 2016
3,403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void ctrx_sync_on_bitmap2(long x_start, long y_start, long width, long height, char *hash, char *temp)
  2. // over load of function:
  3.     // ctrx_sync_on_bitmap(50 , 50 , 436 , 565 , "<hash>", CTRX_LAST);
  4. // to handle errors
  5. // incase of errors, exit the current iteration instead of stopping the current vuser
  6. {
  7.    
  8.     int result;
  9.    
  10.     result = ctrx_sync_on_bitmap(x_start, y_start, width, height, hash, CONTINUE_ON_ERROR, CTRX_LAST);
  11.    
  12.     if (result == 0)
  13.     {
  14.         // oke
  15.         lr_output_message("The result is OK (%d)", result);
  16.     }
  17.     else
  18.     {
  19.         lr_output_message("The result is Failed (%d)", result);
  20.        
  21.         ctrx_logoff(CTRX_NORMAL_LOGOFF, CONTINUE_ON_ERROR, CTRX_LAST);
  22.                
  23.         lr_exit(LR_EXIT_MAIN_ITERATION_AND_CONTINUE, LR_FAIL);
  24.     }
  25.    
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement