Möchte dass Mauskordinaten in Guictrldata eingefügt wird wenn man f8 drückt

  • also wenn ich F8 drücke soll in einem Extra GuiCtrlData des steht.

    hier der code

    [autoit]


    HotKeySet("{ESC}", "Terminate")
    HotKeySet("{F10}", "_CoordsGet")

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

    #include <ButtonConstants.au3>
    #include <Misc.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    Func Terminate()
    Exit 0
    EndFunc

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

    $i = 0
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Passwort Creator", 320, 300, 154, 124)
    $Label1 = GUICtrlCreateLabel("Ergebnis:", 20, 16, 48, 17)
    $1 = GUICtrlCreateButton("3 Stelliges Kennwort", 32, 40, 115, 25, 0)
    $2 = GUICtrlCreateButton("4 Stelliges Kennwort", 160, 40, 115, 25, 0)
    $3 = GUICtrlCreateButton("5 Stelliges Kennwort", 32, 80, 115, 25, 0)
    $4 = GUICtrlCreateButton("6 Stelliges Kennwort", 160, 80, 115, 25, 0)
    $5 = GUICtrlCreateButton("Zufallszahl", 32, 120, 115, 25, 0)
    $6 = GUICtrlCreateButton("Zufallsdatum", 160, 120, 115, 25, 0)
    $7 = GUICtrlCreateButton("Langweilig!!", 30, 160, 250, 50, 0)
    $Input1 = GUICtrlCreateInput("All Credits to firstclass96 and my Helpers!", 75, 14, 200, 20)
    $Label2 = GUICtrlCreateLabel("Mouse Koordinaten:", 10, 230, 100, 0)
    $Input2 = GUICtrlCreateInput("Drück dafür F8", 120, 230, 100, 0)

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

    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg

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

    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $1
    GUICtrlSetData( $Input1 , Random(100,999,1))
    Case $2
    GUICtrlSetData( $Input1 , Random(1000,9999,1))
    Case $3
    GUICtrlSetData( $Input1 , Random(10000,99999,1))
    Case $4
    GUICtrlSetData( $Input1 , Random(100000,999999,1))
    Case $5
    GUICtrlSetData( $Input1 , Random(0,999999,1))
    Case $6
    GUICtrlSetData( $Input1 , Random (1,30,1)&"."& Random(0,0,1)&""& Random (1,9,1)&"."& Random (2010,2011,1))

    Case $Input2 ; HIER MÖCHTE ICH ES HABEN <.........
    GUICtrlSetData( $Input1, MouseGetPos ,)

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




    EndSwitch
    WEnd

    [/autoit]
  • ^^

    nein das is nich lustig.
    wieso sollen wir alles 10 mal machen? totaler müll !

    also hier deine lösung und dannach nich nochmal so n thread bitte:

    Spoiler anzeigen
    [autoit]

    HotKeySet("{ESC}", "Terminate")
    HotKeySet("{F8}", "SetPos")

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

    #include <ButtonConstants.au3>
    #include <Misc.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

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

    $i = 0
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Passwort Creator", 320, 300, 154, 124)
    $Label1 = GUICtrlCreateLabel("Ergebnis:", 20, 16, 48, 17)
    $1 = GUICtrlCreateButton("3 Stelliges Kennwort", 32, 40, 115, 25, 0)
    $2 = GUICtrlCreateButton("4 Stelliges Kennwort", 160, 40, 115, 25, 0)
    $3 = GUICtrlCreateButton("5 Stelliges Kennwort", 32, 80, 115, 25, 0)
    $4 = GUICtrlCreateButton("6 Stelliges Kennwort", 160, 80, 115, 25, 0)
    $5 = GUICtrlCreateButton("Zufallszahl", 32, 120, 115, 25, 0)
    $6 = GUICtrlCreateButton("Zufallsdatum", 160, 120, 115, 25, 0)
    $7 = GUICtrlCreateButton("Langweilig!!", 30, 160, 250, 50, 0)
    $Input1 = GUICtrlCreateInput("All Credits to firstclass96 and my Helpers!", 75, 14, 200, 20)
    $Label2 = GUICtrlCreateLabel("Mouse Koordinaten:", 10, 230, 100, 0)
    $Input2 = GUICtrlCreateInput("Drück dafür F8", 120, 230, 100, 0)

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

    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
    Case $1
    GUICtrlSetData($Input1, Random(100, 999, 1))
    Case $2
    GUICtrlSetData($Input1, Random(1000, 9999, 1))
    Case $3
    GUICtrlSetData($Input1, Random(10000, 99999, 1))
    Case $4
    GUICtrlSetData($Input1, Random(100000, 999999, 1))
    Case $5
    GUICtrlSetData($Input1, Random(0, 999999, 1))
    Case $6
    GUICtrlSetData($Input1, Random(1, 30, 1) & "." & Random(0, 0, 1) & "" & Random(1, 9, 1) & "." & Random(2010, 2011, 1))
    EndSwitch
    WEnd

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

    Func Terminate()
    Exit 0
    EndFunc ;==>Terminate

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

    Func SetPos()
    GUICtrlSetData($input1, "x-pos: " & Mousegetpos(0) & " y-pos: " &Mousegetpos(1))
    EndFunc ;==>Terminate

    [/autoit]
  • soory geht nicht

    :cursing:

    geht nicht. super. woher sollen wir denn wissen wie es gehn soll?
    es geht auf jeden fall. nur nicht so wie du willst also wärst du bitte so freundlich und sagst uns genau wie dus willst?