Jump to content
Sign in to follow this  
itsleet

i need a fast script please

Recommended Posts

itsleet

hey guys can sum1 make a script that does this?

when my mouse clicks at the location 748,667

i want it to input the number 1

and then press enter

really fast....can anyone do this or tell me how plz?

Share this post


Link to post
Share on other sites
Jex
Jex

I think script ran but you don't understand because you can't test. You can't test because coordinate very small ( 1x1 pixel ) .

#include <Misc.au3>

While 1
    If _IsPressed("01") Then
        $Pos = MouseGetPos()
        If $Pos[0] > 728 And $Pos[1] > 647 And $Pos[0] < 768 And $Pos[1] < 687 Then
            Send("1")
            Send("{ENTER}")
        EndIf
    EndIf
WEnd

Try that

Edited by Jex

Share this post


Link to post
Share on other sites
itsleet

its not working :P im in diablo window when i do it does that matter?

Share this post


Link to post
Share on other sites
Jex

#include <Misc.au3>

$Coordinate1 = 748
$Coordinate2 = 667

While 1
    If _IsPressed("01") Then
        $Pos = MouseGetPos()
        If $Pos[0] > $Coordinate1 - 30 And $Pos[1] > $Coordinate2 - 30 And $Pos[0] < $Coordinate1 + 30 And $Pos[1] < $Coordinate2 + 30 Then
            Send("1")
            Send("{ENTER}")
            Sleep(1000)
        EndIf
    EndIf
WEnd

I'm tested working. Try change $Coordinate1 and $Coordinate2

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  

×