Jump to content
Colemanbro

Missing EndIf

Recommended Posts

Colemanbro

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

Share this post


Link to post
Share on other sites
Jos

@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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×