Results 1 to 8 of 8

Thread: help with this autoclicker!

  1. #1
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default help with this autoclicker!

    ok so i have done this

    SCAR Code:
    program New;

    begin
     repeat
        keydown(17);
        Keydown(18);
        keydown(76);
     sleep(10);
        Keyup(17);
        Keyup(18);
        Keyup(76);
    until false
    end.

    i now need to know what to put with until to makeit only do it 20 times.

    then i need help with closing all the 20windows that i open up! please

    this is the bitmap i got for closing the window....

    SCAR Code:
    close button := BitmapFromString(20, 21, 'z78DAB5964B922B29' +
           '0C45B78410E2330404FB5FD23B90E98AAE6847F7E879A0C848630' +
           'E92AE2ECEB9C92ACBD6DC63FFE54FCEB5F80EA663CEDD97F85CA3' +
           '8EA2AB9591C32A45CC56CE3DF9B29C535D294B8A444D6925DBBAD' +
           'EA83675BC315A56FD89AA6185E4B1FA4C26DB81695ADBABC787BE' +
           '66F592D7EEDAC20E3DB7B456EBD53889175BBDF2255172E5549C9' +
           '838735CB534DB372EA259E3B43039EDB2C0696B6A9C33E85EC14C' +
           'A38794A38E9C06E76157B23DBB19C4C683F4D93A5CAF6DCD26A5D' +
           'F3A44B8967DB54BAF65657BE9A73EC29B624E4CD073DE16E1F634' +
           '6F7D7489352D1E538FB57755B1A7E6777D7D59BB4BF5E5CDCA86D' +
           '88B40D47CCEE639B1923290979EECD83F4171939BDDB8B17F7A71' +
           '333DF5EFE4CB2BB833F63E354B7DB9E59EF0647772D4321FE22E7' +
           '3CEF859430D0FCB4DEFFECECE29E5D3E524EC3FD89FD3E8BBE7D6' +
           '31BAD36553F17D7AED3437CEEEDA79F1ECF9E867DC3E1E627872F' +
           'CB71AFF412C97185EE2D152FAB23E5A8C0E37C6E527E5DF5CCBC6' +
           'C99FDE7DAA7A3A78BAB6BEEC76B4AD705D1D2E3FF84624BB0237C' +
           '4536789F3723BDC26F317B796CE04D557ABCF73B2416D977DCBE5' +
           'F6EE2BD10F340D923CCF0637C4E689FE2259B8E36707D7F9AAF1A' +
           '3CC4C7C7A7AF4797A3AD2FA6F4FA002428E29EDA84BA1D005B871' +
           '096FCC0D3D5BDF5AA4FD7011D3D5CC9988688578158B7B943B8FF' +
           '1C7434A2ADFFA6E25CE75C694C564C71C259775E35373611C5A14' +
           'B826F9A7FB49CFC43566A194C0741CE2A93C13FFAA3DE799FC7FF' +
           '2C53CE01654248BA193497422B9CB849B658EC0FC7E66E4D461BC' +
           '73974F3D5F56B9153EF9CA374A36FD7D92B56D53314BF1C420640' +
           '1178F4DC7140AAFF3882AE1B33CA001A3DA4B9F4AD69BDDBA9E10' +
           'BE126B8A978B2A30BF6F7A6E70510B9932E3A9887AD52D610886F' +
           '9AAD1378258549B8920EB98E2A5B72FBB61E8E954BEE0152527EE' +
           '82C3C56D6D45FF4627D353F314DC8B8E30E08EF09E13230854435' +
           '0E37A9DEDD2B74D19F643440437B20F44D40E11AFC60F7169C303' +
           'A1B7F899B8820109DC1A8EBA42687073B01162096F7F9D2992F45' +
           '65BD8FEF13D6E935BF973DFF97DC68189EDC6632C0EB1D840C915' +
           '3D735370A84F859F4C2B99A21CE512746E474C64C71C5EB55079A' +
           'CD107C0E9CEDC7131A049EACF6028535FB0D67397C97578E16C58' +
           'CBF15E724CCC8E11D98CBC26444B5598F78425435CA1ACA035444' +
           '7C621F41E35BC9A99CE64D53995F5C42563EE84F8886471632652' +
           '7AEED012D58567C19450056E6032FC4838332901FDA072B2C85CE' +
           '68D67E3EA17503263EC7007B5FD749F551E86C1AA3DD377E7B60A' +
           '22AC1189BD6994440C3C4F9E158F3D71F12DFA644F3F96C89609A' +
           'D5694D34326D6A0BC2941B8366830BF85B83A05E5BF4343DCC4BC' +
           'F56FFFB3BAFFDFE6430CC7F0E31F412954A2');

  2. #2
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I think you're going to have a problem finding the X to close the windows, since they won't be on the original 'client' window.

    You can try this, but I'm not certain that it will work.

    Code:
    program New;
    var i,x,y,xDTM:integer;
    begin
     for i:= 1 to 20 do
     begin
        keydown(17);
        Keydown(18);
        keydown(76);
        sleep(10);
        Keyup(17);
        Keyup(18);
        Keyup(76);
     end;
     xDTM := DTMFromString('78DA63E4646060E0624001FFFFFF07D38C503' +
           'E230B90604555F3FDCC214C35FCA86ABE1EDC8AAA860FD39CCFBB' +
           'D762AA4133E7FB8E85286A00A69A0D02');
     repeat
       if FindDTM(xDTM,x,y,-100,-100,1280,1024) then ClickMouse(x,y,true) else exit;
     until false;
    end.
    If you know approximately where the X button will be located, you can narrow the search area, which is currently (-100,-100,1280,1024).

  3. #3
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    seems to work fine but it lags alot :P

  4. #4
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    but i havnt full tested it... because of the lagging, i just thought aslong scar doesnt come up then the script will never close itself.


    **EDIT**

    ooh no, when the script opens up all the windows it then just teminates the script... any idea why??

  5. #5
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    It's hard to write a script for something you can't see. Are you using this for something online that I could go see for myself?

    Anyway, it terminates like that because it can't find the x.

    If the X comes up inside the client window, then it should be able to find them.

    If the X comes up outside the client window, it probably won't find them.

    Also, the lag is from searching such a large area. If you know where the X will be you can reduce the search area and speed it up. I'm not sure if Bitmap searches would be faster, but that is another option.

    If you want it to keep running over and over again you need to add another repeat loop like this...

    Code:
    program New;
    var i,x,y,xDTM:integer;
    begin
     repeat;
     for i:= 1 to 20 do
     begin
        keydown(17);
        Keydown(18);
        keydown(76);
        sleep(10);
        Keyup(17);
        Keyup(18);
        Keyup(76);
     end;
     Writeln('Searching for X');
     xDTM := DTMFromString('78DA63E4646060E0624001FFFFFF07D38C503' +
           'E230B90604555F3FDCC214C35FCA86ABE1EDC8AAA860FD39CCFBB' +
           'D762AA4133E7FB8E85286A00A69A0D02');
     repeat
       if FindDTM(xDTM,x,y,0,0,1280,1024) then
       begin
         Writeln('Found X');
         ClickMouse(x,y,true);
         Wait(50);
       end else
       begin
         Writeln('Did not find X');
         exit;
       end;
     until false;
     until false;
    end.

  6. #6
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    ive set my internet explorer with a shortcut key like Ctrl + Alt + L, so basically everytime i type the keys it opens up another internet explorer! then i need to close them all after if you get what i mean.

    (im not using it for this but an example is....)

    if like you had a website and wanted a higher hitcounter then you could use this script to open up the internet explorer with the homepage being your website...

    that way your hitcounter would go up... if you get me??

    but like i said i aint using it for a hitcounter but somthing similar


    **EDIT**

    see the first problem im getting is that as soon as the keys are hit the script looks for the X, and obviously the internet explorers havnt yet loaded up! so i have put a wait(1000) straight after the keydowns.

    and you must know that all these internet explorers are maximised! so as soon as the script closes the first window, (for a split second there isnt a X) which makes the script terminate if you get what i mean?

  7. #7
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    So you start in IE with a maximized screen?

    Ok, so if you drag the crosshairs onto IE, then use the color picker to click where the X is, what coordinates does it spit out?

    Also, when these windows pop up, do they pop up over the original window or under it?

  8. #8
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    no i start with nothing on the screen at all! then i click ctrl + Alt + R to run the script!

    all the I.Es come up maximised over the screen.

    then the script goes to the cross and clicks it.

    then the script terminates.
    btw i dont drap the corsshair at all.


    Color Picked: 5730791 at (1010, 16)

    i cant be sure if they pop up over or under but why dont you try it on your own pc just go to right click, properties, shortkey, and then make your shortkey.


    ****EDIT****

    over on moparisthebest cheesehunk has just informed me of a way of saving time!!

    simple use Alt + F4 to close the applications!!!

    all that has to be made sure of is the fact that i dont wanna close SCAR.

    so maybe if you could kindly finish off the script using Alt + F4 as the window closers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. FrugooScape Autoclicker
    By nhstarter10 in forum First Scripts
    Replies: 28
    Last Post: 01-31-2009, 08:41 PM
  2. Anti-Ban Autoclicker?
    By anti in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 06-19-2007, 12:09 PM
  3. help with this autoclicker!
    By seany in forum OSR Help
    Replies: 0
    Last Post: 01-22-2007, 09:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •