€dit: Bin wohl zu doof ... :facepalm: Hab mich nur vertippt.... :S Sry
FrEakY.:mofo:
FrEakY.:mofo:
Daran liegts :Quote:
Hey, hab mal wieder kleine Komplikationen mit meinem Script...
Wieso will das das GUI nich anzeigen ?!PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("DesktopTool", 372, 130, 192, 124)
$Input1 = GUICtrlCreateInput("Hier den Link eingeben", 8, 8, 353, 21)
$Button1 = GUICtrlCreateButton("Start", 8, 72, 105, 49, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Desktop", 128, 72, 105, 49, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Exit", 248, 72, 113, 49, $WS_GROUP)
$Pic1 = GUICtrlCreatePic("C:\Users\TheAdmin\Desktop\Crack\AS-RENDERS_405.jpg", 0, 0, 372, 130, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(-1,$GUI_disable)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Button1
_Func1()
Case $Button2
_Func2()
Case $Button3
_Func3()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _Func1()
ShellExecute(GUICtrlRead($Input1))
EndFunc
Func _Func2()
Send("#{d}")
EndFunc
Func _Func3()
MsgBox(0,"Bye Bye!", "Credits to FrEakY.")
Exit
EndFunc
Danke schonmal
FrEakY.:mofo:
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("DesktopTool", 372, 130, 192, 124) $Input1 = GUICtrlCreateInput("Hier den Link eingeben", 8, 8, 353, 21) $Button1 = GUICtrlCreateButton("Start", 8, 72, 105, 49, $WS_GROUP) $Button2 = GUICtrlCreateButton("Desktop", 128, 72, 105, 49, $WS_GROUP) $Button3 = GUICtrlCreateButton("Exit", 248, 72, 113, 49, $WS_GROUP) $Pic1 = GUICtrlCreatePic("C:\Users\TheAdmin\Desktop\Crack\AS-RENDERS_405.jpg", 0, 0, 372, 130, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) [COLOR="Red"]GUISetState(-1,$GUI_disable)[/COLOR] GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Button1 _Func1() Case $Button2 _Func2() Case $Button3 _Func3() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func _Func1() ShellExecute(GUICtrlRead($Input1)) EndFunc Func _Func2() Send("#{d}") EndFunc Func _Func3() MsgBox(0,"Bye Bye!", "Credits to FrEakY.") Exit EndFunc
GuiSetState(-1, $GUI_ENABLED) ;weiß nicht ob Enabled richtig geschrieben ist