Gui Problem

11/02/2010 19:49 Flasher2#1
Hey hab grad nen Mt2 Starter gemacht und das Hintergrundbild mit:
Code:
,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$GUI_DISABLE)
und die buttons mit
Code:
[COLOR=#000000][COLOR=#007700], [/COLOR][COLOR=#0000BB]BitOr[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$GUI_ONTOP[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$WS_GROUP[/COLOR][COLOR=#007700])[/COLOR][/COLOR]
ausgestattet
aber es kommt fehler das die variablen nicht erklärt sind kann pls einer schnell helfen
11/02/2010 20:41 Löler³#2
bitte ganze script zeigen so kann man nicht viel machen ;)
11/02/2010 20:42 lolkop#3
na entweder du nutzt direkt die hex werte, oder du definierst die variablen, oder du musst die ganzen gui includes ins script packen
11/02/2010 20:48 PenGuin :O#4
#include <GUIConstantsEx.au3>
11/02/2010 22:10 Flasher2#5
Code:
#Include <File.au3>
#Include <GuiConstants.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WinAPI.au3>
#include <GUIButton.au3>


Global $ScriptDir = @ScriptDir
Global $IEadd = FileReadLine ($ScriptDir & "\URL.ini",2)
Global $Register = FileReadLine ($ScriptDir & "\URl.ini",4)


#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("~Metin2~", 485, 513, 324, 147)
GUISetIcon("C:\Fear3_1.ico")
$Pic1 = GUICtrlCreatePic("bg.jpg", 0, 0, 484, 492, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$GUI_DISABLE))
$Button1 = GUICtrlCreateButton("End", 368, 456, 97, 25, 0, BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0xC8C8C8)
$Button2 = GUICtrlCreateButton("Metin2 starten", 8, 24, 107, 25, 0, BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 1)
$oIE = _IECreateEmbedded()
$oIE_ctrl = GUICtrlCreateObj($oIE,  192, 8, 280, 264,BitOr($GUI_ONTOP,$WS_GROUP))
GUISetState(@SW_SHOW)
_IENavigate($oIE, $IEadd) 
$Button3 = GUICtrlCreateButton("Einstellungen", 8, 56, 105, 25, 0,BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 1)
$Button4 = GUICtrlCreateButton("Registrieren", 8, 88, 105, 25, 0, BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 1)
$MenuItem1 = GUICtrlCreateMenu("?")
$MenuItem2 = GUICtrlCreateMenuItem("Credits", $MenuItem1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
11/02/2010 22:26 PenGuin :O#6
Und deine Frage?

Wenns ne Frage nach den Includes war, dann ists so richtig:

Code:
#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>


Global $ScriptDir = @ScriptDir
Global $IEadd = FileReadLine ($ScriptDir & "\URL.ini",2)
Global $Register = FileReadLine ($ScriptDir & "\URl.ini",4)


#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("~Metin2~", 485, 513, 324, 147)
GUISetIcon("C:\Fear3_1.ico")
$Pic1 = GUICtrlCreatePic("bg.jpg", 0, 0, 484, 492, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$GUI_DISABLE))
$Button1 = GUICtrlCreateButton("End", 368, 456, 97, 25, 0, BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0xC8C8C8)
$Button2 = GUICtrlCreateButton("Metin2 starten", 8, 24, 107, 25, 0, BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 1)
$oIE = _IECreateEmbedded()
$oIE_ctrl = GUICtrlCreateObj($oIE,  192, 8, 280, 264,BitOr($GUI_ONTOP,$WS_GROUP))
GUISetState(@SW_SHOW)
_IENavigate($oIE, $IEadd)
$Button3 = GUICtrlCreateButton("Einstellungen", 8, 56, 105, 25, 0,BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 1)
$Button4 = GUICtrlCreateButton("Registrieren", 8, 88, 105, 25, 0, BitOr($GUI_ONTOP,$WS_GROUP))
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 1)
$MenuItem1 = GUICtrlCreateMenu("?")
$MenuItem2 = GUICtrlCreateMenuItem("Credits", $MenuItem1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
11/03/2010 21:20 Flasher2#7
Nunja es ist nicht wegen der INcludes :facepalm:
Ich kann die Buttons und und den IE net benutzen wenn des
weg ist also
($GUI_ONTOP,$WS_GROUP)
und
($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$GUI_DISABL E)


aber mein Prob ist immer kommt fehler die Variable wurde nicht erklärt ._.
Obwohl die Includes alle drin sind etc.
11/04/2010 13:54 PenGuin :O#8
Mal meinen Post gelesen?
Nimm das Script von mir, da kommt das mit den Variablen Errormeldungen nicht.