You last visited: Today at 20:48
Advertisement
Gui Problem
Discussion on Gui Problem within the AutoIt forum part of the Coders Den category.
11/02/2010, 19:49
#1
elite*gold: 0
Join Date: Feb 2010
Posts: 714
Received Thanks: 842
Gui Problem
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
#2
elite*gold: 0
Join Date: Oct 2010
Posts: 275
Received Thanks: 10
bitte ganze script zeigen so kann man nicht viel machen
11/02/2010, 20:42
#3
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
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
#4
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
#include <GUIConstantsEx.au3>
11/02/2010, 22:10
#5
elite*gold: 0
Join Date: Feb 2010
Posts: 714
Received Thanks: 842
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
#6
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
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
#7
elite*gold: 0
Join Date: Feb 2010
Posts: 714
Received Thanks: 842
Nunja es ist nicht wegen der INcludes
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
#8
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Mal meinen Post gelesen?
Nimm das Script von mir, da kommt das mit den Variablen Errormeldungen nicht.
Similar Threads
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello!
I have this same problem as here when i'm starting my server:
http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html
But I didn't know the answer.. how to repair this?
Greetings
All times are GMT +2. The time now is 20:49 .