Results 1 to 18 of 18

Thread: Im trying to make a live desk top viewer like Johura

  1. #1
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default Im trying to make a live desk top viewer like Johura

    My Scar code is here...

    SCAR Code:
    program New;
    {.include srl/srl.scar}
    {.include srl/srl/misc/debug.scar}

      var
      i : integer;
     
    Procedure DoIt;
    begin
      TakeScreenshotEx('C:\xampp\htdocs\1.bmp',0,0,1365,767);
      BMPtoJPG('C:\xampp\htdocs\1.bmp', 'C:\xampp\htdocs\1.jpg');

      i := InitializeHTTPClient(true, true);
      AddPostVariable(i, 'file', 'C:\xampp\htdocs\1.jpg');
      PostHTTPPageEx(i, 'http://aaronator.co.cc');
    end;

    begin
      repeat
     
        DoIt;
        wait(4000);
      until false;
    end.

    I need help on the php code ( cause i dont know php) anyone want to make it for me, id imagine it would take like 5min.

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    You *need* to find a way to save it as a lossy jpg or a lossless png. A BMP will not work, it will destroy your bandwidth.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Harry View Post
    You *need* to find a way to save it as a lossy jpg or a lossless png. A BMP will not work, it will destroy your bandwidth.
    Oh. Is there a way scar can screeny something in the format of jpeg?

    Even though , my bandwidth would be destroyed, could some one still make it for me , im kinda curious. I wouldnt be keeping it on for long.

  4. #4
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't believe he made it in SCAR, but in a different language.

  5. #5
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just made a quick plugin for scar to convert a BMP to JPG if you want to use it.

    http://www.megaupload.com/?d=ADI3525W

    Usage:
    SCAR Code:
    BMPtoJPG('test.bmp', 'test.jpg');

  6. #6
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by r!ch!e View Post
    I just made a quick plugin for scar to convert a BMP to JPG if you want to use it.

    http://www.megaupload.com/?d=ADI3525W

    Usage:
    SCAR Code:
    BMPtoJPG('test.bmp', 'test.jpg');
    Cool. Please post source as well.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  7. #7
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    library ImgLib;
    
    uses
      FastShareMem,
      SysUtils,
      Classes,
      Windows,
      Graphics,
      Jpeg;
    
    {$R *.res}
    
    function BMPtoJPG(BMPName, JPGName: string): Boolean; Stdcall;
    var
      BMP: TBitmap;
      JPG: TJpegImage;
    begin
      Result := False;
      BMP := TBitmap.Create;
      JPG := TJpegImage.Create;
      try
        BMP.LoadFromFile(BMPName);
        JPG.Assign(BMP);
        JPG.SaveToFile(JPGName);
        Result := True;
      finally
        JPG.Free;
        BMP.Free;
      end;
    end;
    
    function GetFunctionCount(): Integer; stdcall; export;
    begin
      Result := 1;
    end;
    
    function GetFunctionInfo(x: Integer; var ProcAddr: Pointer; var ProcDef: PChar): Integer; stdcall;
    begin
      case x of
        0:
          begin
            ProcAddr := @BMPtoJPG;
            StrPCopy(ProcDef, 'function BMPtoJPG(BMPName, JPGName: string): Boolean;');
          end;
      else
        x := -1;
      end;
      Result := x;
    end;
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    
    end.

  8. #8
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't need php code. Just SCAR + html. (Unless im confused about what your making).
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  9. #9
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by r!ch!e View Post
    Code:
    library ImgLib;
    
    uses
      FastShareMem,
      SysUtils,
      Classes,
      Windows,
      Graphics,
      Jpeg;
    
    {$R *.res}
    
    function BMPtoJPG(BMPName, JPGName: string): Boolean; Stdcall;
    var
      BMP: TBitmap;
      JPG: TJpegImage;
    begin
      Result := False;
      BMP := TBitmap.Create;
      JPG := TJpegImage.Create;
      try
        BMP.LoadFromFile(BMPName);
        JPG.Assign(BMP);
        JPG.SaveToFile(JPGName);
        Result := True;
      finally
        JPG.Free;
        BMP.Free;
      end;
    end;
    
    function GetFunctionCount(): Integer; stdcall; export;
    begin
      Result := 1;
    end;
    
    function GetFunctionInfo(x: Integer; var ProcAddr: Pointer; var ProcDef: PChar): Integer; stdcall;
    begin
      case x of
        0:
          begin
            ProcAddr := @BMPtoJPG;
            StrPCopy(ProcDef, 'function BMPtoJPG(BMPName, JPGName: string): Boolean;');
          end;
      else
        x := -1;
      end;
      Result := x;
    end;
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    
    end.
    Thats pretty Thanks rep+

    Any one have the PHP to upload a jpg from scar to a server ? ( I dont know much php ( i dont think hml can do that with the scar ) )

    I posted my scar code on the first page, except the new one has the BMPToJPG Function r!ch!e made

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

    Default

    Maybe open the image as txt and use a basic post for transfer, then a php script which would create a file "asd.jpg" and paste the contents. Shouldnt that work?
    There used to be something meaningful here.

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    does my php not work?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  12. #12
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    does my php not work?
    Uh no What i need is pretty basic php, I would learn how but i have not much time cause EXAMS are on its way

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

    Default

    Quote Originally Posted by Camaro' View Post
    Uh no What i need is pretty basic php, I would learn how but i have not much time cause EXAMS are on its way
    What you need to know? If you need instant help alot you can add me on MSN, pm me your msn or something.
    There used to be something meaningful here.

  14. #14
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    air_mc_Roberts@hotmail.com
    My bad, i wasnt paying enough attention to realize i should of pmed it. Whatever

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

    Default

    You don't need php unless your not hosting the images on your home network

  16. #16
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    You don't need php unless your not hosting the images on your home network
    The images are gonna be on the server. Unless there is another way to do it?(While having my live viewer on a internet site( not my home server) )

  17. #17
    Join Date
    May 2007
    Location
    Sydney, Australia (Faggot Region)
    Posts
    1,465
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Tootoot222 said and ss23 said you need to encrypt them to base64 then decrypt them after you sent the image in base64


  18. #18
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Like dtms ?




    I would have no cliue how to do that

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
  •