Processclose Problem

  • Hi,

    ich hab da nen script in dem ich per gui auswählen kann wie viele weitere scripte gestartet werden solln, max sind 12 scripte.
    so habe auch ein Pause und exit button. wenn ich auf pause drücke solln alle scripte bis auf das hauptscript beendet werden klappt auch ganz gut bis auf 1 script das komische ist das es immer das gleiche script ist was nicht beendet wird. Rechstschreibfehler hab ich schon überprüft aber nigs gefunden vllt könnt ihr mir helfen.
    egal ob 4-Client-PT.exe oder 4-Client.exe diese werden nicht beendet

    fals ihr ne bessere möglichkeit habt die processe zu beenden dann bin ich offen dafür

    Spoiler anzeigen
    [autoit]

    Func _Pause()
    SoundPlay(@ScriptDir & "\data\paused.wav",0)
    $PID1 = ProcessExists("1-Client-PT.exe")
    $PID2 = ProcessExists("2-Client-PT.exe")
    $PID3 = ProcessExists("3-Client-PT.exe")
    $PID4 = ProcessExists("4-Client-PT.exe")
    $PID5 = ProcessExists("5-Client-PT.exe")
    $PID6 = ProcessExists("6-Client-PT.exe")
    $PID7 = ProcessExists("7-Client-PT.exe")
    $PID8 = ProcessExists("8-Client-PT.exe")
    $PID9 = ProcessExists("9-Client-PT.exe")
    $PID10 = ProcessExists("10-Client-PT.exe")
    $PID11 = ProcessExists("11-Client-PT.exe")
    $PID12 = ProcessExists("12-Client-PT.exe")
    $PID13 = ProcessExists("1-Client.exe")
    $PID14 = ProcessExists("2-Client.exe")
    $PID15 = ProcessExists("3-Client.exe")
    $PID16 = ProcessExists("4-Client.exe")
    $PID17 = ProcessExists("5-Client.exe")
    $PID18 = ProcessExists("6-Client.exe")
    $PID19 = ProcessExists("7-Client.exe")
    $PID20 = ProcessExists("8-Client.exe")
    $PID21 = ProcessExists("9-Client.exe")
    $PID22 = ProcessExists("10-Client.exe")
    $PID23 = ProcessExists("11-Client.exe")
    $PID24 = ProcessExists("12-Client.exe")
    If $PID1 Or $PID2 Or $PID3 Or $PID4 Or $PID5 Or $PID6 Or $PID7 Or $PID8 Or $PID9 Or $PID10 Or $PID11 Or $PID12 Or $PID13 Or $PID14 Or $PID15 Or $PID16 Or $PID17 Or $PID18 Or $PID19 Or $PID20 Or $PID21 Or $PID22 Or $PID23 Or $PID24 Then
    ProcessClose($PID1)
    ProcessClose($PID2)
    ProcessClose($PID3)
    ProcessClose($PID4)
    ProcessClose($PID5)
    ProcessClose($PID6)
    ProcessClose($PID7)
    ProcessClose($PID8)
    ProcessClose($PID9)
    ProcessClose($PID10)
    ProcessClose($PID11)
    ProcessClose($PID12)
    ProcessClose($PID13)
    ProcessClose($PID14)
    ProcessClose($PID15)
    ProcessClose($PID16)
    ProcessClose($PID17)
    ProcessClose($PID18)
    ProcessClose($PID19)
    ProcessClose($PID20)
    ProcessClose($PID21)
    ProcessClose($PID22)
    ProcessClose($PID23)
    ProcessClose($PID24)
    ToolTip('Script is "Paused". END to close Script',0,0)
    EndIf
    EndFunc

    [/autoit]
    • Offizieller Beitrag

    Versuch's mal so:

    Spoiler anzeigen
    [autoit]


    Func _Pause()
    SoundPlay(@ScriptDir & "\data\paused.wav",0)
    For $i = 1 To 12
    $PID = ProcessExists($i & "-Client-PT.exe")
    If $PID Then ProcessWaitClose($PID, 1000)
    $PID = ProcessExists($i & "-Client.exe")
    If $PID Then ProcessWaitClose($PID, 1000)
    Next
    ToolTip('Script is "Paused". END to close Script',0,0)
    EndFunc

    [/autoit]
  • jo ok hab das processwaitclose mit processclose ausgetauscht klappt gut und is viel kürzer.
    ABER, das große aber 4-Client.exe bleibt immer noch gestartet das will er einfach net beenden.
    Es steht auch nichts anderes im script drinn als bei den anderen, also 1-Client.exe und so weiter.

  • Hallo EmE,

    jo ok hab das processwaitclose mit processclose ausgetauscht klappt gut und is viel kürzer.
    ABER, das große aber 4-Client.exe bleibt immer noch gestartet das will er einfach net beenden.
    Es steht auch nichts anderes im script drinn als bei den anderen, also 1-Client.exe und so weiter.

    dann bleibt dir wohl nichst anderes übrig als den Source von 4-Client.au3 zu posten.
    Oder verwendest du darin vielleicht Msg-,InputBox oder ähnliches dann siehe

    mfg (Auto)Bert

  • kk aber nicht das ihr dann rummeckert

    die Start.exe

    Spoiler anzeigen
    [autoit]

    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_icon=data\icon.ico
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include <string.au3>
    #include<File.au3>
    #include<Array.au3>
    hotkeyset("{HOME}", "_bot_start")
    hotkeyset("{PAUSE}", "_Pause")
    hotkeyset("{END}", "_exit")

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Include <File.au3>
    #include <GUIConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    #Region ### START Koda GUI section ### Form=e:\dokumente und einstellungen\phfroherz\eigene dateien\koda forms\multi client bot.kxf
    $MCB = GUICreate("Multi Client Bot", 633, 473, 383, 219)
    $Client_1 = GUICtrlCreateRadio("1 Client", 176, 208, 113, 17)
    $Client_2 = GUICtrlCreateRadio("2 Clients", 176, 232, 113, 17)
    $Client_3 = GUICtrlCreateRadio("3 Clients", 176, 256, 113, 17)
    $Client_4 = GUICtrlCreateRadio("4 Clients", 176, 280, 113, 17)
    $Client_5 = GUICtrlCreateRadio("5 Clients", 176, 304, 113, 17)
    $Client_6 = GUICtrlCreateRadio("6 Clients", 176, 328, 113, 17)
    $Client_7 = GUICtrlCreateRadio("7 Clients", 360, 208, 113, 17)
    $Client_8 = GUICtrlCreateRadio("8 Clients", 360, 232, 113, 17)
    $Client_9 = GUICtrlCreateRadio("9 Clients", 360, 256, 113, 17)
    $Client_10 = GUICtrlCreateRadio("10 Clients", 360, 280, 113, 17)
    $Client_11 = GUICtrlCreateRadio("11 Clients", 360, 304, 113, 17)
    $Client_12 = GUICtrlCreateRadio("12 Clients", 360, 328, 113, 17)
    $partybox = GUICtrlCreateCheckbox("Party", 272, 376, 97, 17)
    $Label1 = GUICtrlCreateLabel("2. Client Anzahl auswählen", 224, 48, 177, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "Arial")
    $Label2 = GUICtrlCreateLabel("Wenn Party aktiv ist und 6 Clients ausgewählt sind dann folgen Client 2-6 dem ersten Client.", 19, 72, 586, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "Arial")
    $Label3 = GUICtrlCreateLabel("Wenn Party aktiv ist und 12 Clients ausgewählt sind dann folgen Client 2-6 dem ersten Client", 18, 96, 589, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "Arial")
    $Label4 = GUICtrlCreateLabel("und Client 8-12 folgen dem 7 Client", 199, 120, 226, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "Arial")
    $start = GUICtrlCreateButton("Start", 144, 432, 75, 25, 0)
    $pause = GUICtrlCreateButton("Pause", 264, 432, 75, 25, 0)
    $exit = GUICtrlCreateButton("Exit", 384, 432, 75, 25, 0)
    $Label5 = GUICtrlCreateLabel("1.Clients umbennen", 240, 24, 130, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "Arial")
    $Button1 = GUICtrlCreateButton("Clients umbennen", 248, 168, 107, 25, 0)
    $Label6 = GUICtrlCreateLabel("Hotkey: Home/Pos1", 128, 408, 101, 17)
    $Label7 = GUICtrlCreateLabel("Hotkey: Pause", 264, 408, 74, 17)
    $Label8 = GUICtrlCreateLabel("Hotkey: Ende", 384, 408, 69, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    Case $Button1
    Run ("data\clients_umbennen.exe")
    Case $start
    Call("_bot_start")
    Case $pause
    Call("_Pause")
    Case $exit
    Call("_exit")
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Func _bot_start()

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_1) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    ElseIf GUICtrlRead($Client_1) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_2) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    ElseIf GUICtrlRead($Client_2) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_3) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    ElseIf GUICtrlRead($Client_3) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_4) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    ElseIf GUICtrlRead($Client_4) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_5) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    ElseIf GUICtrlRead($Client_5) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_6) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    ElseIf GUICtrlRead($Client_6) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_7) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    Run ("data\7-Client-PT.exe")
    ElseIf GUICtrlRead($Client_7) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    Run ("data\7-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_8) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    Run ("data\7-Client-PT.exe")
    Run ("data\8-Client-PT.exe")
    ElseIf GUICtrlRead($Client_8) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    Run ("data\7-Client.exe")
    Run ("data\8-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_9) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    Run ("data\7-Client-PT.exe")
    Run ("data\8-Client-PT.exe")
    Run ("data\9-Client-PT.exe")
    ElseIf GUICtrlRead($Client_9) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    Run ("data\7-Client.exe")
    Run ("data\8-Client.exe")
    Run ("data\9-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_10) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    Run ("data\7-Client-PT.exe")
    Run ("data\8-Client-PT.exe")
    Run ("data\9-Client-PT.exe")
    Run ("data\10-Client-PT.exe")
    ElseIf GUICtrlRead($Client_10) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    Run ("data\7-Client.exe")
    Run ("data\8-Client.exe")
    Run ("data\9-Client.exe")
    Run ("data\10-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_11) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    Run ("data\7-Client-PT.exe")
    Run ("data\8-Client-PT.exe")
    Run ("data\9-Client-PT.exe")
    Run ("data\10-Client-PT.exe")
    Run ("data\11-Client-PT.exe")
    ElseIf GUICtrlRead($Client_11) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    Run ("data\7-Client.exe")
    Run ("data\8-Client.exe")
    Run ("data\9-Client.exe")
    Run ("data\10-Client.exe")
    Run ("data\11-Client.exe")
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If GUICtrlRead($partybox) = $gui_checked And GUICtrlRead($Client_12) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client-PT.exe")
    Run ("data\2-Client-PT.exe")
    Run ("data\3-Client-PT.exe")
    Run ("data\4-Client-PT.exe")
    Run ("data\5-Client-PT.exe")
    Run ("data\6-Client-PT.exe")
    Run ("data\7-Client-PT.exe")
    Run ("data\8-Client-PT.exe")
    Run ("data\9-Client-PT.exe")
    Run ("data\10-Client-PT.exe")
    Run ("data\11-Client-PT.exe")
    Run ("data\12-Client-PT.exe")
    ElseIf GUICtrlRead($Client_12) = $gui_checked Then
    SoundPlay(@ScriptDir & "\data\Start.wav",0)
    Run ("data\1-Client.exe")
    Run ("data\2-Client.exe")
    Run ("data\3-Client.exe")
    Run ("data\4-Client.exe")
    Run ("data\5-Client.exe")
    Run ("data\6-Client.exe")
    Run ("data\7-Client.exe")
    Run ("data\8-Client.exe")
    Run ("data\9-Client.exe")
    Run ("data\10-Client.exe")
    Run ("data\11-Client.exe")
    Run ("data\12-Client.exe")
    EndIf

    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _Pause()
    SoundPlay(@ScriptDir & "\data\paused.wav",0)
    $i = 0
    For $i = 1 To 12
    $PID = ProcessExists($i & "-Client-PT.exe")
    If $PID Then ProcessClose($PID, 1000)
    $PID = ProcessExists($i & "-Client.exe")
    If $PID Then ProcessClose($PID, 1000)
    Next

    [/autoit] [autoit][/autoit] [autoit]

    EndFunc

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Func _exit()
    SoundPlay(@ScriptDir & "\data\close.wav",0)
    Sleep(1500)
    $i = 0
    For $i = 1 To 12
    $PID = ProcessExists($i & "-Client-PT.exe")
    If $PID Then ProcessClose($PID, 1000)
    $PID = ProcessExists($i & "-Client.exe")
    If $PID Then ProcessClose($PID, 1000)
    Next
    Exit 1
    EndFunc

    [/autoit]

    ich weiss kann man vieles anders bzw. kürzer machen.

    4-Client.exe

    Spoiler anzeigen
    [autoit]

    Opt("TrayIconHide", 1)
    While 1
    ControlClick ( "Dekaron Client 4", "", "", "left","1",780, 553)
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",645, 638)
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",547, 562)
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlClick ( "Dekaron Client 4", "", "", "left","1",637, 451)
    ControlSend ( "Dekaron Client 4", "", "", "1")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", "2")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", "3")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", "4")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",780, 553)
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",645, 638)
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",547, 562)
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",637, 451)
    ControlSend ( "Dekaron Client 4", "", "", "5")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", "6")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", "7")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",780, 553)
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",645, 638)
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",547, 562)
    Sleep(100)
    ControlClick ( "Dekaron Client 4", "", "", "left","1",637, 451)
    ControlSend ( "Dekaron Client 4", "", "", "8")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", "9")
    Sleep(100)
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    ControlSend ( "Dekaron Client 4", "", "", " ")
    WEnd

    [/autoit]

    Zum vergleich 1-Client.exe

    Spoiler anzeigen
    [autoit]

    Opt("TrayIconHide", 1)
    While 1
    ControlClick ( "Dekaron Client 1", "", "", "left","1",780, 553)
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",645, 638)
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",547, 562)
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlClick ( "Dekaron Client 1", "", "", "left","1",637, 451)
    ControlSend ( "Dekaron Client 1", "", "", "1")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", "2")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", "3")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", "4")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",780, 553)
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",645, 638)
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",547, 562)
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",637, 451)
    ControlSend ( "Dekaron Client 1", "", "", "5")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", "6")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", "7")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",780, 553)
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",645, 638)
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",547, 562)
    Sleep(100)
    ControlClick ( "Dekaron Client 1", "", "", "left","1",637, 451)
    ControlSend ( "Dekaron Client 1", "", "", "8")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", "9")
    Sleep(100)
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    ControlSend ( "Dekaron Client 1", "", "", " ")
    WEnd

    [/autoit]
  • Hallo EmEx,

    kann keinen Unterscgied der beiden Skripts feststellen -> Lösung?
    Klinke mich aber aus, da ich keinerlei Erfarung in diesen Speilen habe

    mfg (Auto)Bert