Jump to content

i need a fast script please


itsleet
 Share

Recommended Posts

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...