Results 1 to 2 of 2

Thread: Small problem

  1. #1
    Join Date
    Jan 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Question Small problem

    Hi,

    ATM I have this code:

    if (FindObjCustom(X, Y, ['example','example'], [90,90], 3)) then
    Mouse(70, 70, 100, 100, True);

    I want to make X,Y a constant how do I do this? I dont want simba to search the whole screen only a part of it. If that's possible.

    Regards!

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Using that function, the X/Y is returned at coords if that object is found. If you want to make a constant variable, you could do something like this:

    Simba Code:
    var
      cX, cY : Integer;

    if(FindObjCustom(X, Y, ['example', 'example'], [90, 90], 3))then
    begin
      GetMousePos(cX, cY);
      Mouse(cX, cY, 100, 100, mouse_Left);
    end;
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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
  •