Results 1 to 6 of 6

Thread: i cant find a number with "IsTextInAreaEx"

  1. #1
    Join Date
    May 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default i cant find a number with "IsTextInAreaEx"

    if(IsTextInAreaEx(200, 50, 950, 90, x, y, '288524', 100, c, False, False, 0, 10, -1))then
    begin
    Writeln('yay');

    begin
    Writeln('nay');
    end;


    i need to find the number but it only finds words. how can i solve this problem?

    grts, Tim

  2. #2
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im not sure what you are asking, but I think you want to know how to find a number in an area?

    A number doesn't have to be an integer, it can be a string too.

  3. #3
    Join Date
    May 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the number is a part of an url in a browser. when i search the words in the url with "IsTextInAreaEx" then it works but when there are numbers in it. it does not find them. how can i solve it?

    grts tim

  4. #4
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I believe its the font setup... You say it finds letters but not numbers. The numbers could be different then the font your searching for.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  5. #5
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Easy, use FindText or FindTextTPA with SRL


  6. #6
    Join Date
    May 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program New;
    var
    c: Integer;
    x, y: Integer;
    begin
    if(IsTextInAreaEx(200, 50, 950, 90, x, y, '288524', 100, c, False, False, 0, 10, -1))then
    begin
    ClickMouse(750, 420, True)
    Wait(500);
    KeyDown(051);
    Wait(500);
    KeyDown(065);
    Wait(500);
    KeyDown(082);
    Wait(500);
    ClickMouse(795, 415, True)
    Writeln('yay');
    ClickMouse(x, y, True);
    end else
    begin
    Writeln('nay');
    end;

    end.


    how do i search for the numbers then. srry ive never scripted before:s.
    here is my code

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Who "owns" the find bird nest function
    By randy marsh in forum OSR Help
    Replies: 11
    Last Post: 08-26-2008, 07:26 PM
  2. Who "owns" the find bird nest function
    By randy marsh in forum OSR Help
    Replies: 0
    Last Post: 08-26-2008, 09:36 AM
  3. Replies: 3
    Last Post: 04-19-2007, 03:44 AM
  4. Replies: 5
    Last Post: 10-26-2006, 11:30 PM

Posting Permissions

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