Jump to content

Missing EndIf


Colemanbro
 Share

Recommended Posts

Im trying to create a bot for a game and I wrote everything perfect. Now at the very end of the script, I wrote WEnd but underneath when I test compiled the script it says missing EndIF. Underneath is the end of the script.

$pix = PixelSearch(1185,313,1327,340,0x98969A,5)
         if not (@error) then
               MouseClick("left", 1259,323,1,1)
            sleep(3000)
               MouseClick("left",1029,602,1,1)
               sleep(1000)
            MouseClick("left",1157,672,1,1)
            sleep(1000)
         EndIf


   MouseClick("left",1323,109,1,1)
   sleep(4000)
         WEnd

Link to comment
Share on other sites

  • Jos locked this topic
  • Developers

@Colemanbro, Please read our forum rules, especially the section about game automation.

@IAMK, Please simply hit the Report button on Threads like this so the moderation team can act. Thanks.

Jos

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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