Sign in to follow this  
Followers 0
Celinci

Need a little assistance..

22 posts in this topic

#Include <Misc.au3>

$left = 75

$top = 255

$right = 85

$bottem = 265

$dll = DllOpen("user32.dll")

$Color = 0xE7F7FF

While 1

Select

Case _IsPressed("25",$dll) ; left key

$left = 75

$top = 255

$right = 85

$bottem = 265

Case _IsPressed("27",$dll) ; right key

$left = 710

$top = 255

$right = 720

$bottem = 265

Case _IsPressed("10",$dll)

$Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)

If IsArray($Pos) Then

MouseMove($Pos[0],$Pos[1],0)

MouseDown("left")

sleep(700)

MouseUp("left")

EndIf

EndSelect

WEnd

DllClose($dll)

That was a script made up for an aimbot for the game kiekko.tk. I copy pasted it exactly into a script file, compiled it into an exe, ran both, but nothing happened in the game. My question is, is there something else I have to do in order for the game to recognize it, or the script/exe to recognize the game? Is there something I have to edit the script with? Is the script possibly outdated because of updates?

Thanks in advance for any help, I figured a new topic would be better since the other one seems to be dead and no one is interested. That and it's more of a troubleshoot one.

And yes, I've been trying myself to find out why it won't work, and asked a few friends, but they're as clueless as me about this stuff. I'm working on trying to figure it out as I type this but I don't have much of an idea what I'm doing.

Many thanks in advance if anyone can help me figure it out.

Share this post


Link to post
Share on other sites



Hour update!

Gave up trying to tinker with it myself and just went back to the default since some people said they got it working. Still trying to figure out if I just.. didn't rename something, or didn't activate the script at the right time, and still trying to find out if it even still works.

Not really having any luck on my own. Looking through help files now to see if I didn't run the script properly.

Share this post


Link to post
Share on other sites

I think _IsPressed has changed, but I don't have the help file available at the moment so I can't verify.

You should install SciTE4Autoit3 (from the download page) and run the script with F5. Might give some clues. Also use CTRL+T (tidy) to get a cleaner layout of your script. And last when posting wrap your code with autoit tags (the blue button with an A in the web editor) to get color highlighted code in the forum. Tidy and colors makes the code a lot easier to read for the rest of us..:)

Share this post


Link to post
Share on other sites

I think _IsPressed has changed, but I don't have the help file available at the moment so I can't verify.

You should install SciTE4Autoit3 (from the download page) and run the script with F5. Might give some clues. Also use CTRL+T (tidy) to get a cleaner layout of your script. And last when posting wrap your code with autoit tags (the blue button with an A in the web editor) to get color highlighted code in the forum. Tidy and colors makes the code a lot easier to read for the rest of us..:D

#Include <Misc.au3>
$left = 75
$top = 255
$right = 85
$bottem = 265
$dll = DllOpen("user32.dll")
$Color = 0xE7F7FF

While 1
    Select
        Case _IsPressed("25",$dll)  ; left key
            $left = 75
            $top = 255
            $right = 85
            $bottem = 265
        Case _IsPressed("27",$dll) ; right key
            $left = 710
            $top = 255
            $right = 720
            $bottem = 265
           
        Case _IsPressed("10",$dll)
            $Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)
            If IsArray($Pos) Then
                MouseMove($Pos[0],$Pos[1],0)
                MouseDown("left")
                sleep(700)
                MouseUp("left")
            EndIf
           
           
    EndSelect
DllClose($dll)
WEnd

Tried to CTRL T it but it didn't really do anything, but I did the autoit tags.

Kind of at a loss why it doesn't seem to work or affect the game at all. Unless the script is for an older version, or I don't have the script saved in the right place, or a certain file, or something is named wrong. Kinda stuck. :)

Share this post


Link to post
Share on other sites

Hell, if someone can help me get the aim thingy to work for this game, I'll even donate $20 to the site for being helpful. Thanks a lot in advance too guys. :)

Share this post


Link to post
Share on other sites

CTRL+T did give you indenting did it not?

You have switched These

DllClose($dll)
WEndoÝ÷ Ø]²¶§X¤zØb²Ú,yèj|­)àÇhæ­jYZºÚ"µÍØÙHÒÔÜÙY
    ][ÝÌL ][ÝË  ÌÍÙ
BÛÛÛÛUÜ]J  ÌÍÛY [È ][ÝË  ][ÝÈ  [È ÌÍÝÜ    [È ][ÝË  ][ÝÈ  [È ÌÍÜYÚ   [È ][ÝË  ][ÝÈ  [È ÌÍØÝ[H  [È ][ÝË  ][ÝÈ  [È ÌÍÐÛÛÜ    [ÈHÔ]ZÈØÚUB    ÌÍÔÜÈH^[ÙXÚ
    ÌÍÛY ÌÍÝÜ    ÌÍÜYÚ   ÌÍØÝ[K  ÌÍÐÛÛÜL

Share this post


Link to post
Share on other sites

CTRL+T did give you indenting did it not?

You have switched These

DllClose($dll)
WEndoÝ÷ Ø]²¶§X¤zØb²Ú,yèj|­)àÇhæ­jYZºÚ"µÍØÙHÒÔÜÙY
    ][ÝÌL ][ÝË  ÌÍÙ
BÛÛÛÛUÜ]J  ÌÍÛY [È ][ÝË  ][ÝÈ  [È ÌÍÝÜ    [È ][ÝË  ][ÝÈ  [È ÌÍÜYÚ   [È ][ÝË  ][ÝÈ  [È ÌÍØÝ[H  [È ][ÝË  ][ÝÈ  [È ÌÍÐÛÛÜ    [ÈHÔ]ZÈØÚUB    ÌÍÔÜÈH^[ÙXÚ
    ÌÍÛY ÌÍÝÜ    ÌÍÜYÚ   ÌÍØÝ[K  ÌÍÐÛÛÜL
Tried it, didn't seem to do anything. The script runs as does the .exe without error, but the sun java client and the game itself don't seem to be affected by it at all. The only thing I can think of is if I need to rename one of the main tags or save the file somewhere specific. Or I'll have to try get someone to try the script themselves on the game. Thanks for the suggestion though. More would be great. I'll go back to digging up information.

Share this post


Link to post
Share on other sites

But you do get output in SciTE's output pan when you run it?

Sorry I cant test it but I'm not on a windows machine at the moment.

And you should probably post a link to the game (if it is free).

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

But you do get output in SciTE's output pan when you run it?

Sorry I cant test it but I'm not on a windows machine at the moment.

And you should probably post a link to the game (if it is free).

EDIT : I do get output in the pan.

75, 255, 85, 265, 15202303

over and over and over again.

The game is free.

The site is http://kiekko.tk/?lang=en

All you should have to do is click play hockey, and go into one of the beginner rooms.

Edited by Celinci

Share this post


Link to post
Share on other sites

Don't this change if you use the right or left arrow key?

Doesn't seem to. The script seems to be reacting to the game now, but it's extremely laggy, and in need of a sleep somewhere. Either that, or I need to rewrite the script using the locations in the game in the above script.

Gah. This seems really complicated, more so then it should be.

Share this post


Link to post
Share on other sites

Doesn't seem to. The script seems to be reacting to the game now, but it's extremely laggy, and in need of a sleep somewhere. Either that, or I need to rewrite the script using the locations in the game in the above script.

Gah. This seems really complicated, more so then it should be.

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Program Files\AutoIt3\Examples\kiekko.au3"

Comes up in outbound when I go to run the script.

Not sure if that should be there or not. My head is about to explode, so enough of all that for tonight. If anyone is familiar with the script or sees/knows something is wrong from what is read. Let me know, thanks in advance. Later guys!

Share this post


Link to post
Share on other sites

PLEASE TEST THIS!!!:)

#Include <Misc.au3>
$left = 75
$top = 255
$right = 85
$bottem = 265
$dll = DllOpen("user32.dll")
$Color = 0xE7F7FF

While 1
    Select
        Case _IsPressed("25",$dll) ; left key
            $left = 75
            $top = 255
            $right = 85
            $bottem = 265
        ToolTip("LEFT key")
        Case _IsPressed("27",$dll); right key
            $left = 710
            $top = 255
            $right = 720
            $bottem = 265
        ToolTip("Right key")   
        Case _IsPressed("10",$dll)
            ToolTip("ShiFT key")
            $Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)
            If IsArray($Pos) Then
                MouseMove($Pos[0],$Pos[1],0)
                MouseDown("left")
                sleep(700)
                MouseUp("left")
            EndIf
           
           
    EndSelect

WEnd
DllClose($dll)

Share this post


Link to post
Share on other sites

PLEASE TEST THIS!!!:)

#Include <Misc.au3>
$left = 75
$top = 255
$right = 85
$bottem = 265
$dll = DllOpen("user32.dll")
$Color = 0xE7F7FF

While 1
    Select
        Case _IsPressed("25",$dll); left key
            $left = 75
            $top = 255
            $right = 85
            $bottem = 265
        ToolTip("LEFT key")
        Case _IsPressed("27",$dll); right key
            $left = 710
            $top = 255
            $right = 720
            $bottem = 265
        ToolTip("Right key")   
        Case _IsPressed("10",$dll)
            ToolTip("ShiFT key")
            $Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)
            If IsArray($Pos) Then
                MouseMove($Pos[0],$Pos[1],0)
                MouseDown("left")
                sleep(700)
                MouseUp("left")
            EndIf
           
           
    EndSelect

WEnd
DllClose($dll)
Well, that doesn't aim the cursor to the spots, it just makes little target boxes with right left and shift key come up around where the cursor is. It does it even when not in the game, so it doesn't interact with the game unfortunately. It's more progress then I got it it do do however.

The idea is to make the cursor automatically aim to the spot in the game where it always goes into the net. Thank you for trying though, appreciated. Maybe I can try and tweek it or something. If anyone else can figure out how to finish it off let me know, it'll save me a huge headache.

Share this post


Link to post
Share on other sites

Ah screw it. If someone can get the script working or figure out a new one I'll donate to the site and if the person who does it has paypal I'll send them $10 canadian or something.

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

TEST This again!

I haven't java to play the game,but i think this will do.And be far away from Money.

#Include <Misc.au3>
$left = 75
$top = 255
$right = 85
$bottem = 265
$dll = DllOpen("user32.dll")
$Color = 15202303
While 1
    Select
        Case _IsPressed("25",$dll); left key
            $left = 75
            $top = 255
            $right = 85
            $bottem = 265
        ToolTip("LEFT key pressed")
        Case _IsPressed("27",$dll); right key
            $left = 710
            $top = 255
            $right = 720
            $bottem = 265
        ToolTip("Right key pressed")   
        Case _IsPressed("10",$dll)
            ToolTip("ShiFT key pressed!lLEFT now is "&$left)
            $Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)
            If IsArray($Pos) Then
                MouseMove($Pos[0],$Pos[1],0)
                MouseDown("left")
                sleep(700)
                MouseUp("left")
else
 ToolTip("cannot find it!")   
            EndIf
           
           
    EndSelect

WEnd
DllClose($dll)
Edited by AU3Newbie

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

I don't believe there's any reason exists for the code cannot run as it should runs.

==========

If the code above still cannot run properly indeed,you should now make sure that the color you got correctly and Position you dim correctly.

Good Luck!

Edited by AU3Newbie

Share this post


Link to post
Share on other sites

I don't believe there's any reason exists for the code cannot run as it should runs.

==========

If the code above still cannot run properly indeed,you should now make sure that the color you got correctly and Position you dim correctly.

Good Luck!

Nope. Doesn't seem to work. I think I'm probably gonna have to try and look at the game and try to make up a new code, or hope someone can help with it since I have problems with java stuff. Might be a lost cause unfortunately. Things look bleek. :)

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

After changing HEXColor to DEC,mayBe you should test this for the last time before give up.I'll give up from now on.sorry.

OLD CODE:

$Pos = PixelSearch($left,$top,$right,$bottem, $Color, 10,2)

NEW CODE LINE:

$Pos = PixelSearch($left,$top,$right,$bottem, $Color)

2to1 to be exact.

Edited by AU3Newbie

Share this post


Link to post
Share on other sites

Nope. Doesn't seem to work. I think I'm probably gonna have to try and look at the game and try to make up a new code, or hope someone can help with it since I have problems with java stuff. Might be a lost cause unfortunately. Things look bleek. :)

No problem man, you gave it a shot. Thanks for trying.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0