Results 1 to 2 of 2

Thread: Coordinates problem

  1. #1
    Join Date
    May 2012
    Location
    Brazil
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Coordinates problem

    When I choose a client screen, it doesn't make the corner 0,0, thus making the coordinates all weird when I try to add a code like "movemouse".

    Any idea what I could do to fix this?

  2. #2
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    I believe I had a similar problem with my Minesweeper solver I've been working on a while ago.

    My mainloop
    Simba Code:
    begin
      SetupSRL;
      ActivateClient;
      ImageResetClientArea;
      Setup;
      Debug := True;

      SafeCheck(0);

      {ClickBox;
      for K:=0 to high(BoxDetails) do
        writeln((IntToStr(k) + ': ' + BoxDetails[k]));  }

    end.

    Calling ActivateClient and ImageResetClientArea afterwards should solve the problem for you

    Script source code available here: Github

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •