Hallo,
ich habe ein großes problem(bin nur ein armseliger anfänger) denn ich weiß nit weiter
ich habe mir den unteren skript von einem mitglied bekommen nur weiß ich nicht wie ich das jetzt kombienieren soll mit dem fester oben ,sodass der skript unendlich aufgeht
bitte um schnelle antwort vielen dank
wenn es geht bitte alles in einem skriptdanke
Spoiler anzeigen
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 350, 233, 193, 125)
$Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
; das untere ist die unedliche funktion und das obere ist das fenster
;dashier stand dabei:
; MsgBox was Skript nicht anhält
;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)
while 1
$msg=GuiGetMsg()
If $msg=$button1 Then tcc_msgbox($icon,$title,$text, $x=-1, $y=-1)()
WEnd
Func tcc_msgbox($icon,$title,$text, $x=-1, $y=-1)
If $icon=0 Then
$msg = GUICreate($title&" - TCC", 16+StringLen($text)*7, 100, $x, $y,0x80000)
Else
$msg = GUICreate($title&" - TCC", 80+StringLen($text)*7, 100, $x, $y,0x80000)
GUICtrlCreateIcon(@SystemDir&"\\user32.dll", 0, 8, 8, 32, 32)
EndIf
If $icon=16 Then
GUICtrlSetImage(-1,@SystemDir&"\\user32.dll",-4)
ElseIf $icon=32 Then
GUICtrlSetImage(-1,@SystemDir&"\\user32.dll",-3)
ElseIf $icon=48 Then
GUICtrlSetImage(-1,@SystemDir&"\\user32.dll",-2)
ElseIf $icon=64 Then
GUICtrlSetImage(-1,@SystemDir&"\\user32.dll",-5)
EndIf
If $icon=0 Then
GUICtrlCreateLabel($text,8, 16,StringLen($text)*7, 17,1)
$btn_ok = GUICtrlCreateButton("OK", (16+StringLen($text)*7)/2-37, 45, 75, 22, 0)
Else
GUICtrlCreateLabel($text, 64, 16,StringLen($text)*7, 17)
$btn_ok = GUICtrlCreateButton("OK", (80+StringLen($text)*7)/2-37, 45, 75, 22, 0)
EndIf
GUISetState(@SW_SHOW)
EndFunc