beim Script Ablauf bekomme ich ab und zu diese Fehlermeldung:
Code: Select all
Error: A "return" must be encountered prior to this "}".
Line#
052: WinActivate,Mozilla Firefox
053: Sleep,100
054: Send,^w
055: Sleep,333
056: }
057: Else
058: Return
---> 059: }
063: Reload
066: Edit
069: ExitApp
070: Exit
071: Exit
071: Exit
The current thread will exit.
Code: Select all
F7::
Loop {
start:
SetTitleMatchMode, 2
IfWinActive, Mozilla Firefox
{
SetTitleMatchMode, 2
WinActivate, Mozilla Firefox
sleep, 333
clipboard =
MouseMove, 193, 266, 30
Sleep, 1000
Click, 193, 266, 3
Sleep, 1000
Send, ^c
ClipWait,2
nht = red,green,blue
If Clipboard contains %nht%
{
Send, ^w
sleep, 3000
Gosub, start
}
ImageSearch, FoundX, FoundY, 11, 4, 1283, 37, *33 laut.png
While (ErrorLevel)
{
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 11, 4, 1283, 37, *33 laut.png
If ErrorLevel = 1
{
Click, 437, 559
sleep, 5000
}
}
CoordMode, Mouse, Screen
Click, Right, 437, 559
sleep, 500
SendInput {o}
sleep, 1000
SendInput {Enter}
Clipwait
WinActivate, Unbenannt - Editor
SendInput, % Clipboard
sleep, 150
Send {Enter}
sleep, 300
SetTitleMatchMode, 2
WinActivate, Mozilla Firefox
sleep, 100
Send, ^w
sleep, 333
}
Else
return
}
F8::
reload
F9::
Edit
F12::
ExitApp
Denke und liebe Grüße