Jump to content

Recommended Posts

Posted

i need help about this code, no matter what i do i can't solve the problem

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ImageSearch.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 231, 188, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("kutu topla", 72, 32, 97, 17)
$Button1 = GUICtrlCreateButton("basla", 72, 72, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            If GUICtrlRead($Checkbox1) = 1 Then
                a()
            EndIf
    EndSwitch
WEnd
Func a()
    Global $x, $y, $ux, $uy, $ax, $ay
    If _ImageSearch("kutu.png",0, $x, $y,10) 1 Then
        MouseClick("left", $x+10,$y+10,1,0)
    ElseIf _ImageSearch("hareket.png",0,0,0,25) = 0 Then
        _ImageSearch("ust.png",0, $ux, $uy,5)
        _ImageSearch("alt.png",0, $ax, $ay,5)
        MouseClick("left", Random($ux, $ax), Random($uy, $ay),1,0)
        MsgBox(0,0,"Haritaya Tiklandi X:"&$ux&" "&$ax&@CRLF&$uy&" "&$ay)
    EndIf
EndFunc

I don't understand what you mean by this error

s.png

Posted
29 minutes ago, Jos said:

Did you actually read the error messages and see  what position it is on? ;) 

So what is this BOT for?

I swear I have read the error text at least a hundred times, but I still do not understand the error, can you please explain? for bot waruniverse

Posted
3 minutes ago, Tunahan said:

I swear I have read the error text at least a hundred times, but I still do not understand the error, can you please explain? for bot waruniverse

reported.

  • Developers
Posted

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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