also wenn ich F8 drücke soll in einem Extra GuiCtrlData des steht.
hier der code
[autoit]
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F10}", "_CoordsGet")
#include <ButtonConstants.au3>
#include <Misc.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Func Terminate()
Exit 0
EndFunc
$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)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
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))
Case $Input2 ; HIER MÖCHTE ICH ES HABEN <.........
GUICtrlSetData( $Input1, MouseGetPos ,)
EndSwitch
WEnd