Jump to content

Error: "EndIf" statement with no matching "If" statement - (Locked)


Recommended Posts

Hello i need help in this script i can fix this error , the script works but i receive this error

My Code:

Opt("WinTitleMatchMode", 4)

HotKeySet("{INSERT}", "_Pause")
Global $pause = True
HotKeySet ("{END}", "_Exit")

While 1
    Sleep(250)
 WEnd

Func Start()
    While 1
      If Not $pause And WinActive("classname=LWJGL") Then
        $pxs = PixelSearch(0,0,1919,1079,0xCA0000)
        If isArray($pxs) then
             MouseMove($pxs[0],$pxs[1], 0)
             MouseClick("Left")
          EndIf
       EndIf
    $cStatus = 0
    $tmp = 0

    EndIf

    Sleep(10)

WEnd


Func _Exit()
    Exit
 EndFunc

 Func _Pause()

    $pause = Not $pause

    If $pause Then
        TrayTip("Paused", "Aiming paused", 15)
    Else
        TrayTip("Unpaused", "Aiming!", 15)
    EndIf

EndFunc

 

Link to post
Share on other sites
  • Jos locked this topic
  • Developers

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.
  :)

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...