n'abend liebe Com,
Ich bin relativ neu im Thema AutoIt.
Da ich manchmal ziemlich faul bin wollte ich mir ein Script machen, welches in einem "Auswahl-Fenster" Buttons anzeigt, die auf eine bestimmte Website führen.
Dazu habe ich mir, da ich mich nicht gut auskenne, teilweise Script Schnipsel aus dem I-Net geholt.
Eigentlich funktioniert auch alles, nur wenn ich durch einen Button ein neues "Auswahl-Fenster" öffnen will passiert nichts.
Nun meine Frage:
Wie bekomme ich es hin, dass durch einen Klick auf den Button (Andere/$other) ein neues Fenster mit anderen "Link-Buttons" erscheint?
Mein Script:
C
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###
;Haupt-Auswahlfenster
$auswahl = GUICreate("Auswahl", 201, 301, 406, 253)
$google = GUICtrlCreateButton("Google", 12, 12, 177, 41, $WS_GROUP)
$facebook = GUICtrlCreateButton("Facebook", 12, 70, 177, 41, $WS_GROUP)
$autoit = GUICtrlCreateButton("AutoIt.de", 12, 123, 177, 41, $WS_GROUP)
$bbb = GUICtrlCreateButton("bbb", 12, 179, 177, 41, $WS_GROUP)
$other = GUICtrlCreateButton("Andere", 56, 243, 89, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
;Neben-Auswahlfenster
$uuu = GUICreate("uuu", 201, 201, 621, 122)
$xxx = GUICtrlCreateButton("xxx", 12, 8, 177, 41, $WS_GROUP)
$ccc = GUICtrlCreateButton("ccc", 12, 67, 177, 41, $WS_GROUP)
$mmm = GUICtrlCreateButton("mmm", 12, 127, 177, 41, $WS_GROUP)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
ExitLoop
Case $google
ShellExecute("www.google.de")
Case $facebook
ShellExecute("www.facebook.de")
Case $autoit
ShellExecute("www.autoit.de")
Case $bbb
ShellExecute("www.bbb.de")
Case $other
GUISetState(@SW_HIDE,$xxx)
Case $xxx
ShellExecute("www.xxx.com")
Case $ccc
ShellExecute("www.ccc.com")
Case $mmm
ShellExecute("www.mmm.com")
EndSwitch
WEnd
Alles anzeigen