Refresh page change the client window !?

Discussion in 'Code Snippets and Tutorials' started by zav75, Mar 11, 2007.

  1. zav75

    zav75 Level I

    Joined:
    Feb 28, 2007
    Messages:
    76
    Likes Received:
    6
    Location:
    Canada, Province of Québec
    Hello,

    I am working on a SCAR projet, when the script refresh a page the client windows changes, I'd like to know what I can do againts that.

    I've tryed

    Code (Text):
    1.  
    2. handle := GetClientWindowHandle ;
    3.  MoveMouseSmooth(551,711);
    4.  Writeln('moving 1st time');
    5.  Writeln('refresh now');
    6.  wait(5000); //time to refresh...
    7.  SetClientWindowHandle(handle); //back to 1st handle
    8.  MoveMouseSmooth(551,711); //back to 1st position
    9.  Writeln('moving2');
    10.  
    and the mouse at the second time doesn't go at the same place, it's suppose to due to the fact that its back to the original client window, so the same original x,y coordinates.