Was ist an dieser Source falsch?
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet ("{F1}","F1")
HotKeySet ("{F2}","F2")
HotKeySet ("{F3}","F3")
HotKeySet ("{F4}","F4")
HotKeySet ("{F5}","F5")
HotKeySet ("{F6}","F6")
HotKeySet ("{F7}","F7")
HotKeySet ("{F8}","F8")
HotKeySet ("{F9}","F9")
HotKeySet ("{F10}","F10")
HotKeySet ("{F11}","F11")
HotKeySet ("{F12}","F12")
Func F1()
Send ($F1)
EndFunc
Func F2()
Send ($F2)
EndFunc
Func F3()
Send ($F3)
EndFunc
Func F4()
Send ($F4)
EndFunc
Func F5()
Send ($F5)
EndFunc
Func F6()
Send ($F6)
EndFunc
Func F7()
Send ($F7)
EndFunc
Func F8()
Send ($F8)
EndFunc
Func F9()
Send ($F9)
EndFunc
Func F10()
Send ($F10)
EndFunc
Func F11()
Send ($F11)
EndFunc
Func F12()
Send ($F12)
EndFunc
#Region ### START Koda GUI section ### Form=
$MacroTool = GUICreate("MacroTool", 403, 517, 318, 227)
GUISetFont(8, 400, 0, "Comic Sans MS")
GUISetBkColor(0xFF0000)
$Label1 = GUICtrlCreateLabel("MacroTool", 24, 8, 358, 71)
GUICtrlSetFont(-1, 35, 400, 0, "Comic Sans MS")
$F1 = GUICtrlCreateInput("Text für F1", 16, 96, 377, 23)
$F2 = GUICtrlCreateInput("Text für F2", 16, 127, 377, 23)
$F3 = GUICtrlCreateInput("Text für F3", 16, 158, 377, 23)
$F4 = GUICtrlCreateInput("Text für F4", 16, 189, 377, 23)
$F5 = GUICtrlCreateInput("Text für F5", 16, 220, 377, 23)
$F6 = GUICtrlCreateInput("Text für F6", 16, 251, 377, 23)
$F7 = GUICtrlCreateInput("Text für F7", 16, 282, 377, 23)
$F8 = GUICtrlCreateInput("Text für F8", 16, 313, 377, 23)
$F9 = GUICtrlCreateInput("Text für F9", 16, 343, 377, 23)
$F10 = GUICtrlCreateInput("Text für F10", 16, 375, 377, 23)
$F11 = GUICtrlCreateInput("Text für F11", 16, 406, 377, 23)
$F12 = GUICtrlCreateInput("Text für F12", 16, 437, 377, 23)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd