Page 2 of 5 FirstFirst 1234 ... LastLast
Results 26 to 50 of 105

Thread: TMufasaLayer - Draw on any window!

  1. #26
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    Yea, I never created the Bitmap with a owner I can fix that in a bit, otherwise you could just copy how text was drawn before i added them methods (see srl-6 drawing.simba).

    tip: Just include drawing.simba from srl-6, and you have alot more methods
    WTF is that turtle in your sig

  2. #27
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    WTF is that turtle in your sig
    didnt he have that one since... for ever?

  3. #28
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    WTF is that turtle in your sig
    I've had it for too long to remove it!

  4. #29
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    I've had it for too long to remove it!
    It's unique to you, don't change it up buddy.

    By the way, I was reading over this thread the other day, I really like this. For sure I'll be adding this in AeroLib for a universal graphical debugger and on-screen controls. By the way, this is a bit off topic, but what if Appa had something similar that drew the mouse's position on-screen? This is really neat Olly, I think you've done a wonderful job with this. Thank you very much for your time and effort put into this.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  5. #30
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    It's unique to you, don't change it up buddy.

    By the way, I was reading over this thread the other day, I really like this. For sure I'll be adding this in AeroLib for a universal graphical debugger and on-screen controls. By the way, this is a bit off topic, but what if Appa had something similar that drew the mouse's position on-screen? This is really neat Olly, I think you've done a wonderful job with this. Thank you very much for your time and effort put into this.
    If i can get it how i want it, I may add it to Simba, how cool would Client.Image.DrawBox(); be.

  6. #31
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    If i can get it how i want it, I may add it to Simba, how cool would Client.Image.DrawBox(); be.
    It would be amazing, I don't see any reason not to. Keep me posted on that, if it's a certain thing I'd like to know soon so I don't make this plugin a requirement for AeroLib.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #32
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    Yea, I never created the Bitmap with a owner I can fix that in a bit, otherwise you could just copy how text was drawn before i added them methods (see srl-6 drawing.simba).

    tip: Just include drawing.simba from srl-6, and you have alot more methods
    I tried
    Simba Code:
    {$I srl-6/lib/utilities/drawing.simba}
    but got the error "Error: Duplicate declaration "TColorArray" at line 14" in drawing.simba. Maybe it has to do with the script I'm using though?

  8. #33
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Ross View Post
    I tried
    Simba Code:
    {$I srl-6/lib/utilities/drawing.simba}
    but got the error "Error: Duplicate declaration "TColorArray" at line 14" in drawing.simba. Maybe it has to do with the script I'm using though?
    If you're already using SRL-6 that is already included, so no need to do it again.

  9. #34
    Join Date
    Jan 2014
    Location
    New Found Land
    Posts
    108
    Mentioned
    3 Post(s)
    Quoted
    21 Post(s)

    Default

    the things that are accomplished when the internet is out, lol

    "When all government, domestic and foreign, in little as in great things, shall be drawn to Washington as the center of all power, it will render powerless the checks provided of one government on another, and will become as venal and oppressive as the government from which we separated."

  10. #35
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    @Olly; Is it still in the plans for this to be added to Simba any time soon?

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  11. #36
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    @Olly; Is it still in the plans for this to be added to Simba any time soon?
    Not atm, more important things needed. Though in the future I would like to first i would update this plugin though.

  12. #37
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    Not atm, more important things needed. Though in the future I would like to first i would update this plugin though.
    Sounds fine then. Hurry up and do your updating, I want to start working with this.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  13. #38
    Join Date
    Jan 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    sorry to bother you,im new with this and it doesnt work for me.it says "you cannot set ur target as the desctop"

  14. #39
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by wolvey View Post
    sorry to bother you,im new with this and it doesnt work for me.it says "you cannot set ur target as the desctop"
    Use the target icon on simba and drag it to an open window. Then your target will be that window instead of the desktop.

  15. #40
    Join Date
    Jan 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    i dont understand how it works >.<

  16. #41
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    What kind of updates are you wanting to make to this plugin, Olly? This would work really nicely with one of the threading plugins. I've had absolutely no luck with Dg's so perhaps I'll give Brandon's a shot.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  17. #42
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    What kind of updates are you wanting to make to this plugin, Olly? This would work really nicely with one of the threading plugins. I've had absolutely no luck with Dg's so perhaps I'll give Brandon's a shot.
    Uh, so it minimizes when you minimize the screen, moves when you move the screen, resize the screen, etc.

  18. #43
    Join Date
    Jan 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    When I'm trying to install tmufasa layers it shows parems invalid, why ? what could I do? I want to use it, cuz I want to use the tarot bot of LOA

  19. #44
    Join Date
    Jan 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Hello, please excuse the trouble.

    So I installed simba, SRL updated, TMufasaLayer copied to the plugins folder, etc. 1366x768 resolution

    have the script run brought to see above the break sign, then start the game and wait for the text of the button press away is 2 and the start symbol (green triangle) I will play the level but the cards are not marked. round I finished press the button 3 to set everything back. next level once again tried the same thing he marked me keien cards with the x.

    all I'm trying now for 2 days and wanted to ask if anyone has an idea how do I get it to work.

    explorer are tested: internet explorer, firefox, mozilla

    please if anyone can help me please give me a tip.

    MfG kafzi

  20. #45
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    This seems to work great as it is. Thanks for the plugin olly!

    Quote Originally Posted by kafzi View Post
    have the script run brought to see above the break sign, then start the game and wait for the text of the button press away is 2 and the start symbol (green triangle) I will play the level but the cards are not marked. round I finished press the button 3 to set everything back. next level once again tried the same thing he marked me keien cards with the x.
    I would help you but I have no idea what you are saying here.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  21. #46
    Join Date
    Mar 2015
    Posts
    9
    Mentioned
    1 Post(s)
    Quoted
    4 Post(s)

    Default

    I've been messing around with quick test scripts to make sure it works how I'd want. Overall, this seems to be working as intended. I've just run into a small issue trying to include only the SRL drawing functions.

    When I include SRL 6, it works as intended. Here's a quick test just to give my exact example.
    Code:
    program new;
    {$loadlib libMufasaLayer}
    {$i srl-6/srl.simba}
    
    var
      i, j, x, y: integer;
      l: TMufasaLayer;
      Bitmap: TMufasaBitmap;
    begin
      l.Init(GetNativeWindow(), Bitmap);
      x := -1;
      y := -1;
      repeat
      GetMousePos(i, j);
      if not (i = x) or not (j = y) then
      if (i > 0) and (i < 820) and (j > 0) and (j < 515) then
      begin
        Bitmap.Rectangle(IntToBox(0,0,920,615), clBlack);
        Bitmap.Rectangle(IntToBox(i, j, 100 + i, 100 + j), clBLue);
        Bitmap.Rectangle(IntToBox(i + 5, j + 5, 100 + i - 5, 100 + j - 5), clBlack);
        l.Paint();
        x := i;
        y := j;
      end;
      until (i > 1000);
      l.Free;
    end.
    Simple script that makes a blue box with a clear center follow the cursor so long as it remains within my target area (0,0,820,515). As I said before, works without a problem (and fast).

    If I take out the SRL include and just use:
    Code:
    {$i srl-6/lib/utilities/drawing.simba}
    It errors out with:
    Error: Unknown declaration "clRed" at line 142
    Compiling failed.

    And pulls up the tab "drawing" to line 142: (clRed highlighted)
    Code:
    procedure TMufasaBitmap.drawBox(box: TBox; color: TColor = clRed); overload;
    begin
      self.drawBox(box, false, color);
    end;
    Any ideas?

    -Bill

  22. #47
    Join Date
    Mar 2015
    Posts
    9
    Mentioned
    1 Post(s)
    Quoted
    4 Post(s)

    Default

    I would add this as an edit, but for whatever reason the edit post window always just shows up blank grey...

    I was also wondering if there is any way to rename or disguise the MufasaLayer window and process... Kinda eliminates the point in me disguising my main process if it gets red-flagged by proxy...

  23. #48
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by BillSn0w View Post
    I would add this as an edit, but for whatever reason the edit post window always just shows up blank grey...

    I was also wondering if there is any way to rename or disguise the MufasaLayer window and process... Kinda eliminates the point in me disguising my main process if it gets red-flagged by proxy...
    I don't really have time to edit this atm, I still have some nice plans for it. But you could easily change the caption of the window (by using Simba) but changing the process (so it changes in task manager?) I don't think there's a easy way to do that heck, I don't even know how to do that in the first place.

  24. #49
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    I don't really have time to edit this atm, I still have some nice plans for it. But you could easily change the caption of the window (by using Simba) but changing the process (so it changes in task manager?) I don't think there's a easy way to do that heck, I don't even know how to do that in the first place.
    Change the executable name. It will change the name of the process spawned. Should work for any executable.

    I am Ggzz..
    Hackintosher

  25. #50
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Change the executable name. It will change the name of the process spawned. Should work for any executable.

    http://i.imgur.com/i3ZeaXH.png
    Process description still says "Simba: <url>" would that be an issue?
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

Page 2 of 5 FirstFirst 1234 ... LastLast

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
  •