Sign in to follow this  
Followers 0
mlaxng

You can fix the script?

12 posts in this topic

;Made by Snow9
Global $Paused
HotKeySet("{end}", "Pause")
HotKeySet("{home}", "Start")
While 1
    Sleep(100)
WEnd
Func Pause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
    WEnd
EndFunc
; keys 
; &     1
; é    2
; "     3
; '     4
; (     5
; §    6
; è    7
; !     8
; ç    9
; à    0
Func Start()
while 1
    Sleep(100)
    Send("{tab}")  
Else
        while $mob = NOT "72812c" <-Pixel
        Send("{ç}")
        $mm = PixelGetColor ( 1138,12 )
        $mob = Hex($mm, 6)
        wend
        Send("{à}")
        Sleep(500)
        Send("{à}")
        Sleep(300)
        Send("{à}")
    EndIf
endif
Wend
endfunc

ERROR:

39) : ==> "Else" statement with no matching "If" statement.:

Else

You can fix the script for me?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

;Made by Snow9

Global $Paused

HotKeySet("{end}", "Pause")

HotKeySet("{home}", "Start")

While 1

Sleep(100)

WEnd

Func Pause()

$Paused = NOT $Paused

While $Paused

sleep(100)

WEnd

EndFunc

; keys

; & 1

; é 2

; " 3

; ' 4

; ( 5

; § 6

; è 7

; ! 8

; ç 9

; à 0

Func Start()

while 1

$Test = 1

If $Test = 1 Then

Sleep(100)

Send("{tab}")

ElseIf

while $mob = NOT "72812c" <-Pixel

Send("{ç}")

$mm = PixelGetColor ( 1138,12 )

$mob = Hex($mm, 6)

wend

Send("{à}")

Sleep(500)

Send("{à}")

Sleep(300)

Send("{à}")

EndIf

Wend

endfunc

Try this..

Edited by BlackDawn187

Share this post


Link to post
Share on other sites

BlackDawn,you can fix the script for not pause?

Share this post


Link to post
Share on other sites

Try removing Global $Paused?

Share this post


Link to post
Share on other sites

;Made by Snow9  HotKeySet("{end}", "Pause") HotKeySet("{home}", "Start")  While 1 Sleep(100) WEnd  Func Pause() $Paused = NOT $Paused While $Paused sleep(100) WEnd EndFunc  ; keys ; & 1 ; é 2 ; " 3 ; ' 4 ; ( 5 ; § 6 ; è 7 ; ! 8 ; ç 9 ; à 0  Func Start() while 1  $Test = 1 If $Test = 1 Then Sleep(100) Send("{tab}") ElseIf  while $mob = NOT "72812c"  Send("{ç}") $mm = PixelGetColor ( 1138,12 ) $mob = Hex($mm, 6) wend Send("{à}") Sleep(500) Send("{à}") Sleep(300) Send("{à}") EndIf   Wend  endfunc

Not worked...

The script pause...

Share this post


Link to post
Share on other sites

Try this:

While 1

;script here

WEnd

Share this post


Link to post
Share on other sites

Question....

can you do a while else endif wend in autoit like

Func Start() 
while 1 
        Sleep(100) 
        Send("{tab}")   
Else 
 
                while $mob = NOT "72812c" <-Pixel 
                Send("{ç}") 
                $mm = PixelGetColor ( 1138,12 ) 
                $mob = Hex($mm, 6) 
                wend 
                Send("{à}") 
                Sleep(500) 
                Send("{à}") 
                Sleep(300) 
                Send("{à}") 
        EndIf 
endif 
 
Wend 
 
endfunc

or have i misslooked?


Work smarter not harder.My First Posted Script: DataBase

Share this post


Link to post
Share on other sites

Whoa! so this was a bot script :graduated: sorry mate didn't know that


Work smarter not harder.My First Posted Script: DataBase

Share this post


Link to post
Share on other sites

Well as im not an admin or moderator thats not up to me to decide. But i get the tickleing feeling it is. But then agin, not my call


muppet hands are so soft :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0