Advertisement
easternnl

Sync on window with unknown position

May 2nd, 2016
3,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char window_name[100];
  2. long xpos, ypos, width, height;
  3. ctrx_get_window_name(window_name);
  4. ctrx_get_window_position(window_name, &xpos, &ypos, &width, &height);
  5. lr_output_message("Window = %s. x= %ld, y= %ld, width= %ld, height = %ld", window_name, xpos, ypos, width, height);
  6. ctrx_sync_on_window(window_name, ACTIVATE, xpos, ypos, width, height, "snapshot134", CTRX_LAST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement