Heyy,
Also zum Prob.. Ich will das ich 2 GUI´s gleichzeitig laufen lassen kann.. das bekomm ich noch hin ABER wenn ich eine GUI beende beenden sich beide ich will aber das das welches ich nicht beende (wow das gibt sogar Sinn :D) offen bleibt... Wie kann ich verhindern das beide sich schließen?
Hier mal der Code:
Also zum Prob.. Ich will das ich 2 GUI´s gleichzeitig laufen lassen kann.. das bekomm ich noch hin ABER wenn ich eine GUI beende beenden sich beide ich will aber das das welches ich nicht beende (wow das gibt sogar Sinn :D) offen bleibt... Wie kann ich verhindern das beide sich schließen?
Hier mal der Code:
PHP Code:
HotKeySet ("{PGUP}", "_Start")
HotKeySet ("{PGDN}", "_Exit") ;==> HotKeySet
#include <GUIConstants.au3> ;==> Include
#Region ### START Koda GUI section ### Form=C:\Users\philipp\Desktop\Hack\Alle meine Scripte\KODA\Formen\Anti-Afk_Tool.kxf
$Form1 = GUICreate("Anti-Afk_Tool", 213, 192, 202, 140)
$Label1 = GUICtrlCreateLabel("Start ==> Bild Oben", 16, 128, 99, 17)
$Label2 = GUICtrlCreateLabel("Exit ==> Bild Unten", 16, 160, 94, 17)
$Button1 = GUICtrlCreateButton("Credits", 136, 144, 59, 17, 0)
$Pic1 = GUICtrlCreatePic("C:\Users\philipp\Pictures\Wolfteam.jpg", 8, 8, 196, 100)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ### ;==> GUI 1
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=c:\program files\koda\forms\credits.kxf
$Form1_1 = GUICreate("Credits", 297, 156, 193, 125)
$Label1 = GUICtrlCreateLabel("Createt by IZEROI and help by E*Pvpers", 8, 24, 196, 17)
$Label2 = GUICtrlCreateLabel("Ingame_name: KTP106", 112, 64, 119, 17)
$Label3 = GUICtrlCreateLabel("Createt for Wolfteam", 184, 112, 101, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ### ;==> GUI 2
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
EndSwitch
WEnd
Func _Start()
While 1
Send ("{W}")
Sleep (20000)
Send ("{S}")
Sleep (20000)
WEnd
EndFunc ;==> Starten
Func _Exit()
Exit
EndFunc ;==> Beenden