Page 1 of 2 12 LastLast
Results 1 to 25 of 45

Thread: How you insert report in the client screen?

  1. #1
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default How you insert report in the client screen?

    Is there a way to use drawbitmap to show reports of the macro session directly into the client screen ? and display certain pictures directly into the client screen (without using a form) ? if so how do i do this?

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    If you're using SMART then yes, easily done
    If not, I would say OpenGL Interception would be the best choice (Not developed for scar yet), as you can tell OpenGL to paint directly on the screen without much CPU Power drain, but with SCAR it would flicker a lot and drain all your CPU

  3. #3
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I was thinking how its done without smart, and i think for script compability it woud be bether if it could display images in the client window, and not needing to stop scar to see report logg, if it just display with text in the client how many loads/rounds xp gained etc, and im also wondering of if you could display pictures, like displaying a picture of what picture the script is searching for at that point, or if it takes a picture of the bank screen each time the bot is inserting to bank then display it zoomed out, is it a way to do this without implementing another language ?

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

    Default

    You need smart or a plugin that can use opengl or directx, no other ways

  5. #5
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Basicly what I think you need is the window of the clients surface, hwnd, and then use it to draw on it, I'm not sure if it requires anything else to enable drawing, but yeah, thats my flow of thinking. Maybe the guy who designed that OpenGL "Reflection" if you will, can help out? I mean, the whole thread was moved to SRL Members only, I was very interested in that stuff, but now I'll just have to wait. Whats going with that project anyway?
    There used to be something meaningful here.

  6. #6
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Whats going with that project anyway?
    Nothing. The silent wolf guy hasn't really been active.

  7. #7
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by TRiLeZ View Post
    Nothing. The silent wolf guy hasn't really been active.
    Did he post any sources to that project?
    There used to be something meaningful here.

  8. #8
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Did he post any sources to that project?
    He did post the source, but the source he posted didn't even compiled so he removed it quickly. I don't know if anyone downloaded it though.

  9. #9
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    God damnit, I want that source :P
    There used to be something meaningful here.

  10. #10
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Finding tutorials on OpenGL and D3D Hooking isn't hard though :P
    Google "OpenGL Interception" or "D3D Hooking" and you'll find a couple 100 tuts

  11. #11
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Still, I would love to see that source, as it is done for RuneScape.
    There used to be something meaningful here.

  12. #12
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    A freind of me had a scar script witch did this long ago it was chopping willows in draynor village and displayed loads/xp directly on the client screen.

    You sure openGL can do this? it read/display images on screen ?

  13. #13
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    tom99; Yeah, it isn't hard to do, but the runescape client updates 30 times per second, and you have to paint on top of that client, and be synced with runescape's updating


    Also; It looks like silentwolf logs on now and then...
    Last Activity: 06-22-2010 10:32 AM

  14. #14
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    You can paint directly to the canvas but it is very CPU intensive as you have to repaint every time RS repaints their client. Which is about... 60 times per sec. (I guess)



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  15. #15
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Do you know of a way to display the canvas directly on the screen wizzup ? even tough its cpu draining i would like to know how, but also opengl if this is to recommand.

  16. #16
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    60 fps? naaa... I'm not sure... if it's OpenGL then maybe, but if it is in software mode then I guess it's lower

  17. #17
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    If its 60fps via scar that woud work just perfectly if its only showing text i woud asume, but how large is opengl then? if its over 1gb i woud rather do it trough scar (if possible).

  18. #18
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by tom99 View Post
    Do you know of a way to display the canvas directly on the screen wizzup ? even tough its cpu draining i would like to know how, but also opengl if this is to recommand.
    Get the client canvas, paint on it. Perhaps you'll have to play with DC's but I don't think you have to.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

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

    Default

    Its less cpu intensive to just paint on SMARTs debug canvas as I don't think it needs to refresh as often?
    (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.

  20. #20
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Get the client canvas, paint on it. Perhaps you'll have to play with DC's but I don't think you have to.
    I gotta make clear i never tryed openGL befor so that tells me nothing.
    But i will look into it if it does screen drawing efficiently, but for now i woud like to know how i could do it trough scar please.

    LoadDebugBitmap('Fonts\BigChars\37.bmp'); <- I tought this command was supose to display a picture in the debug window but i see nothing.

    Nvm it works, however its a bit clumsy to use debug window, can you also draw directly to the client screen ?
    Last edited by tom99; 07-03-2010 at 12:07 AM.

  21. #21
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by tom99 View Post
    If its 60fps via scar that woud work just perfectly if its only showing text i woud asume, but how large is opengl then? if its over 1gb i woud rather do it trough scar (if possible).
    I think you already have OpenGL
    Search for opengl.dll in /System32/

  22. #22
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    I think you already have OpenGL
    Search for opengl.dll in /System32/
    Have you used it in scripts befor ? if so could i see an example

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

    Default

    Basically what everyone is trying to tell you is that unless you use smart or already knew how to use opengl your not going to effectively write on the client

  24. #24
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I also think that anyone who told you to use OpenGL has no idea how to do it with opengl.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  25. #25
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by tom99 View Post
    Have you used it in scripts befor ? if so could i see an example
    There is a file named opengl32.dll, that means i got it ? opengl looks complicated.

    but is it possible to write a source to do the following
    Clientscreen [ Drawinupperrightcorner: 1,2,3,4,5,6 ] with transparent window so you can see everything whats going on in the client screen but its just display report with letters into it? possible ?
    woud it also be possible to do it without blocking scar from color searching on the client at the position the openGl texture is ?(If not thats not a problem, woud not need to use such large area of client screen anyway).
    The word is script =p
    1. Fonts\BigChars\83.bmp
    2. Fonts\BigChars\67.bmp
    3. Fonts\BigChars\82.bmp
    4. Fonts\BigChars\73.bmp
    5. Fonts\BigChars\80.bmp
    6. Fonts\BigChars\116.bmp

    Its easy to take a screenshot with scar so if somone could tell me just to insert it with opengl please
    you need to use Outline Fonts ?
    Can scar interact with OpenGl and send variables and text or can OpenGl read files ?
    Like i sad earlier, ive not used opengl befor.
    Last edited by tom99; 07-03-2010 at 12:43 PM.

Page 1 of 2 12 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
  •