oder so mit dropdown ...
[autoit]
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$string = "|PC01|PC02|PC03|PC04|PC05"
[/autoit][autoit][/autoit][autoit]$Form1 = GUICreate("Beispiel", 449, 74, 192, 124)
$ComboBox1 = GUICtrlCreateCombo("", 8, 8, 433, 21)
GUICtrlSetData($ComboBox1, $string)
$Button1 = GUICtrlCreateButton("starte Fernwartung", 8, 40, 433, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute(GUICtrlRead($ComboBox1) & ":Port")
EndSwitch
WEnd
Natürlich kann man die PC's dann aus einer Textdatei, Excel, Datenbank oder einer anderen Datenquelle auslesen.
gruß gmmg ![]()