wenn du es mit KODA machst, kommt das alles.
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 226, 182, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 32, 40, 145, 81, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
dann addest du (wie du es schon gemacht hast)
PHP Code:
Case $button1
Run("C:\Programme\Mozilla Firefox\firefox.exe")
WinWaitActive("Mozilla Firefox")
das dazu, dann hast du:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 226, 182, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 32, 40, 145, 81, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $button1
Run("C:\Programme\Mozilla Firefox\firefox.exe")
WinWaitActive("Mozilla Firefox")
EndSwitch
WEnd
MfG