Jump to content

You can fix the script?


mlaxng
 Share

Recommended Posts

;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?

Link to comment
Share on other sites

  • Developers

;Made by Snow9

You can fix the script for me?

Why?

What have to changed to make it fail?

What Game is it for?

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

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

  • Developers

BlackDawn,you can fix the script for not pause?

I am missing an answer to my questions.....

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

;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...

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

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