Hallo,
ich habe nun mein Script eigentlich fertig nur er ist noch in 2 Hälften aufgeteilt ... und ich bekomme es mit dem Case Befehl einfach nicht hin.
GUI Skript :
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\Peter\pictures\form fuer tool.kxf
$Form1_1 = GUICreate("Form1", 551, 441, 218, 17)
$Event1 = GUICtrlCreateButton("v1", 8, 128, 137, 25, $WS_GROUP)
$Event2 = GUICtrlCreateButton("v4", 8, 304, 137, 25, $WS_GROUP)
$Event3 = GUICtrlCreateButton("v3", 8, 248, 137, 25, $WS_GROUP)
$Event4 = GUICtrlCreateButton("v5", 8, 368, 137, 25, $WS_GROUP)
$Event = GUICtrlCreateButton("v2", 8, 184, 137, 25, $WS_GROUP)
$Pic1 = GUICtrlCreatePic("C:\Users\Peter\Pictures\fuer tool Aussehen5.jpg", 0, 0, 550, 440, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Skript, der auf den Button v2 vom Skript oben zugewiesen werden soll :
Spoiler anzeigen
Hotkeyset("{F7}","_Start")
Hotkeyset("{F8}","_Exit")
sleep (10000)
send ("{ENTER}")
sleep (300)
send ("Guten Tag")
sleep (300)
send ("{ENTER}")
Func _Start()
EndFunc
Func _Exit()
EndFunc
Kann mir da bitte jemand einmal helfen?
Danke im voraus.
Mit freundlichen Grüßen,
White