bei drag and drop keine GUI ?

  • Hallo gemeinde ich habe folgendes Problem

    Ich möchte per drag and drop einen filenamen in einen input kriegen und habe dafür die hilfe benutzt wenn ich allerdings dropenable benutze baut sich keine gui auf und es wird gleich meine funktion ausgeführt

    könnt ihr mir sagen wo das problem liegt ?


    hier das script

    Spoiler anzeigen
    [autoit]

    DirCreate("C:\SIGN")
    FileInstall("C:\Users\BlackShark\Desktop\signsis.exe", "C:\SIGN\signsis.exe")
    FileInstall("C:\Users\BlackShark\Desktop\opda.cn_Satio_BlackSharks U1i_356810038042240.key", "C:\SIGN\opda.cn_Satio_BlackSharks U1i_356810038042240.key")
    FileInstall("C:\Users\BlackShark\Desktop\opda.cn_Satio_BlackSharks U1i_356810038042240.cer", "C:\SIGN\opda.cn_Satio_BlackSharks U1i_356810038042240.cer")

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

    #include <GUIConstants.au3>
    #include <WindowsConstants.au3>
    #include <GUIConstantsEx.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 136, 95, 308, 175,0x00000018)
    $Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
    $Button1 = GUICtrlCreateButton("Button1", 32, 32, 75, 25, 0)
    GUISetState($Input1,$GUI_DROPACCEPTED)
    GUISetState()
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    _func ()
    EndSwitch
    WEnd

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

    Func _func ()

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

    Run("SignTool.exe")
    Sleep(2000)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{enter}")
    Sleep(200)
    Send("C:\SIGN\signsis.exe")
    Sleep(200)
    Send("{enter}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{enter}")
    Sleep(200)
    Send("C:\SIGN\opda.cn_Satio_BlackSharks U1i_356810038042240.cer")
    Sleep(200)
    Send("{enter}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{enter}")
    Sleep(200)
    Send("C:\SIGN\opda.cn_Satio_BlackSharks U1i_356810038042240.key")
    Sleep(200)
    Send("{enter}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{TAB}")
    Sleep(200)
    Send("{enter}")
    EndFunc

    [/autoit]