Help?!

04/23/2010 23:16 FrEakY.#1
€dit: Bin wohl zu doof ... :facepalm: Hab mich nur vertippt.... :S Sry
FrEakY.:mofo:
04/23/2010 23:28 Shadow992#2
Quote:
Originally Posted by FrEakY. View Post
Hey, hab mal wieder kleine Komplikationen mit meinem Script...

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"372130192124)
$Input1 GUICtrlCreateInput("Hier den Link eingeben"8835321)
$Button1 GUICtrlCreateButton("Start"87210549$WS_GROUP)
$Button2 GUICtrlCreateButton("Desktop"1287210549$WS_GROUP)
$Button3 GUICtrlCreateButton("Exit"2487211349$WS_GROUP)
$Pic1 GUICtrlCreatePic("C:\Users\TheAdmin\Desktop\Crack\AS-RENDERS_405.jpg"00372130BitOR($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 
Wieso will das das GUI nich anzeigen ?!

Danke schonmal
FrEakY.:mofo:
Daran liegts :
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))
[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
Am besten du kommentierst den befehl mal aus , dann sollte es gehen .
Wenn du die GUI Disable machen willst , musst du WinSetState ($Form1, "", $GUI_DISABLE ) nehmen
04/23/2010 23:31 HardCore.1337#3
PHP Code:
GuiSetState(-1$GUI_ENABLED) ;weiß nicht ob Enabled richtig geschrieben ist 
04/23/2010 23:45 Cholik#4
#closed auf Request vom Threadersteller