|
You last visited: Today at 13:09
Advertisement
AutoIt script schließt sich ? Wieso
Discussion on AutoIt script schließt sich ? Wieso within the AutoIt forum part of the Coders Den category.
07/08/2014, 15:21
|
#1
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
AutoIt script schließt sich ? Wieso
Seit ich gestern meinen Pc neu installiert habe,schließen sich all meine autoit bots wenn sie die while schleife einmal durch haben,es läuft wieder win 7 64bit drauf.
Und jetzt wollte ich fragen brauche ich noch irgend ein runtime etc damit die autoit scripts wieder laufen wie davor ?
liebe grüße
Niko
|
|
|
07/08/2014, 18:23
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
|
Quote:
|
AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs.
|
Quote:
|
AutoIt is a very small and standalone application with no reliance on massive runtimes like .NET or VB. All you need to run AutoIt scripts are the main AutoIt executable (AutoIt3.exe) and the script.
|
→ Du brauchst nichts weiter als deine .exe bzw. deine .au3 und AutoIt.
Bist du dir sicher, dass der Fehler nicht am Script liegt? Nur weil es vorher funktioniert hat muss es noch lange nicht bedeuten, dass es fehlerfrei ist.
|
|
|
07/08/2014, 18:45
|
#3
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Ohne Snippets können wir da nicht weiterhelfen; AutoIt braucht aber keine Runtimes. Der Interpreter ist in der Exe-schon enthalten.
|
|
|
07/08/2014, 19:48
|
#4
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
Das Problem ist das sich alle autoit scipts mit while schleife bei mir schließen.
Beispiel script:
HotKeySet("{F9}", "_end")
HotKeySet("{F8}", "_start")
While 1
Sleep(100)
WEnd
Func _start()
If (WinActivate ("###S4Client###_0")) Then
While 1
ControlSend("###S4Client###_1", "", 0, "{F5}")
Sleep(250)
ControlSend("###S4Client###_1", "", 0, "{ESC}")
Sleep(100)
ControlClick("###S4Client###_1", "", 0, "LEFT", 3, 394, 351)
ControlClick("###S4Client###_1", "", 0, "LEFT", 3, 738, 395)
If NOT WinExists("###S4Client###_1") Then Exit
Sleep(500)
ControlSend("###S4Client###_0", "", 0, "{F5}")
Sleep(100)
ControlSend("###S4Client###_0", "", 0, "{ESC}")
Sleep(100)
ControlClick("###S4Client###_0", "", 0, "LEFT", 3, 394, 351)
ControlClick("###S4Client###_0", "", 0, "LEFT", 3, 738, 395)
If NOT WinExists("###S4Client###_0") Then Exit
Sleep(500)
ControlClick("Teleport Manager - SoulCr4ck", "", "[ID:5]")
WEnd
EndIf
EndFunc
Func _end()
ProcessExists("Teleport F5 Bot Window 2")
ProcessClose("Teleport F5 Bot Window 2")
EndFunc
|
|
|
07/08/2014, 20:04
|
#5
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
Das Problem ist das sich alle autoit scipts mit while schleife bei mir schließen.
Beispiel script:
HotKeySet("{F9}", "_end")
HotKeySet("{F8}", "_start")
While 1
Sleep(100)
WEnd
Func _start()
If (WinActivate ("###S4Client###_0")) Then
While 1
ControlSend("###S4Client###_1", "", 0, "{F5}")
Sleep(250)
ControlSend("###S4Client###_1", "", 0, "{ESC}")
Sleep(100)
ControlClick("###S4Client###_1", "", 0, "LEFT", 3, 394, 351)
ControlClick("###S4Client###_1", "", 0, "LEFT", 3, 738, 395)
If NOT WinExists("###S4Client###_1") Then Exit
Sleep(500)
ControlSend("###S4Client###_0", "", 0, "{F5}")
Sleep(100)
ControlSend("###S4Client###_0", "", 0, "{ESC}")
Sleep(100)
ControlClick("###S4Client###_0", "", 0, "LEFT", 3, 394, 351)
ControlClick("###S4Client###_0", "", 0, "LEFT", 3, 738, 395)
If NOT WinExists("###S4Client###_0") Then Exit
Sleep(500)
ControlClick("Teleport Manager - SoulCr4ck", "", "[ID:5]")
WEnd
EndIf
EndFunc
Func _end()
ProcessExists("Teleport F5 Bot Window 2")
ProcessClose("Teleport F5 Bot Window 2")
EndFunc
|
|
|
07/08/2014, 20:10
|
#6
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
If NOT WinExists("###S4Client###_0") Then Exit
hat sich der name geändert? mach anstelle von exit mal ne msgbox hin, dann merkste obs daran liegt.
|
|
|
07/08/2014, 20:38
|
#7
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
geht aber schmiert trotzdem ab
|
|
|
07/09/2014, 22:48
|
#8
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
So habe die compilten scripts meinem Kumpel geschickt bei ihm stürzen sie auch ab dann habe ich einen script neu geschrieben und jetzt nimmt das Spiel die Tastendrücke nicht mehr an.
|
|
|
07/09/2014, 22:50
|
#9
|
elite*gold: 0
Join Date: Jun 2010
Posts: 2,291
Received Thanks: 713
|
Das Script zu posten wäre wieder von Vorteil, vll. hat sich einfach ein kleiner Fehler dabei eingeschlichen.
|
|
|
07/09/2014, 23:02
|
#10
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
Hier der script
HotKeySet("{F8}", "_start")
Func _start()
If (WinActivate ("###S4Client###_0")) Then
While 1
;Client 0
ControlSend("###S4Client###_0", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_0", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_0") Then Exit
;Client 1
ControlSend("###S4Client###_1", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_1", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_1") Then Exit
;Client 2
ControlSend("###S4Client###_2", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_2", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_2") Then Exit
;Client 3
ControlSend("###S4Client###_3", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_3", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_3") Then Exit
;Client 4
ControlSend("###S4Client###_4", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_4", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_4") Then Exit
;Client 5
ControlSend("###S4Client###_5", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_5", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_5") Then Exit
;Client 6
ControlSend("###S4Client###_6", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_6", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_6") Then Exit
;Client 7
ControlSend("###S4Client###_7", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_7", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_7") Then Exit
;Client 8
ControlSend("###S4Client###_8", "", 0, "{F5}")
Sleep(1500)
ControlSend("###S4Client###_8", "", 0, "{ESC}")
Sleep(1500)
If NOT WinExists("###S4Client###_8") Then Exit
WEnd
EndIf
EndFunc
|
|
|
07/10/2014, 00:40
|
#11
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
probier mal andere hotkeys aus, sowas wie nen buchstabe oder so.
|
|
|
07/10/2014, 12:37
|
#12
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Das Script beendet sich auch sofort weil der HotKey gesetzt wird und nichts danach kommt.
|
|
|
07/10/2014, 22:30
|
#13
|
elite*gold: 240
Join Date: Mar 2014
Posts: 374
Received Thanks: 585
|
Quote:
Originally Posted by alpines
Das Script beendet sich auch sofort weil der HotKey gesetzt wird und nichts danach kommt.
|
Übersetztung bau ne while schleife ein die nicht in der Funktion liegt
|
|
|
07/11/2014, 11:57
|
#14
|
elite*gold: 45
Join Date: Jun 2012
Posts: 3,998
Received Thanks: 2,348
|
hatte ich schon davor,jetzt wieder drinne und es crashed wieder xD
|
|
|
07/11/2014, 13:31
|
#15
|
elite*gold: 10
Join Date: May 2013
Posts: 814
Received Thanks: 1,265
|
Wie alpines schon sagte, setzt du den Hotkey und definierst die Funktion.
Nachdem das erledigt ist, schließt sich das Script selbstverständlich.
Du musst die Funktion entweder nach dem HotKeySet einmal aufrufen, oder eine Whileschleife einbauen, damit dein Script sich nicht sofort wieder schließt.
//Edit: Achso, hattest du vorher schon drin, aber:
If (WinActivate("###S4Client###_0")) Then
wat?
|
|
|
 |
|
Similar Threads
|
Script schließt sich
12/21/2013 - S4 League - 2 Replies
Hey Com,
ich habe ein Problem. Wenn ich meine Script starten will, schließt der sich wiederrum. Hier erstmal der Script.
#RequireAdmin
HotKeySet("{F11}", "_bot")
Func _bot()
Send("{1}")
Send("{space}")
Sleep(30)
Send("{a}")
Send("{space}")
|
Client schließt sich <3
08/14/2012 - Metin2 Private Server - 1 Replies
Hallo e*pvp
Ich habe folgendes Problem,das sich der Client nach dem Einloggen schließt.
Sysser
Hoffe auf eine Antwort :)
|
Mein Script schließt sich immer sofort - nur wieso?
06/12/2011 - AutoIt - 19 Replies
Hallo ihr EPVPler ;)
Problem Nr.1 gelöst - auf Seite 2 wartet das nächste :/
würde mich freuen wenn ihr da reinschauen würdet
ich habe irgendwie ein Problem mit meinem Script:
Immer wenn ich es öffne, schließt es sich sofort wieder.
Findet ihr den Fehler in meinem Code?
|
S4 schließt sich
07/02/2010 - S4 League - 8 Replies
Abend :)
Als ich heute mich engeloggt habe schaute ich nach meinem Clan. Ich schließte das Fenster. Spielte ne Runde. Gin Lobby und wollte nochmal nach schauen, aber s4 schloss sich. Ich loggte mich noch mal ein, aber s4 schloss sich wieder. Nach 4 Versuchen gab ich auf. Warum schließt sich immer S4?
|
wr schließt sich
05/08/2010 - WarRock - 4 Replies
hey,
wenn ich normal spiele, keine hacks oder so, mitten drin schließt sich warrock einfach, ohne meldung oder sonstwas. weiß jemand wieso? würd gerne normal spielen.
mfg pluschki
|
All times are GMT +1. The time now is 13:10.
|
|