|
You last visited: Today at 14:19
Advertisement
Help?!
Discussion on Help?! within the AutoIt forum part of the Coders Den category.
04/23/2010, 23:16
|
#1
|
elite*gold: 60
Join Date: Jun 2009
Posts: 717
Received Thanks: 431
|
Help?!
€dit: Bin wohl zu doof ... Hab mich nur vertippt.... :S Sry
FrEakY.
|
|
|
04/23/2010, 23:28
|
#2
|
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,876
|
Quote:
Originally Posted by FrEakY.
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", 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
Wieso will das das GUI nich anzeigen ?!
Danke schonmal
FrEakY.
|
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
|
#3
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
PHP Code:
GuiSetState(-1, $GUI_ENABLED) ;weiß nicht ob Enabled richtig geschrieben ist
|
|
|
04/23/2010, 23:45
|
#4
|
elite*gold: 4
Join Date: Aug 2008
Posts: 6,786
Received Thanks: 4,992
|
#closed auf Request vom Threadersteller
|
|
|
All times are GMT +1. The time now is 14:19.
|
|