# i need a fast script please

## Recommended Posts

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 on other sites

```#include <Misc.au3>

While 1
If _IsPressed("01") Then
\$Pos = MouseGetPos()
If \$Pos[0] = 748 And \$Pos[1] = 667 Then
Send("1")
Send("{ENTER}")
EndIf
EndIf
WEnd```

?

##### Share on other sites

sweet how do i make this a script that i can run?

##### Share on other sites

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 on other sites

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

##### Share on other sites

```#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

## Create an account

Register a new account

×

• Wiki

• Back

• Git