so ich hab mal wieder ein kleines/großes Problem
und zwar hab ich ein paar verschiedene variablen Paare und die will ich jetzt zufällig ausgeben lassen
Spoiler anzeigen
HotKeySet ( "{ESC}", "End" )
[/autoit] [autoit][/autoit] [autoit]#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
Opt( "GUIOnEventMode", 1 )
$Fenster = GUICreate ( "Koordinaten", 200, 200 )
GUICtrlCreateLabel ( "Bitte geben sie 3 Zahlenpaare ein.", 25, 15 )
$Feld1 = GUICtrlCreateInput ( "", 65, 55, 30 )
$Feld2 = GUICtrlCreateInput ( "", 100, 55 )
$Feld3 = GUICtrlCreateInput ( "", 65, 80, 30 )
$Feld4 = GUICtrlCreateInput ( "", 100, 80 )
$Feld5 = GUICtrlCreateInput ( "", 65, 105, 30 )
$Feld6 = GUICtrlCreateInput ( "", 100, 105 )
$okbutton = GUICtrlCreateButton ( "OK", 70, 160, 60 )
GUICtrlSetOnEvent($okbutton, "OKButton")
GUISetState ( @SW_Show )
[/autoit] [autoit][/autoit] [autoit]While 1
Sleep(1000)
WEnd
Func OKButton()
$1 = GUICtrlRead ( $Feld1 )
$2 = GUICtrlRead ( $Feld2 )
$3 = GUICtrlRead ( $Feld3 )
$4 = GUICtrlRead ( $Feld4 )
$5 = GUICtrlRead ( $Feld5 )
$6 = GUICtrlRead ( $Feld6 )
GUIDelete ( $Fenster )
MsgBox ( 1, "" , "Eines ihrer Zahlenpaare ist: " )
EndFunc
Func End()
Exit
EndFunc
variablen Paare währen hier zum Beispiel $1 und $2 bzw $5 und $6