SytheLib Dev Log

Discussion in 'SytheLib' started by Dev_Zach, Jan 12, 2020.

SytheLib Dev Log
  1. Unread #1 - Jan 12, 2020 at 11:35 AM
  2. Dev_Zach
    Joined:
    Nov 27, 2018
    Posts:
    2,280
    Referrals:
    2
    Sythe Gold:
    1,626
    Vouch Thread:
    Click Here
    Discord Unique ID:
    209081432956600320
    Discord Username:
    Zach#2679
    Baby Yoda Rakashrug Two Factor Authentication User

    Dev_Zach DM for #1 coding services
    $100 USD Donor New Technical Core

    SytheLib Dev Log

    Preface

    Since I don't have time to develop currently as I'm in the airport all day, I thought I could write a log of everything useful I've learned as well as odd quirks to help new people get on board SytheLib in the future.

    To start, I think SytheLib is extremely useful. You can run it on top of almost any game on PC with its colorpicker and bitmaps.

    Commands

    Most useful commands I've learned after 4 days:

    Scrape() - To save memory, SytheLib isn't always scraping your screen for the most updated frames as that would destroy the memory. Instead, it only scrapes when you tell it to and saves that into the backbuffer.
    Wait() - I use this often as it's just a Scrape() with a Sleep(200).
    LoadBitmapFromString() - It basically loads up a picture from a string (which you can get from slade).
    FindTextUsingFont() - Looks for font on the page.
    FindColor() - Looks and finds a certain color on the screen.
    ClickMouse() - Pretty self explanatory

    Weird Quirks:

    If you want to run multiple sythelib instances, it's recommended you move it to a new desktop on windows. If you choose to do this, you need to run the program @Sythe created here. When you are beginning to write a program you need to run:

    Code:
    if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
    SetGDICaptureOn();
    Notice how the SetWindow() is before the SetGDICaptureOn(). If this isn't done, your window handler won't work properly.


    The colorpicker is kind of odd (as expected). If you pick a color you need to make sure it's unique. For example, when I was scraping runescape for a rat on the screen (which is grey/brown), it would constantly think doors and trees were rats. To combat this, I would right click the object (door, rat, etc) and check if the words "Attack Rat" were in the options, and if so, click it.


    Another word bug I ran into was in windows, the default zoom setting on apps is 125%. With this, it degrades the runescape text and images. You need to change the default back to 100% while running sythelib scripts on runescape.


    I'll continue to update this thread as I learn more.
     
    ^ Assassin and III MAGZ III like this.
< Minnow Fisher Script | Learning Sythelib Log >

Users viewing this thread
1 guest