hallo leute,
ich will hier ein kleines Programm erstellen das eine Nacirhcht sende wenn ich auf z.B. F1 drücke
Ich habe hier schonmal angefangen aber iwo is ein fehler drin...
Kann mir jemand bitte helfen..
[autoit]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Faullänzer Version 1.0.0.0 Beta", 545, 165, 192, 124)
$Button1 = GUICtrlCreateButton("Mein Text Mein Text", 8, 8, 513, 33)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Button2 = GUICtrlCreateButton("Mein Text Mein Text Mein Text", 8, 48, 513, 33)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Button3 = GUICtrlCreateButton("Mein Text Mein Text Mein Text Text Text", 8, 88, 513, 33)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
hotkeyset("sendmsg","^{f1}")
while 1
sleep(10000)
wend
func sendmsg()
sleep(100)
send("Nachricht wurde gesendet{enter}")
endfunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Send("Mein Text")
EndSwitch
WEnd