Results 1 to 9 of 9

Thread: Colored text readin on webpage

  1. #1
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Colored text readin on webpage

    Hi y'all

    A friend of mine was trying to write a script in school, when the teacher saw that, he gave the whole class a scripting homework. Course, that didn't make my buddy very popular,

    The teacher would give a website with an article on it, certain words would be in a different color. Now the script has to scroll down, reading those words and storing them, so they could be printed out or used afterwards.

    Anyways, scrolling down, finding the words and storing them was the easy part but we can't get it to read the words.

    Any suggestions?

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Are the words pictures?

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    If not picks, your teacher just got pwnt lol.

    GetPage('url') for the source code of the page, then look at the html by going through the right click > source instead of looking from SCAR. Then, find the place the text is being placed in, its got some tags, just copy em for example

    "Between(PageSrc, '<td><blabla>', ' </td></blabla>');"

  4. #4
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The words are not picks, but i don't think it will be allowed with the source code, he was specific about using Scar.

  5. #5
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    FindColorsTolerance to get all words with that color, then use GetTPABounds, draw it at some canvas (like debug canvas), use SetTargetDC and then GetTextAtEx
    I made a new script, check it out!.

  6. #6
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    HOLY SHIT!!!!! you are gonna get extra points with this safe function I quickly made :P

    SCAR Code:
    Function StoreText: boolean;
    var
      A : string;
      Text : TStringList;
    begin
      A := 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus sed massa. Aliquam erat volutpat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Pellentesque ipsum libero, sollicitudin quis, bibendum sit amet, porttitor in, neque. Suspendisse adipiscing, felis a aliquam imperdiet, sapien nisi varius ante, vitae accumsan lectus tortor nec leo. Nullam nibh pede, auctor nec, vehicula vel, sodales a, diam. Suspendisse et risus vitae sapien rutrum condimentum. Aliquam sollicitudin auctor lorem. Nullam vel justo quis tellus sollicitudin aliquet. Etiam pharetra auctor leo. Vestibulum dolor ipsum, lobortis eget, sagittis eu, tempus ut, erat. Sed tortor mi, iaculis molestie, imperdiet vitae, fringilla sit amet, odio.';
      Text := TStringList.Create;
      text.add(A);
      SaveToFile(Text,  AppPath + 'Yourmap\Test.txt');  { File to safe to }
    end;

    Good luck with it. If this isn't what you want just tell me ;P

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  7. #7
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Ur teacher is teaching students to use SCAR?! wtf :P

    Yeah, If u give us the link it will be so much easier..

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  8. #8
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's a friend of mine's teacher, i'm abit to old for school, lol. Reason he used Scar is cause my friend got caught using it in school, and he thought it would be funny to use it as some sort of alternate punishment.

    Anyways, i can't give you a link as the teach would provide the page at the day of testing.

  9. #9
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Well I'm going to say(until I see the page)Just use getpage('')

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Grabbing or reading Text from a game text box
    By British in forum OSR Help
    Replies: 16
    Last Post: 02-27-2009, 08:02 AM
  2. Rip runescape app from webpage
    By Tv-XxX in forum General
    Replies: 6
    Last Post: 02-22-2009, 06:48 PM
  3. webpage in form, never lose focus
    By Sweden in forum OSR Help
    Replies: 0
    Last Post: 06-11-2008, 12:03 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
  •