Results 1 to 13 of 13

Thread: How do i get smarts canvas?

  1. #1
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do i get smarts canvas?

    i thought i remembered using samrtgetcanvas, but thats not working... lol, confused
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    GetClientDC(SmartGetDC); I think? That might be totally unrelated.. I need to sleep.

  3. #3
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, ill try that, post again in a sec

    =============

    i had just put that ther, and i realised, nope lol, that will not return a canvas so i will get a type mismatch error.
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

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

  5. #5
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i did, lol, i think it owns, but that wont help be if smart isnt the client, what i mean is that 2 scripts with smart are running so i want both proggies in 1 smart screen
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  6. #6
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    I think you'll have to use SendInterSCARMessage.

  7. #7
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how could i not have knownlol im doing that right now. il post whether it works in a min. it should ^.^

    iluffsyeww is a genuis
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  8. #8
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Btw, you have to use the SMART debug canvas....

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  9. #9
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k, when i use this:

    SCAR Code:
    procedure takemypic;
    var scrpic,buffer:integer;
    begin
    scrpic:= BitmapFromString2(false,'');
    safecopycanvas(smartgetdc, buffer,0,0,505,735,0,0,200,300);
    safecopycanvas(buffer, scrpic,0,0,505,735,0,0,200,300);
    SaveBitmap(scrpic,'c:/scr/scrcom.bmp');
    settimeout(1000,'takemypic');
    end;

    i get an access violation exception when it is called... but i used safe so im confused.
    im doing this so i can then put it on a smart canvas in a different instance of smart


    ===========

    ohh, i changed to smartgetdebugdc and no more violation , thanks rm, u own

    ==========
    nvm i got the error way later. here is code:

    SCAR Code:
    procedure takemypic;
    var scrpic,buffer:integer;
    begin
    scrpic:= BitmapFromString2(false,'');
    safecopycanvas(smartgetdebugdc, buffer,0,0,505,735,0,0,200,300);
    safecopycanvas(buffer, scrpic,0,0,505,735,0,0,200,300);
    SaveBitmap(scrpic,'c:/scr/scrcom.bmp');
    settimeout(1000,'takemypic');
    end;

    error:

    [Runtime Error] : Exception: Access violation at address 004885B1 in module 'scar.exe'. Write of address 00000050 in line 1590 in script C:\Documents and Settings\Josh\My Documents\Downloads\V0.55 - RM Guild Miner.scar
    Last edited by g0tp0t; 04-13-2010 at 03:33 PM.
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  10. #10
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Try this:

    SCAR Code:
    procedure takemypic;
    var scrpic,buffer:integer;
    begin
    scrpic:= BitmapFromString2(false,'');
    safecopycanvas(smartgetdebugdc, buffer,0,0,505,735,0,0,200,300);
    safecopycanvas(buffer, scrpic,0,0,505,735,0,0,200,300);
    SaveBitmap(scrpic,ScriptPath+'scrcom.bmp');
    settimeout(1000,'takemypic');
    end;

  11. #11
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    the only dif is location, and i dont have scar on this comp so i will test later, but i dont see how that would help..?
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

  12. #12
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Because C:/scr/* is giving you an access denied. Doing ScriptPath + 'scrcom.bmp' should give it access, and allow it to save.

  13. #13
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ohh, i thought access denied only happens in vista+ where apps are automaticly givin limited user privelages, lol
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

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
  •