Hey User,
ich habe ein kleines Script geschrieben:
So mein Problem jetzt:
Das Script pausiert und stoppt nicht.
Wodran kann das liegen?
ich habe ein kleines Script geschrieben:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiconstantsEx.au3>
#include <Misc.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Alex\GUI\Form1.kxf
$Form1 = GUICreate("Made by 18alex03", 228, 81, 208, 125)
GUISetBkColor(0x800000)
$Label1 = GUICtrlCreateLabel("Tool", 15, 0, 197, 27)
GUICtrlSetFont(-1, 12, 800, 4, "Comic Sans MS")
GUICtrlSetColor(-1, 0x000000)
$Button1 = GUICtrlCreateButton("Start", 8, 40, 65, 33)
GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFF0000)
$Button2 = GUICtrlCreateButton("Pause", 80, 40, 65, 33)
GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFF0000)
$Button3 = GUICtrlCreateButton("Beenden", 152, 40, 65, 33)
GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
FunC Start()
while 1
Hier führt er ca 20 Mausklicks
WEnd
Exit
Endfunc
$Paused = 0
Func Pause()
$iPaused = BitXOR($iPaused, 1)
While $iPaused And Sleep(100)
WEnd
EndFunc
GUISetOnEvent($GUI_EVENT_CLOSE, "Beenden")
Func Beenden()
Exit
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Call("Start")
Exit
Case $Button2
Call("Pause")
Exit
Case $Button3
Call("Beenden")
Exit
EndSwitch
WEnd
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiconstantsEx.au3>
#include <Misc.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Alex\GUI\Form1.kxf
$Form1 = GUICreate("Made by 18alex03", 228, 81, 208, 125)
GUISetBkColor(0x800000)
$Label1 = GUICtrlCreateLabel("Tool", 15, 0, 197, 27)
GUICtrlSetFont(-1, 12, 800, 4, "Comic Sans MS")
GUICtrlSetColor(-1, 0x000000)
$Button1 = GUICtrlCreateButton("Start", 8, 40, 65, 33)
GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFF0000)
$Button2 = GUICtrlCreateButton("Pause", 80, 40, 65, 33)
GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFF0000)
$Button3 = GUICtrlCreateButton("Beenden", 152, 40, 65, 33)
GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
FunC Start()
while 1
Hier führt er ca 20 Mausklicks
WEnd
Exit
Endfunc
$Paused = 0
Func Pause()
$iPaused = BitXOR($iPaused, 1)
While $iPaused And Sleep(100)
WEnd
EndFunc
GUISetOnEvent($GUI_EVENT_CLOSE, "Beenden")
Func Beenden()
Exit
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Call("Start")
Exit
Case $Button2
Call("Pause")
Exit
Case $Button3
Call("Beenden")
Exit
EndSwitch
WEnd
So mein Problem jetzt:
Das Script pausiert und stoppt nicht.
Wodran kann das liegen?