Hey Guys,
Could use some help ...
C:\Documents and Settings\Administrator\Desktop\test2.au3(11,67) : ERROR: syntax error
Local $DID, $FID, $GpAID, $GpBID, $GpCID, $PCLID, $ECLID, $HOWID $msg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Administrator\Desktop\test2.au3 - 1 error(s), 0 warning(s)
#include <GUIConstantsEx.au3>
#include <DateTimeConstants.au3>
Opt('MustDeclareVars', 0)
_Main()
Func _Main()
Local $DID, $FID, $GpAID, $GpBID, $GpCID, $PCLID, $ECLID, $HOWID $msg
GUICreate("Swiss Knife", 400, 400)
GUICtrlCreateLabel("....... MSG MSG .....", 10, 10)
$DID = GUICtrlCreateButton("Msg 1", 16, 64, 153, 31)
$FID = GUICtrlCreateButton("Msg 2", 16, 104, 155, 33)
$GpAID = GUICtrlCreateButton("Msg 3", 14, 143, 157, 33)
$GrpahsBID = GUICtrlCreateButton("Msg 4", 17, 186, 156, 33)
$GrpahsCID = GUICtrlCreateButton("Msg 5", 20, 225, 156, 33)
$PCLID = GUICtrlCreateButton("Msg 6", 18, 264, 372, 33)
$ECLID = GUICtrlCreateButton("Msg 7", 23, 300, 372, 33)
$HOWID = GUICtrlCreateButton("Msg 8", 27, 335, 372, 33)
$MonthCal1 = GUICtrlCreateMonthCal("2009/11/30", 208, 56, 184, 177)
GUISetState() ; display the GUI
Do
$msg = GUIGetMsg()
Select
Case $msg = $DID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test1.bat", "", @ScriptDir, "")
Case $msg = $FID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test2.bat", "", @ScriptDir, "")
Case $msg = $GpAID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test3.bat", "", @ScriptDir, "")
Case $msg = $GrpahsBID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test4.bat", "", @ScriptDir, "")
Case $msg = $GpCID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test5.bat", "", @ScriptDir, "")
Case $msg = $PCLID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test6.bat", "", @ScriptDir, "")
Case $msg = $ECLID
ShellExecute("C:\Documents and Settings\All Users\Desktop\test7.bat", "", @ScriptDir, "")
Case $msg = $HOWID
ShellExecute ("http://www.google.com.au")
EndSelect
Until $msg = $GUI_EVENT_CLOSE Or $msg = $ExitID
EndFunc ;==>_Main